Skip to Content
avatar image
Former Member

input fields & dropdowns in table columns

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 28, 2007 at 12:09 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 28, 2007 at 12:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • avatar image
    Former Member
    Nov 28, 2007 at 12:20 PM

    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

    Add comment
    10|10000 characters needed characters exceeded