cancel
Showing results for 
Search instead for 
Did you mean: 

Pushbutton Problem in web dynpro

Former Member
0 Kudos

hi there,

i have a sap standard web dynpro. in the portal i have the UI elements tree to personalize the dynpro.

there is a part where i have 2 push-buttons:

Pushbutton 1

Pushbotton 2

by default Pushbutton 1 is activated. Now i want to hide Pushbutton 1 for the user. So far so good, i can do it in the UI elements tree and change it.

The Pushbutton 1 now is hidden. BUT: i want to have Pushbutton 2 activated automaticly. Now the pusbutton is not 'ON'.

how can i achive this with the UI elements tree control in Portal. I am NOT a JAVA-developer, i have no idea about web dynpro, i am coming from abap side. so i DON'T want to modify the web dynpro.....i need a way to do it with the personalization function in portal.

reg, Martin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I assume that your requirement is to show one button at a time button1 or button2.

create 2 context attribute of type Visibility under uielementdefinition.

bind one of the context to button1's visibility property and the other to the button2's visibility property.

Now, in your code as per your condition, you can set the visibility as

wdContext.currentContextElement().set<visible1>(WDVisibility.VISIBLE);//To Show

wdContext.currentContextElement().set<visible1>(WDVisibility.NONE);//To Hide

Regards,

Murtuza

Former Member
0 Kudos

hi there,

sorry, but i don't understand what you mean pls. note that i have nothing to do with

web dynpros in java.

what do you mean by 'in your code' ??? which code ? i don't have a code, i only

have the personalization in portal.

i want to disable button 1 and set button 2 as default as 'ON' (as selected).

reg, Martin

Former Member
0 Kudos

Hi,

I am sorry that was my mistake because I thought it to be a customized development.

Regards,

Murtuza

Former Member
0 Kudos

well, okay................thank you.

but is there anybody who can help me ?

reg, Martin