Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Dynamic Drop down list

Avatar

Former Community Member

Hi Experts,

                    Happy New Year to you all I have a requirement of creating a dynamic drop down list. I raise this query in some of my previous query and got the following sample (attached with this query). The script involves a lot of hard coding in terms of filling up the drop down values by means of 2 D arrays.

My requirement is to have these lists filled out dynamically. I have a ABAP web dynpro application which provides the source data for the drop down lists in the form. For this I have create a table with two columns (Country & Region) and the table is made hidden in the final layout. I want to populate the table rows in the 2 D arrays created to populate the drop down list.

All the Country and Region data are already there in the form DOM also grouped by region. My requirement is to pass this data to the drop down menu.

Please help.

Thanks

Rohit

1 Reply

Avatar

Former Community Member

To rephrase my requirements, I would like to pass on the data from table rows containing Country and Region columns to the 2 D array

array [country][region]

Please let me know how in general we can access individual records in a prepopulated table in form layout. This is a common requirement for example in case we need to highlight certain values (if say they exceed $1000). Provide me with the SOM expression and java script for the same.

Thanks

Rohit