on 11-02-2005 6:36 PM
Hello
I've imported into a Web Dynpro context a java bean data model that includes a property of type java.util.List.
How do I get a DropDownByKey UI element to map/use it?
Thanks
Lori A. Cook
Try using the DropDownByIndex instead. It will use a node of elements and you can bind the texts property to the attribute you want displayed in the drop down list. I've found that the DropDownByIndex is a bit easier to use for these cases.
Cindy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have a context attribute of Java native type java.util.List?
If yes, you cannot bind any UI element directly to this attribute because UI elements can only be bound to attributes of a DDIC type.
To bind a DropDownByIndex element against the list entries, you have to fill a context node (cardinality=0:N) with corresponding elements and bind the DropDownByIndex.texts property to a suitable attribute of this node.
Armin
You can bind UI element properties only to context attributes that have a type from the Java DDIC (data dictionary). This includes the basic types (string, integer, etc.), UI element types (Visibility, ButtonDesign etc.) and any user-defined DDIC types (e.g. string-based types with value set).
You cannot bind properties directly to context attributes with arbitrary Java native type like java.util.ArrayList etc.
To do so, declare a context node with suitable structure and bind the property according to its binding definition (e.g. DropDownByIndex.text must be bound to an attribute of a context node with cardinality *:N).
Armin
Hi,
Refer this link
DropDownByKey 8 | 16 (Tutorial)
Hope this gives you some good Idea
Regards,
RK
User | Count |
---|---|
85 | |
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.