on 06-17-2008 10:30 AM
Hi,
I want to hide Group when CheckBox check .How i do this ? Please explain from start to end.What ui i have to use " CheckBox" or "CheckBoxGroup",.
Regards,,
Gurprit Bhatia
Hi ,
1) Create Check box
2)Create a value attribute check" of type boolean -
3)Create a value attribute visible of type visibility -
bind the checked property of the check box to valueattribute check
bind the visibility property of the Group to value attribute visible
init() method of the view - intialize the 2 value attributes
check - false
wdContext.currentContextElement().setCheck("false");
visible - VISIBLE
wdContext.currentContextElement().setVisible(WDVisibility.VISIBLE");
create onToggle event for the check box
if(wdContext.currentContextElement().getCheck())
{
wdContext.currentContextElement().setVisible(WDVisibility.NONE);
}
else
wdContext.currentContextElement().setVisible(WDVisibility.VISIBLE);
Regards,
Sunitha Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use " CheckBox" or "CheckBoxGroup".
1) declare a context attribute say(GroupVisibility) of type Visibility(DDIC Type).
2) bind the Visibility proprty of Group to the context attribute(GroupVisibility).
3) Then depending on conditon set the context attribute value.
Action of onToggle write the below code:
if(checkbox checked)
wdContext.currentContextElemnt.setGroupVisibility(WDVISIBILITY.VISIBLE);
else
wdContext.currentContextElemnt.setGroupVisibility(WDVISIBILITY.NONE);
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.