Header Ads

Correct Title for generic component


Correct Title for generic component (like Content Mgmt.)

This document describes how to set the correct view title for views of generic component, which has to be concatenated from different sources. The example described here is about content mgmt. / attachments.

To get a title like <Object type>: <Attribute1>, <Attribute2> - Attachments on the view of the edit pages (green) for content management (see picture below), the application using the generic component content management (GS_CM) needs to redefine the method GET_STATE_DESCRIPTION for the window (blue), which gathers the overview page and the window cmpCMDET. In this example this is done in the class CL_ZCM_COMP_MAINWINDOW_IMPL.
Note: The window for content management will return ‚Attachments’. Please arrange the final description according to your needs (via concatenate or via a text-element containing place holders like &1 &2 &3 &4).


METHOD if_bsp_wd_history_state_descr~get_state_description.
* call the super class to get the delegated description
* (e.g. for content management you will get back the term 'Attachments')
  CALL METHOD super->if_bsp_wd_history_state_descr~get_state_description
    EXPORTING
      iv_current_description = iv_current_description
    RECEIVING
      description            = description.
* build the final description according to your need
  CONCATENATE 'Account: Stag Achternblatt' '-' description
              INTO description separated by space.
ENDMETHOD.

 
 












Powered by Blogger.