on 06-21-2007 10:08 PM
Hi Experts,
I have buttons in a table which are by default disabled (set in the properties of the button).
Please tell me how to enable one programatically(at the trigger of an event).
Thanks.
<b>Context:</b>
Rows (node, 0:N)
-- buttonEnabled (attribute, boolean)
<b>Binding:</b>
Table.dataSource = Rows
Button.enabled = Rows.buttonEnabled
Example: To enable button in row at index 4:
wdContext.nodeRows().getRowsElementAt(4).setButtonEnabled(true);
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As an add on to Suresh's Suggestion, u must create that boolean variable inside the table's node
Regards
Fahad Hamsa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1)create an attribute Select as boolean datatype
2)Insert Button in the Table
3)Bind that Select attribute to the button( in properties)
4)In table,there is an option onLeadSelection create an action for this
write this code,
{
wdcontext.currentcontextelement.setSelect(true);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Firstly, create a value attribute(context) of type BOOLEAN, for that view.
Map that context element to the "enabled" property of your button.
Now, in the DoInit() of that view, assign dat context, a default value, either true or false.
Now, you can set the button as enabled or disabled anywhre in the view, even from another views(by proper context mapping between views, using the MVC concept)
Regards,
Hanoz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
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.