on 01-10-2008 4:50 PM
Hi all,
I have a dropdown list in my app. (by Index) that contains a list a values to select from. However, I don't want any initial value to be displayed in it when the view is called for the first time. Despite the fact that the according context has 0..n and 0..1 for cardinality / selection it insists on an initial lead selection, otherwise it will dump.
Is there any way to do it other than to add an emtpy dummy line to the itab ?
Thanks and yes - you will get points for a useful answer, I promise ...
Frank
Hi Frank,
The best solution for you problem is to use a drop down by key and bibd you values to the node.. it will display you with a record onlky after selecting one from the record.
Regards
Sarath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Sarath said, you can use DD by key. It will automatically display first entry. You can very well change the default value by calling the method SET_ATTRIBUTE on the drop down attribute.
If you want Initial value to be selected, just add the initial value to your internal table before calling the method SET_ATTRIBUTE_VALUE_SET.
Hope it helps...
Hi Frank,
You dont have an option but to populate an Empty record in the dropdown when you dont want to show anything in the dropdown else the application will dump if you dont have any values.
Regards,
Ismail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi frank....
in the node which is bound to the drop down box, just insert an empty record to that input field.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.