cancel
Showing results for 
Search instead for 
Did you mean: 

editing simple type for dropdownlist

Former Member
0 Kudos
171

hi there,

I really need help!

I developed a web dynpro application with a dropdownlist, which I connected with a (simple type) field in the local dictionary.

In my Portal I enabled companies and in the field ume.tpd.companies, there are 2 values (companyA and companyB).

I can get the values of these two values (com.sap.security.api.util.IUMParameters params = UMFactory.getProperties();

params.get("ume.tpd.companies");

Now my problem:

How can I display these two values in my dropdownlist?

Can anyone give me a code example how to "connect" the values from the ume with die data dictionary element from

which my dropdownlist gets its values?

THANX

christoph

View Entire Topic
Former Member
0 Kudos

Hi,

use the following code in the init.

ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("<NodeName>.<AttribiuteName>");

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

values.put("0",<FirstValuein the Parameter>);

values.put("1",<SecondValuein the Parameter>);

and bind the "DropDownByKey: UIELement dataSource to <NodeName>.<AttribiuteName>.

Regards, Anilkumar