cancel
Showing results for 
Search instead for 
Did you mean: 

Table View

Former Member
0 Kudos

Hi,

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,

Radhika

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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.

Best regards,

Claudia

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Claudia,

Thanks a lot for ur help.

But now i am facing another issue. I am not able to get the data from the table(used for creating the context node) on the UI. Please help me out in doing so.

Thanks and Regards,

Radhika Chuttani

Former Member
0 Kudos

Hi,

hard to say, what's the problem.

Is the table filled with lines but no text, or is the table cleared completely?

Be sure, that your context node collection consists of all the entities you want to show in the table.

Furthermore check if you call "typed_context->cnode->build_table( )" in the do_prepare_output of the controller class.

Regards,

Claudia

Former Member
0 Kudos

Hi,

you need to create a view set to get the configuration tab.

vineet