Skip to Content
author's profile photo Former Member
Former Member

switch button

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.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.