cancel
Showing results for 
Search instead for 
Did you mean: 

Display underline to show if tool tip is present

Former Member
0 Kudos

Hi Experts,

I have a requirement where I want to mark UI element with something to show that tool tip is visible. I am thinking to mark UI element with underline if tool tip is there to display field.

I have tried explanation property to set it but it seems it does not working.

Does any body have some suggestion or some previous thread for it.

Thanks.

Shiv

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You need to follow the documentation link provided by Jozef Vaklavek. At first time you will not get indication.

To get the indication, you need to follow the below steps after binding explanation property of that UI Element.

You to rightclick the UI element on the screen and select display quick help. Then it will show you the indication that tooltip/explation text has been maintained.

PFB The snapshots for the same.

And if you want to show it my default after launching/executing the application,You can use the following code in WDDOMODIFYVIEW. It will never let user disable the quick help and display it by default.


DATA api_main         TYPE REF TO if_wd_view_controller.

  DATA component        TYPE REF TO if_wd_component.

  DATA application      TYPE REF TO if_wd_application.







  api_main = wd_this->wd_get_api( ).



  component = api_main->get_component( ).



  application = component->get_application( ).



  application->set_show_explanation( abap_true ).

Hope this helps you.

Thanks

KH

Former Member
0 Kudos

Thanks Katrice for detailed explanation.

However quick help is already activated in application but still explanation text is not coming.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Why you want to show indication i.e to mark UI element with underline?.If you maintain tool-tip for your UI element and on cursor position, it will automatically show the tooltip.

As per my suggestion, no need to show any indication.

Thanks

KH

Former Member
0 Kudos

@Katrice.

This was my first reaction when i got this requirement.

Tootip is designed as dynamic so it would come when certain value comes. So business want that if tooltip is there then highlight the value.

So let me know if you have any suggestion.

Former Member
0 Kudos

you will probably not manage it with a tooltip. The explanation should however work.

Explanation Property - Web Dynpro for ABAP - SAP Library

Also search for an example

Former Member
0 Kudos

Hello Jozef,

I am trying with explanation property with input field. but it is not working.

I am passing sap-explanation to X in URL parameter and using explanation attribute of input element with OTR text. but it is not working.

Former Member
0 Kudos

I do not have experience with this. Did you try static text?

Former Member
0 Kudos

Acutally I think Help mode is not activated. since underline is not coming.

Any suggestion to check if Help mode is active or not.