on 05-20-2008 2:39 PM
Hi
I have two cascading drop down menus (country and city) populated by "z_list_country" and "z_list_city" RFCs.
City refreshes if country is changed, i.e. city list depends on the selected country.
I want to provide default values for these two drop down menus.
These 2 default values are 'dynamic', meaning that they are output by "z_default" RFC every time the iview is loaded.
I have created a form from the output port of z_default,
declared the two output fields as 'drop down menu',
selected the two list functions to populate the two entry lists,
defined in/out parameters to define cascading behaviour for the two menus
after deploy, what happens is that only the first field (i.e. the independent one) has a default value.
the other does have a populated entry list but no default value.
can anyone help?
Points will be awarded
Vincenzo
Hi Vicenco,
I remembered that this is a well known issue. I think this link should help you:
[Drop down box displays wrong entries |https://wiki.sdn.sap.com/wiki/display/VC/Dropdownboxdisplayswrong+entries]
Best Regards,
Marcel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marcel, thanks for your reply
I don't really understand what the wiki workaround is.
"Find a field of type text that is not displayed in a drop down box (for example a field "Name" which you would usually display in an input box)."
I added a text field (i.e. "name") to the same form of the 2 drop down, and then changed the "name" UI element type to drop down box. If I understand correctly "name" is not bound to any data service, nor is it populated by any way.
I can experience no different behaviour... did I understand the procedure correctly?
Thanks
Vincenzo
Hi Vincenzo,
the workaround is pretty hard to understand, as it is very strange, too.
The field "name" will also be delivered to your form, i.e. it is bound to some data service.
So don't simply add a field to your form, but add a field that comes from your data service.
I think the problem is:
1. loading data into form and setting default value
2. refreshing dynamic entry list in drop down box, thus overwriting default value with null
The usage of the field "name" will simply change the sequence of refreshing in Visual Composer. Thus, it might avoid refreshment of the drop down box, after the values are loaded into the form.
If I remebember this correctly, I opened an OSS Message for this issue (a little similar to yours) in SP10 and the answer was "Will be fixed in one of the next SPs". However, the problem still occurs. What SP do you have?
Kind Regards,
Benni
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.