on 11-01-2006 3:19 PM
Hi,
I am trying to acces InputField properties.
IWDInputField ts = (IWDInputField)view.getElement("InputField1");
ts.setReadOnly(false);
What does the view (view.getElement("InputField1");) stands for? I can not use it like this because it always says: "view cannot be resolved".
Please help.
Ivo,
"InputField1" stands for your UI Element ID. If you change it to name_input you will write like this:
IWDInputField inf = (IWDInputField) view.getElement("name_input");
Moreover if u just want to set readOnly property, you can set it through either calculated context variable or normal context variable. In this case attach context variable top readOnly property of your input field and set that programatically. You dont need to use dynamic programming.
/Raj.
Message was edited by: Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.