I have to create a new component from scratch. It should have a view which will list the opportunities according to some selection criteria. My problem is that i am not able to create a view. (The reqd view is somewhat similar to that of 'Opportunities'). How do i create a table view, to be precise, i am not able to get the configuration tab, next to the structure tab.
Any help would surely be rewarded.
Thanks and regards,
Claudia Bayer replied
add the following code in the layout of your view ( *.htm).
Here CNODE is your context node.
<%@page language="abap" %> <%@extension name="chtmlb" prefix="chtmlb" %> <% DATA: lv_xml type string. lv_xml = controller->configuration_descr->get_config_data( ). %> <chtmlb:tableExtension tableId = "List" layout = "FIXED" /> <chtmlb:configTable xml = "<%= lv_xml %>" onRowSelection = "SELECT" id = "Table" navigationMode = "BYPAGE" table = "//CNODE/TABLE" width = "100%" selectedRowIndex = "<%= cnode->selected_index %>" headerVisible = "TRUE" downloadToExcel = "FALSE" visibleRowCount = "20" selectionMode = "<%= cnode->selection_mode %>" />
Then go to another view and go back (to refresh the tabs), now you get the config tab.