cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown in Table

former_member189058
Active Contributor
0 Kudos

Hi all,

I need to use a dropdown in a table UI element.

I have used dropdown by index.

I am able to get the dropdown and the values in it,

However, for each row in the table, the dropdown values vary.

How can I have different values in the dropdown for each row of the table.

Eg. if in row 1, the dropdown should have D1, D2 values and in row 2, it should have D3, D4 values

Regards,

Reema.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

I have also the same requirement like using the drop down in the table. But i am getting the error as "The ASSERT condition was violated". Can you guide me .

Former Member
0 Kudos

Hi,

I have also the same requirement like using the drop down in the table. But i am getting the error as "The ASSERT condition was violated". Can you guide me .

former_member189058
Active Contributor
0 Kudos

done

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Wrong post, ignore.

Use DropDownByKey,

it will be easier as your context attribute is not an Integer

Abhi

Edited by: Abhimanyu Lagishetti on Jul 8, 2008 7:09 AM

alejandro_bindi
Active Contributor
0 Kudos

How can I have different values in the dropdown for each row of the table.

Eg. if in row 1, the dropdown should have D1, D2 values and in row 2, it should have D3, D4 values

As you did, you need to use DropDownByIndex in that case.

Maybe your problem is in your context structure or in its loading with values.

In the table, an additional column must be defined with a column editor DropDownByIndex, which has a Texts property.

Your context structure should be something like this:


TABLE_NODE (card. 0..n)
   - ATRIB1
   - ATRIB2
   - DROPDWN_NODE (card. 0..n sel. 0..1)
      - VALUE
      - TEXT     <-- bind this attribute to Texts property

You can then use a Supply function to load the dropdown on each case based on table row selection (NOT using Singleton property). You could also just load the dropdown subnode as you load the parent node which has the table data.

Regards