cancel
Showing results for 
Search instead for 
Did you mean: 

editing simple type for dropdownlist

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (2)

Answers (2)

Former Member
0 Kudos

hi ,

that solved my problem. thanx!!!

(but i couldn't solve it by just using a value attribute without a dictionary-simple-type.)

Former Member
0 Kudos

Hi,

You can use valueset services.In this case you dont need a dictionary type.

Just create a value attribute ,get a simple modifiable type as anil has said and proceed with then same. You dont need a dictionary simple type in this case.

Regards

Bharathwaj