cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown editable in a table based on a condition

Former Member
0 Kudos

Hi,

I would like to know how to solve these problems.

1. I have a cell (of the type dropdown by key) in a table, which is editable or not, depending on a condition ? Is this is possible? Please let me know if there is a sample code

.

2. So basically I have a table that has 2 entries in it, user details and one of the fields in FLAG showing the values Yand N for the user. I want the table in the webdynpro application to show the 2 user entries and then in the Flag column have a DROPDOWNBYKEY that DEFAULTS to showing what flag the user has, but also allows the user to CHANGE the entry.

Thanks in advance

I appreciate for the help.

Accepted Solutions (0)

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

is possible

In your Context node which is binded to the table as DataSource, add an attribute WDY_BOOLEAN type

In layout bind the newly created attribute to the dropdown UI element Enable property

while filling your context node, fill the attribute with abap_true and abap_false based on your condition

Abhi