cancel
Showing results for 
Search instead for 
Did you mean: 

Map Drop down to Context node with value and ID

Former Member
0 Kudos
49

I want to map a drop down to dynamic data. I have a table that is populated at runtime after a BAPI call. The structure is the same as if you used a simple type. i.e. Value and ID.

Accepted Solutions (1)

Accepted Solutions (1)

sid_sunny
Contributor
0 Kudos

Hi Gordon,

Try out this

ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("MonthName");

//Set allowed values for this data type

IModifiableSimpleValueSet values=myType.getSVServices().getModifiableSimpleValueSet();

values.put("0","January");

values.put("1","February");

values.put("2","March");

values.put("3","April");

values.put("4","May");

values.put("5","June");

values.put("6","July");

values.put("7","August");

values.put("8","September");

values.put("9","October");

values.put("10","November");

values.put("11","December");

where MonthName is a value attribute of type string.

Regards

Sid

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

bind with the Drpdownbykey UI element with ur ValueAttribute .

It resolves your problem.

Thanks,

Lohi.