Header Ads

How to make a view configurable ?

<%@page language="abap"%>
<%@ extension name="chtmlb" prefix="chtmlb"%>
<% DATA: LV_XML TYPE STRING.
  lv_xml    = controller->CONFIGURATION_DESCR->GET_CONFIG_DATA( ).%>
     <chtmlb:config xml     = "<%= lv_xml %>"
                   mode    = "RUNTIME"  />

Add the above code to the view htm page .. 
For table view 
 <%@page language="abap" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<chtmlb:overviewTableConfig   id       "CellTable"                                                  table     "//<Context node name >/Table"                               width     "100%" />
Powered by Blogger.