on 10-28-2008 11:37 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.