on 09-10-2008 7:51 AM
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.
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");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.