cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown list tooltip changing when scrolling over values in the list

Former Member
0 Kudos

Hi,

I have a dropdown list where the tooltip is bound to a context attribute.

Once I select a value in the dropdown list the tooltip changes with it.

What I would like to have is that when I scroll through the dropdown list (go over the values of the dropdown list) tooltip changes.

How can I trigger an event on 'go over the value in dropdown list' ?

Thanks in advance!

Kind regards,

Amel Alic

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Parag,

What you are describing I already built into my dropdown list.

I need a way to show the tooltip on 'move over the dropdown list values'.

So when I open the dropdown list and move over the values in the list the tooltip should change along with it.

Regards,

Amel

thomas_szcs
Active Contributor
0 Kudos

Hi Amel,

Unfortunately, the tooltip refers to the whole dropdown. It's not possible to have a different tooltip for each item.

Best regards,

Thomas

Former Member
0 Kudos

Hi Amel Alic ,

Yes It is possible to due that for that you have to do following things

1) Please connect tooltip to some element of context of Type string

2) Now On select of particular value populate that text in element of node.

Just take case you made some node called 'Ttip' and make element as temptemp.

now on select you will populate appropiate content based on condition of value

Hope sample code I have made will surely help you.

............................................................................

DATA:

lt_attributes TYPE STANDARD TABLE OF if_request_ior=>element_Ttip,

wa_attributes LIKE LINE OF lt_attributes.

if (condition1 of value1 choosed)

wa_attributes-temptext = 'You have choosed value 1'

INSERT wa_attributes INTO TABLE lt_attributes.

endif.

if (condition2 of value2 choosed)

wa_attributes-temptext = 'You have choosed value 2'

INSERT wa_attributes INTO TABLE lt_attributes.

endif.

*endif.

Node->Bind_Table(

New_Items = lt_attributes

Set_Initial_Elements = Abap_True ).

If solution works give points.

Cheers !!!

Parag