Home » Developer & Programmer » Forms » problem in KEY-ENTER
problem in KEY-ENTER [message #622304] Mon, 25 August 2014 01:39 Go to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
hello,
I have a form with:
1 block include:textitem1,textitem2,textitem3.
in KEY-ENTER of textitem2:
message('enter in txt2');
message('enter in txt2');

but when execute form,when i press ENTER,cursor go to next item even if cursor in textitem2 and do not show message.
In addition,i set all value for EXECUTION HIERARCHY but again do not show message.why? Sad
Re: problem in KEY-ENTER [message #622309 is a reply to message #622304] Mon, 25 August 2014 02:02 Go to previous messageGo to next message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Maybe KEY-ENTER is mapped to another key (instead of the one you think it is). Check FMRWEB.RES file as it might contain that information.

I'm not saying that it'll help, but - which key do you press? <Return> or <Enter> (as indicated on the image)? Maybe it makes the difference (i.e. try to press both and see what happens).

/forum/fa/12118/0/

Finally: is there any reason you used KEY-ENTER trigger? Why don't you use KEY-NEXT-ITEM? It navigates to the next item (which is, I presume, what you are doing with the <Enter> key anyway).
Re: problem in KEY-ENTER [message #622315 is a reply to message #622309] Mon, 25 August 2014 02:17 Go to previous messageGo to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
i want when press Enter cursor navigate to another item(for example item5).maybe next item not item5.
Re: problem in KEY-ENTER [message #622318 is a reply to message #622315] Mon, 25 August 2014 02:19 Go to previous messageGo to next message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Then use GO_ITEM built-in; it'll move focus to a desired item (which doesn't have to be the "next item", as items' order in Object Navigator suggests).
Re: problem in KEY-ENTER [message #622334 is a reply to message #622318] Mon, 25 August 2014 04:06 Go to previous messageGo to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
no i tested,For the same reason that message do not show,GO_ITEM does not work.
please see file attachment
  • Attachment: fmrweb.txt
    (Size: 3.66KB, Downloaded 1135 times)

[Updated on: Mon, 25 August 2014 04:10]

Report message to a moderator

Re: problem in KEY-ENTER [message #622335 is a reply to message #622334] Mon, 25 August 2014 04:20 Go to previous message
Littlefoot
Messages: 21807
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Then run the form in debug mode. Set breakpoint into WHEN-NEW-FORM-INSTANCE trigger. Debugger will lead you through triggers. Hopefully, you'll see what's going on when you press <Enter> TEXTITEM2.
Previous Topic: error in trigger KEY-NEXT-ITEM
Next Topic: go_item dynamic
Goto Forum:
  


Current Time: Thu Apr 18 08:17:16 CDT 2024