cancel
Showing results for 
Search instead for 
Did you mean: 

binding values from backend to dropdown UI

Former Member
0 Kudos

Please send me examples consisting of developing dropdown UI.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Populating the Dropdown:

1>Create UI element:Dropdown by Index.

2>Set the texts property to value(key and value pair coming coming from backend)

like:context:DDITable->

->Key

->Value

3>DDI onselect propert:Create a method

Implement the logic.

IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute( IPrivatePRG_PaymentView.IContextElement.ALL_YEARS);

ISimpleTypeModifiable simple = attributeInfo.getModifiableSimpleType();

IModifiableSimpleValueSet valueSet = simple.getSVServices().getModifiableSimpleValueSet();

String strValue= "";

for( int i = 0; i < tablesize; i++)

{

valueSet.put( key, value);

}

sample code:

https://www.sdn.sap.com/irj/sdn/softwaredownload?download=/irj/servlet/prt/portal/prtroot/com.sappor...

Former Member
0 Kudos

This is plain nonsense because it mixes up DDByIndex and DDByKey.

Armin

Former Member
0 Kudos