WolfStone said:
From witch Code-Section you will apply Entry.
(In a procedure you have to declare the Frame (do with frame)
The cursor is in Fill_a because the Tab-order
WolfStone
Thanks for your response.
This is the scenario:
This is one file. This file is created using app-builder
There are three frame:frame_p, frame_a and frame_b. Frame_a and frame_b are child frames of frame_p.
frame-a is defined in a include file (.i)
There two fill-in fields in frame_a: fill_a and fill_b.
In main-block block (in which Enable_UI is called, and resides in Main-Block of Appbuilder):
frame_p is assigned as a parent frame to frame_a.
in Main-Block of AppBuilder :
i define a trigger for fill-in field fill_a in frame_a like this:
on Enter, Tab of fill_a in frame frame_a
do:
message "invalid customer number. Do you want to continnue"
view-as alert-box buttons yes-no update vlAnwser as logical.
if vlAnwser then
apply "entry" to fill_b in frame frame_a.
else
apply "entry" to fill_a in frame frame_a.
end.
Testing Case: if I internionally enter an invalid customer ID, and press Enter on the keyboard, the cursor goes to fill_b, but come back to fill_a. This is not what I want. I want the cusor to go to fill_b and stay there.