on 09-08-2010 6:08 PM
Hi all,
i want to hide some fieldd in Portal when i display my View, is there a way to do this. some fields should be displayed only if i click on a Buttom, then they should appears,
Kind Regards
Natel
Hi Natel ,
The recommended approach is to do it via context binding .
Create a context attribute say ui_profiling of type wdy_boolean.
Bind this attribute "ui_profiling" to the visibility property of the UI element which you want to make visible/ invisible/ inactive .
Now create a action for your button . In the action method , assign the value to attribute "ui_profiling" , based on what you want ie., visible or invisible .
This will solve your problem . Please let me know if you any concerns .
Thanks ,
Abhishek Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi , thanx for the quik replay, but its not like that so easy, i have to click on a buttom, then the first field will appears, if i click on this buttom again , the second will appears, and for th tirth time clicking on the bottom , the 3th field will appears, not all of them at once after clicking on the bottom, it should be like that, one after one.
Kind regards
Edited by: Natel Bargach on Sep 8, 2010 10:04 PM
Then - in your action handler method query another variable (potentially an attribute of your view) in which you store how many times the button has been pressed (increment it by one each time your button is pressed) then have a case statement that changes visibility of the buttons (through updating context attributes bound to the fields).
also - please don't use the boolean type for visibility - use the wdui_visibility type - please reference this thread for some further details.
Hi Natel,
Bind the 'Visible' property of those fields to a boolean attribute.
Set this attribute initially to false (invisible).
Create an action for the button, in the method test if running in portal then set the attribute to true (visible).
Regards,
George
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.