on 08-10-2012 6:27 AM
Hi Guys,
I tried to create DropDownByIndex binding to a field with fixed values.
Say for Airlines, I have field in a table with 2 values - Qanta n Virigin.
But I can't bind this field to any DropDown field, because it says cardinality does not match because the structure has 1 to 1 cardinality, but the possible values for the field is more than one.
Not sure how this shdn't work..?!
Thanks
Sam
Hi Sam,
When you say the field has fixed values, do you mean the values are coming from the field's domain? If not, where are the values for the dropdown coming from? The node itself can be 0..1 or 1..1 with an attribute that you bind to a dropdown with multiple values.
If the values for the dropdown are coming from the attribute's domain's fixed value set, no extra work is needed. Otherwise, this blog article on Creating the Value Set for a DropDownByKey Element should help you.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sam,
I didn't pick up on the fact you're using DropDownByIndex rather than DropDownByKey-- the two binding models are different and my link is about using DropDownByKey. DropDownByIndex requires its values to come from a 0..n or 1..n node. Give the approach suggested by Lavanya and Venkatesh a try:
Demo web dynpro component DEMO_UIEL_STD_SELECTION has an example of a working DropDownByIndex.
Cheers,
Amy
Hi Sam,
Create a node with cardinality 0ton and place ur fileds in that and bind the fileds what u fileds required to drop down by index element property.
Thanks,
Venkatesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sam,
Try like this create a node with cardinality 0 to n and insert your field(airline) as a attribute,now try to bind airline to drop down by index element property texts,it wont show any error.
thanks,
Lavanya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
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.