on 01-15-2010 6:54 AM
Hi ,
I have 2 buttons in my application.If i click on first button second button should be disabled.how to proceed on this?
Regards,
Pavani
Hello,
Make a context attribute of type boolean (say SecondButtonEnbPro ) bind it to the enbable property of the second button.
Write the following code in the action event handler of the first button
wdContext.currentContextElement().setSeconButtonEnbPro(false);
Thanks,
Sarbjeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First off, bind the second button's property 'enabled' to a boolean attribute on your context. And the 'onAction' method of your first button, just set that to 'false' disable the second button.
i.e. wdContext.currentContextElement().setSecondButtonEnabled("false");
Regards,
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create an action for the first button(through properties tab). Create an attribute(button2Enable) of type boolean and map the Enabled property of the second button to the attribute.
In the action of the first button write the following:
wdContect.currentContextElement().setButton2Enabled(false);
Hope it helps and search before you post(a suggestion).
Regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.