cursor problem

plant

New Member
Hi,

I got a problem.

There are two fill-in fields in a frame frame_a: fill_a, and fill_b.
even if the statement "apply 'entry' to fill_b in frame frame_a." is executed,
the cursor is still on fill_a?

There is no expplicit statement to apply "entry: to fill_a.

Anybody has any idea? thanks.
 

WolfStone

New Member
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


plant said:
Hi,

I got a problem.

There are two fill-in fields in a frame frame_a: fill_a, and fill_b.
even if the statement "apply 'entry' to fill_b in frame frame_a." is executed,
the cursor is still on fill_a?

There is no expplicit statement to apply "entry: to fill_a.

Anybody has any idea? thanks.
 

Crittar

Member
Plant,

A lot depends on what has happened immediately before.

You could try putting RETURN NO-APPLY after your APPLY 'ENTRY' statement.

If that doesn't work then please post a snippet of the code here for further help.
 

plant

New Member
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.
 

plant

New Member
Thanks, Crittar,

It works. Just as you said, adding "return no-apply".

Thanks a lot

Crittar said:
Plant,

A lot depends on what has happened immediately before.

You could try putting RETURN NO-APPLY after your APPLY 'ENTRY' statement.

If that doesn't work then please post a snippet of the code here for further help.
 
Top