on 06-02-2009 9:15 AM
Hi,
I wish to display Value Range as define in Domain for certain field in R/3.
Eg, ZSEX domain 's Value Range in R/3 as below
01 Male
02 Female
Assume ZZSEX field is using ZSEX domain;and
Expected "Male" to be display when field value ZZSEX = 01.
How to achieve this in Java Web Dynpro?
Thanks.
Best regards,
Xiang Li Heah
Hi,
Why dont you send both ZSEX domain 's value range and text to WebDynpro from R/3 in bapi output as below?
ZZSEX ZZSEXTXT
01 Male
02 Female
(Or)
What you need to do is , You have to store these texts (key , value) in WebDynpro side.
You can use simple type for this purpose.
Create one simple type "SEXSimpleType" in webdynpro local dictionary and enter the enumeration values as below.
01 Male
02 Female
Create one context attribute called "SEXAttr" and change the type of this context attribute to "SEXSimpleType".
Now in the code when the value of ZZSEX = 01 then get the corresponding text by using the below code.
ISimpleTypeModifiable simpleType = wdContext.nodeTest().getNodeInfo().getAttribute( "SEXAttr").getModifiableSimpleType();
ISimpleValueServices services = simpleType.getSVServices();
IModifiableSimpleValueSet valSet = services.getModifiableSimpleValueSet();
wdComponentAPI.getMessageManager().reportSuccess( "SexText: " + valSet.getText(ZZSEX));
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Go to dictionaries->local dictionary->data types->right click simple types
then create a simple type. see enumeration tab at lower end there & click. create two types
there. value 01 & desp. male etc.
you can bind this type with a radio button or dropdown
Regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.