Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Focus is lost

RadimB
Product and Topic Expert
Product and Topic Expert
0 Likes
1,138

Hello colleagues,

I have 2 checkboxes in 2 subscreens. When I click on the first one the focus is lost (likely there is a logic in PAI or PBO). Then the customer cannot press F1 for this checkbox, because they are already out of the check box.

In the second case when I press the second checkbox, the focus stay on it and customer can press F1 help.

Do you know which code influence the focus?

In both cases there is LOOP at screen in PBO, but the precise checkbox is not influenced.

Kind regards

Radim Benek

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
1,085

Is 'SET CURSOR FIELD <field name>' used somewhere, or in the attributes of the screen, is the field cursor position set?

Thanks Micky and Thoas for your ideas. Unfortunately I have the problem in teh DYNPRO and not in the selection screen. Do you have other ideas?

Kind regards

Radim

5 REPLIES 5
Read only

Sm1tje
Active Contributor
0 Likes
1,086

Is 'SET CURSOR FIELD <field name>' used somewhere, or in the attributes of the screen, is the field cursor position set?

Read only

ThomasZloch
Active Contributor
0 Likes
1,085

What Micky said, probably in combination with a USER-COMMAND addition to the PARAMETERS statement that processes PAI and PBO immediately once the check box is clicked.

Thomas

Read only

RadimB
Product and Topic Expert
Product and Topic Expert
0 Likes
1,085

Thanks Micky and Thoas for your ideas. Unfortunately I have the problem in teh DYNPRO and not in the selection screen. Do you have other ideas?

Kind regards

Radim

Read only

ThomasZloch
Active Contributor
0 Likes
1,085

The selection screen is also a dynpro, so the idea still applies, just that the function code is set in the attributes of the dynpro field and not via the PARAMETERS statement. The cursor position might also be set in the attributes of the dynpro, otherwise the first maintainable field has the focus, if there is no SET CURSOR command.

Thomas

Read only

RadimB
Product and Topic Expert
Product and Topic Expert
0 Likes
1,085

Hello Thomas,

thanks for reply. Unfortunately the set-cursor command is not called at all. And the focus is not lost in the second check box. Which attributes shall I check to set the focus? The checkboxes are in subscreen.

Kind regards

Radim