Skip to Content
avatar image
Former Member

Dropdown problem in table.

One custom Function Module is returning me the three structures EX_WAGETYPES(Fields wages type),EXWAGETYPE_TEXTS(Fields wages type,desc),EXRETURN(for any errors.).I am creating a table whose datasource is also the second structure.I am populating the drop down from the field is wages type from Second structue.The second column of the table is textview with Description.I have to shaow the corresponding description after selecting the drop down. I am able to do that but problem is that when in onselect the all the drop down showing the same selection & same description. Please hlep me.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 01, 2007 at 03:48 AM

    Hi Prosun,

    In continuation to the previous thread, can you let me know what code do you have in your OnSelect Action Handler?

    <i>This should not contain any code for setting the context each time OnSelect is triggered.</i>

    Your selection of description will automatically be handled by the lead selection.

    Regards,

    Neha

    <i><b>PS: Reward if Helpful</b></i>

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Prosun,

      Have you made the cell editor for the table column as DropDownByKey? If you have done that, it will show the dropdown in all the rows of the first column.

      Also, to get your own values in the dropdown, you need to attach your value set to the node info. Create this by creating an internal table of (wagestypecode, descrption) as i mentioned earlier

      Regards,

      Neha

      <i><b>PS: Reward if Helpful</b></i>

  • Aug 01, 2007 at 05:56 AM

    Hi Prosun,

    If you use dropdownByKey with a value set, only the choosen value from the dropdown is set, and not the others like the description field.

    Therefore you should use dropdownByIndex in a subnode of the node holding the other data. Then on Select the leadselection of the new node is changed. If you bind the desription text field to the description in the subnode, it will automatically be set correctly.

    Please make sure that the subnode is NOT a singleton.

    Ciao, Regina

    Add comment
    10|10000 characters needed characters exceeded