on 11-10-2008 5:03 PM
i have one input field and one button
when i press on the button, i need the input field must become read only
can any body help me in this regard.
Thanks
Shaik Shadulla.
closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
follow the steps:
1. Make a Context Attribute named ca_a1 under ur Context.
2. Change the type of this Attribute ca_a1 from String to Boolean.
3. Bind this to the Input field.
4.In the OnAction of Button write wdContext.currentcontextElement.setca_a1(false).
This would Change the input field to Read only.
I hope this would help you.
Thanx.
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 a new context value attribute, for example IsReadOnly of type boolean.
2. Bind the readOnly property of the Inputfield to this context attribute.
3. In the onClick event handler method of the button write the following code:
wdContext.currentContextElement().setIsReadOnly(true);
Regards,
Satyajit.
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 attribute of type boolean and bind this attribute to the enabled property of the input field. Set its value to true initially in wdDoInit() and on click of the button's action set this boolean attribute to false.
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 |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.