cancel
Showing results for 
Search instead for 
Did you mean: 

Populate drop-down list in table row or repeating subform

Former Member
0 Kudos

I am currently working on an Adobe Interactive Form integrated with web dynpro ABAP. I would like to create a table or repeating subform with a number of drop-down lists populated from SAP.

I am using the Enumerated Drop-down list from the WebDynproNative menu. In my WDDOINIT method, I am populating the attributes using the set_attribute_value_set method. This is working fine when my dropdown is not in a table or repeating subform. The dropdown is populated and the selected value is returned to SAP when submitting the form. However, when I place the dropdown in a table row or a repeating subform, the dropdown is not populated.

Any ideas or suggestions?

Accepted Solutions (0)

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

This problem have been discussed here few times before. Please use SEARCH. Otto

Former Member
0 Kudos

Hi There,

I am facing problem in Dropdown lists in Subforms.

I want the region dropdown list values according to country (only for DE) dropdown list value. Both Dropdown lists are in a Subform.

 

For that, I have used this in EXIT event of Country Dropdown list:

if (this.rawValue == "DE Deutschland")

{

data.Item.IT_ITEM.DATA.ZZ_REGION.clearItems();

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Schleswig-Holstein","1");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Hamburg","2");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Niedersachsen","3);

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Bremen","4");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Nordrhein-Westfalen","5");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Hessen","6");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Rheinland-Pfalz","7");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Baden-Württemberg","8");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Bayern","9");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Saarland","10");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Berlin","11");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Brandenburg","12");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Mecklenburg-Vorpomme","13");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Sachsen","14");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Sachsen-Anhalt","15");

data.Item.IT_ITEM.DATA.ZZ_REGION.addItem("Thüringen","16");

}

else

{

data.Item.IT_ITEM.DATA.ZZ_REGION.clearItems();

}

It does only change first region dropdownlist value, not others because both dropdown lists are in a Subform.

Other problem is that it works only when All Country Dropdown lists are "DE". Means, first region dropdown list depends upon not only first country dropdown but also other dropdown.

My requirement is, If first country Dropdown is "DE", only first Region Dropdown list should be fill, not others. And so on.

Please provide solution that How can I change all dropdown lists of a Subform dynamically?

Waiting for reply.

Thank you

Chandler Bing