on 01-23-2008 5:19 AM
Hi All,
I want to mark the checkboxes dynamically based on some condition. For that I want to use the getElement() method of the View. But in my application I am unable to get that method. Can any one help me by giving suggestion for getting that method..... Thnx in advance.
Hi,
You cannt access UI Elements any where in the view except in the wdDoModifyView()
Here u can access the user elements by
IWDCheckBox cbkbox = (IWDCheckBox) view.getElement(String CheckBoxID);
Regards
Shyam.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The property checked contains the current value.
Create a context attribute of type boolean and bind this to the checked property of the check box
access this attribute to set and get the values
Ex:
Context attr
checkState -> boolean
To set
wdContext.currentContextElement().setcheckState(<true/false>);
To get
wdContext.currentContextElement().getcheckState();
Regards
Ayyapparaj
Hi All,
I worked with both the solutions u gave and they are working. Thnx for ur valuble suggestions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
bind the checkbox with a value attribute of type boolean....on your condition
wdContext.node(ABC).set(Attribute name)(true);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Write this code in wdDoModifyView
IWDCheckBox bc= (IWDCheckBox) view.getElement(<checkbox id>);
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.