Application Development 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: 

switch button

Former Member
0 Kudos

i have a screen 100 with some fields and a tabview control. and i am using a switch buttonin toolbar( icon- pencil and specs together)

my issues

1--when i click on it ,it should work as a toggle between the change and display mode for the screen

2 -- also when it is in display mode it should make the tabview also in display mode which dose not

happen when when we do loop screen.

can any one tell me how to get this toggel switch functionality.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

General practice would be to use a field (MODE_SW) to indicate if you are in Display or Change mode.

Based on that, when you push the button and react to it in the USER_COMMAND module, you change the mode appropiately.

Then in the PBO routine, based on the MODE_SW, LOOP AT SCREEN and set the INPUT values to 1 if in Change, and 0 if in Display for all the fields that are by default allowed for input.

Edited by: Paul Chapman on Jan 14, 2009 12:22 PM

1 REPLY 1

Former Member
0 Kudos

General practice would be to use a field (MODE_SW) to indicate if you are in Display or Change mode.

Based on that, when you push the button and react to it in the USER_COMMAND module, you change the mode appropiately.

Then in the PBO routine, based on the MODE_SW, LOOP AT SCREEN and set the INPUT values to 1 if in Change, and 0 if in Display for all the fields that are by default allowed for input.

Edited by: Paul Chapman on Jan 14, 2009 12:22 PM