cancel
Showing results for 
Search instead for 
Did you mean: 

Show explanation by defaul ("Display Quick Help")?

daniel_humberg
Contributor
0 Kudos

If I put an explanation element on a web dynpro view, and if I use the design "Emphasized", it is disabled by default. To see it, users have to right click and select "Display Quick Help".

Is there a way to display, not hide, such an explanation by default?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Daniel,

Use following code in 8WDDOMODIFYVIEW* Method.


 data text               type string value 'Help Text'. " Give the text here
  data wad_formatted_text type ref to cl_wd_formatted_text.
  data ui_explanation     type ref to cl_wd_explanation.


  ui_explanation ?= view->get_element( 'EXPLANATION' ). " Give the ID of your expalanation UI
  ui_explanation->set_text( text ).

It will set the text even if You have selected design as 'Emphasized'.

I hope it helps.

Regards,

Rohit

daniel_humberg
Contributor
0 Kudos

I tried that code but it did now help.


  IF first_time = abap_true.
    DATA lo_explanation     TYPE REF TO cl_wd_explanation.

    lo_explanation ?= view->get_element( 'ZEXP_ADD_INFO' ). 

    lo_explanation->set_visible( cl_wd_explanation=>e_visible-visible ).
    lo_explanation->set_text( 'text' ).
    lo_explanation->set_enabled( abap_true ).

  ENDIF.

What I found out: A user can chose to display or hide explanations via right-mouse click (Display/Hide Quick Help). The problem in my case is, that the quick help is by default hidden for all new users.

And usually, the don't know that they can get further help texts via right-mouse click.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can use the application parameter WDHIDEMOREFIELDHELPASDEFAULT to change the fact that the explanations and other quick help is defaulted off.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/7b/fb57412df8091de10000000a155106/frameset.htm

daniel_humberg
Contributor
0 Kudos

Hi Thomas,

so I set the URL parameter WDHIDEMOREFIELDHELPASDEFAULT to SPACE/blank/nothing, if I want that all users see my help texts by default. OK. This seems to work.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I am trying to force the Quick Help to Display by default the 1st time an end user logs into the portal.

I tried changing the application parameter WDHIDEMOREFIELDHELPASDEFAUL and that did not work. The Quick Help does not display on by default.


Can this be done without any code??

I see some posts on here with some code to force it override if the end user closes it. I do not need to do that. I just need it to default open the first time an end user logs in.

Can anyone help?

Thanks,

Sherri

Former Member
0 Kudos

You can use the following code in WDDOMODIFYVIEW. It will never let user disable the quick help.

DATA api_main2        TYPE REF TO if_wd_view_controller.

   DATA component        TYPE REF TO if_wd_component.

   DATA application      TYPE REF TO if_wd_application.

   api_main2 = wd_this->wd_get_api( ).

   component = api_main2->get_component( ).

   application = component->get_application( ).

   application->set_show_explanation( abap_true ).

-Manish

S0003699348
Explorer
0 Kudos

Hi,

is it possible to force the help text display?

If a user hides the help, is it possible to have it always open when he enters the application?

Another option would be to have a report to clear this personalization of the user, does this exists?

Thanks,

Paulo Ruivo

Former Member
0 Kudos

A couple of days ago I was looking the way to solve this, google brought me to this post more than once but I couldn't find the answer and I gave up. I was looking how to solve another completely different issue and accidentally found the answer navigating through the interface definitions so I came to post it. This code will show all quick helps whenever executed (from component controller):

{code}

data: app type ref to if_wd_application,
        comp type ref to if_wd_component.

  comp = wd_this->wd_get_api( ).
  app  = comp->get_application( ).
  app->set_show_explanation( abap_true ).

{code}

Hope it will help someone.

Regards.

Former Member
0 Kudos

Hi Daniel,

i just checked by default Explanation gets displayed!! i am on SAP BASIS 7 sp13. Only after i chose to hide , we need to right click & chose show help!!.

Greetings

Prashant

daniel_humberg
Contributor
0 Kudos

Did you try design=emphasized as well? Was it shown by default as well?

If so, then there must be a setting on component or application or user level to show/hide explanations.

Any idea where?