on 10-18-2007 7:28 AM
Hello,
How can I change a property during runtime? Like, change the label of a button, or change the header text of a table.
regards,
arnold
Hi Arnold
1)Create Value Attributes according to the type of the property and bind those to the corresponding property
2) now at runtime use wdContext.current<node>Element.set<property_name>("test");
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can bind the property "label" of a button to a context element for changing the it during runtime
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arnold,
You need to get an instance of the UI element at runtime. You can get this only in WDDoModifyView
IWDLabel lab = (IWDLabel)view.getElement(<labelID>);
lab.set<property>(<value>);
Warm 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 |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.