cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a blank entr in dropdown list...??

simadri_sekhar
Participant
0 Kudos
1,000

Hi all,

I want to add a blank entry along with the datas into a drop down list for some purpose.

Can anyone please sugeest how to do this task.

Thanks in advance,

Sekhar

View Entire Topic
former_member389677
Active Participant
0 Kudos

Hi Sekhar,

you have a node that bind to the drop down list with cardinality 0:n or 1:n.

Select each attribute to that node and check 'NullValue' . Do this for each attribute for that node, so that u can add blank entry.

Hope this helps you.

Regards

Shaira

simadri_sekhar
Participant
0 Kudos

Hi Shaira and kissnas,

thanks for your quick reply . Actually I use dropdown by index. and the method you (@shaira madhu) described , I implemented but no luck. The blank spance is not coming after setting the nullvalue entry as checked. Actually I initialize all the dropdown list in WDDOINIT method. So please suggest any idea.

Thanks in advance,

Sekhar

Lukas_Weigelt
Active Contributor
0 Kudos

Hi,

what Kris described does work... I do it like that as well (of course you only have to set those attributes blank which you are actually want to be displayed blank).

regards, Lukas

Kiran_Valluru
Active Contributor
0 Kudos

Hi.,

Try using

Append initial line to lt_dropdown. " here lt_dropdown is the internal table u are going to bind the drop down node.

hope this helps u.,

Thanks & Regards,

Kiran

vineetrrakesh
Explorer
0 Kudos

Hi,

I think the blank value in a filter is same as showing All, and not only the rows which has value blank. Nevertheless both can be achieved as below.

"Blank Value to show everything in Table as if no filter provided"


value-key = '*'.
value-value = 'All'.             " This will show up the text as All and work as if no filter is given and it will show all.
APPEND value to set.

"Blank Value to show the rows which has the value as space"


value-key = space.
value-value = 'None'.             " This will show up the text as None and work as if filter is given to show value as space
APPEND value to set.

Hope this help!

Regards

Vineet

simadri_sekhar
Participant
0 Kudos

hi kiran,

thanks for your valuable reply. Now the problem is solved... thanks again.

sekhar