on 11-28-2007 12:03 PM
Hi All,
I have a problem while using input fields as columns in a table. While running my application the input field is appearing in grey color even though its "enabled" property is set "true". According to my application requirement the input field need to be white in color. Please do suggest me a solution for this problem. I am facing the same problem while using Dropdowns in table columns.
Please suggest me a solution for this. I shall give full points for solution.
Thank You.
Regards,
Murthy.
Hi Narayana,
Check whether the node bound the column has any data or not. If there is no data present in the node the input field or the drop down list will be gray. At least on data should be present in the field to make it enable.
Regards
Mrityunjay Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
An InputField must always be bound against a context attribute. If the context node containing this attribute is empty, the input field is disabled by the framework. Make sure your data source node is not empty.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
The data source node is not empty. Also, on the other hand I am using a Text Editor field in another column which is appearing white in color when I am running my application. Whereas, the inputfields and dropdowns are giving problem.
In the case of dropdown, it is also getting populated. But still not getting enabled.
What can I do to make them appear white while running my application.
Thank You.
Murthy.
context structure
VnTable(cardinatlity 0..n)
|------VnReason(cardinality 1..n)
|------VaReason_id
|------VaReason_text
|-----VaInputtext
|-----VaDropdown
|-----VaTextEditor
and the attribute VaInputtext is mapped to the column containing inputfields and the attribute VaReason_id is mapped to the column containing dropdowns. The attribute VaTextEditor is mapped to the column containing TextEditor.
Regards,
Murthy.
HI,
Initially add one row to the Table.. then the input fields will be enabled
Use this..
Iprivate<View>.I<TableNode>Element ele=wdContext.create<TableNode>Element();
Iprivate<View>.I<dropdownNode>Element dropEle=wdContext.create<dropdownNode>Element();
dropEle.set<Value1>("select");
wdContext.node<dropDownNode>().bind(dropEle);
ele.set<input1>("");
ele.set<input2>("");
wdContext.node<TableNode>().bind(ele);
Regards
LakshmiNarayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.