cancel
Showing results for 
Search instead for 
Did you mean: 

ICON on List Box

Former Member
0 Kudos
699

Hi all,

Is it possible to have an icon as a value in the Dropdown listbox without using iterator? My client wants to see an icon in the place of the normal text character description when they do a dropdown for possible options.

I have already tried the following :

<htmlb:dropdownListBox id= "qsddl1"

table = "//returnsb/gt_status"

nameOfKeyColumn = "value"

nameOfValueColumn = "id"

selection = "//returnsb/p_svalue"

disabled = "false" />

where id is a 4 character field in the table (type icon_d) and contains for example value @xy@.

When I run the BSP @xy@ is displayed in the dropdown and not an icon.

Can anyone help?

Regards,

Jan.

athavanraja
Active Contributor
0 Kudos

thats totally a different thing. its not dropdown list box

Regards

Raja

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Koen,

When assigning a value to build the table (ls_status-value = '<img src='s_B_MNGR.gif'> , the system complains about my syntax. Is there a specific way of doing it?

The same happens when I try a full path for the image.

Jan

athavanraja
Active Contributor
0 Kudos

here is the correct syntax

ls_status-value = '<img src="s_B_MNGR.gif">'

but i have already tried and it doesnt work.

Regards

Raja

athavanraja
Active Contributor
0 Kudos

not only images, you cannot even do a html formatting for your options in <select>

the only other option i have seen is grouping your options with <optgroup>

Regards

Raja

Answers (3)

Answers (3)

Former Member
0 Kudos

OK, I will keep this open and do some research from my side as well. Will post it to this thread if successfull. BTW, do you happen to know if WEB Dynpro can run without the Netweaver umbrella if we upgrade a WEB as 6.2 server to WEB as 6.4?

athavanraja
Active Contributor
0 Kudos

What do you mean by "without the Netweaver umbrella" - do you mean the JAVA stack.

and which webdynpro you are talking about? if its ABAP then the minimum requirement NW2004s (thats WAS7.00)

Regards

Raja

Former Member
0 Kudos

Hello,

Looks like dead end. Thanks for the effort and time. How do I close this thread now?

Regards

Jan

athavanraja
Active Contributor
0 Kudos

may not be! need to search the web! there may be something. This is an interesting thing. i will try it out and if successful, i will post my experiences back inthis thread.

for closing, you have either choose solved on my own radiobutton in your originial post or solve problem radio button in the answers

Regards

Raja

Former Member
0 Kudos

hey,

you can use the url of the icon in the value fields

<img src='url'>

grtz

Koen

Message was edited by: Koen Labie

athavanraja
Active Contributor
0 Kudos

I dont think this will work within dropdownlistbox.

Regards

Raja