on 09-16-2008 6:43 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.