cancel
Showing results for 
Search instead for 
Did you mean: 

Display/Change button

Former Member
0 Kudos

Our team is considering a change to the Display/Change button. We are thinking of splitting the single button into two buttons. This way when a user is in display mode, the display button will be disabled and change button enabled as a visual indicator of what mode the user is in. If the user is in change mode, the change mode will be disabled and display button will be enabled.

Would anyone have suggestions on how to do this?

Thank you,

Wendy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Business did not pursue.

thomas_berndt
Active Participant
0 Kudos

Hi Wendy,

this shouldn't be too hard to crack in principle.

First, you'd need to add the additional button in view VI_MAINTOOLS of WebDynproComponent DPR_MAINFRAME. This should be the esiest part.

The next steps will actually contain the logic you want to realise: The default "Display / Change" button fires event ONACTION_CHANGE_CLICK. This event-handler essentially calls a method of the component controller where the main logic is processed. I'd consider it a good idea to leave it this way and code the UI-changes needed to de-activate this button (and activate the other one) in this event-handler (in order to change as little as possible in the standard method)

For the new button I'd create an analoguos event-handler, calling the component controller as the original one, de-activating this button and re-activating the other one.

Hope this give some starting point.

Best regards,

Thomas