Overriding Help Links Dynamically

Procedure

Overriding Help Links Dynamically

If in your Web Dynpro application you do not want to display the help link defined for the application in the Help Center, and you would rather display a link to a different help topic, you can override the application help link dynamically. To do this use method SET_HELP_LINK of interface IF_WD_RR_APPLICATION and specify APPLICATION_INFO.

  1. method onactionchange_appl_helplink .
    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
    data application_info type ref to if_wd_rr_application.
    api_main2 = wd_this->wd_get_api( ).
    component = api_main2->get_component( ).
    application = component->get_application( ).
    application_info = application->get_application_info( ).
    application_info->set_help_link( 'HELPTYPE=SAPHELP&_LOIO=452C8201E9EF48D882BD10244D085661&_CLASS=BIC_OOO' )
    endmethod.
                      

For information about the parts of the parameter passed in method set_help_link, see: Parameters for Links to Documents in Knowledge Warehouse

Result

The help link is displayed in the Help Center instead of the help links set in the properties of the Web Dynpro application.