cancel
Showing results for 
Search instead for 
Did you mean: 

input fields & dropdowns in table columns

jnmurthi
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

jnmurthi
Participant
0 Kudos

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.

Former Member
0 Kudos

Please post exact context structure and data binding of input field and drop-down.

Armin

jnmurthi
Participant
0 Kudos

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.

Former Member
0 Kudos

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