on 08-02-2005 4:45 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
that solved my problem. thanx!!!
(but i couldn't solve it by just using a value attribute without a dictionary-simple-type.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.