01-14-2009 4:52 PM
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
01-14-2009 5:15 PM
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
01-14-2009 5:15 PM
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