cancel
Showing results for 
Search instead for 
Did you mean: 

DropDown + Model + Iterator+Hashmap

Former Member
0 Kudos

My view has 2 input dropdowns and a submit button.

I used an rfc which fetchs some rows from a table.It takes one value amongst the 1st dropdown values as input and those values fetched should be polulated in the second dropdown.

Accepted Solutions (1)

Accepted Solutions (1)

snehal_kendre
Active Contributor
0 Kudos

Hi,

Use Dropdown by index

Bind text property of ui elemnt to one of the attributes under value node. The binded attribute's value will be shown as the text in dropdown. To access other attributes value you can use wdContext.current<modelnode>element().get<attributename>();

if you want to use dropdown by key. then there is some overhead.

IWDAttributeInfo attr_a_Schemas = wdContext.nodeSchema().getNodeInfo().getAttribute("name_of_context");

ISimpleTypeModifiable isim_a_schemas = attr_a_Schemas.getModifiableSimpleType();

IModifiableSimpleValueSet isval_a_schemas = isim_a_schemas.getSVServices().getModifiableSimpleValueSet();

isval_a_schemas.clear();

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

{

isval_a_schemas.put("KEY"+i,"DESCRIPTION");

}

Answers (0)