cancel
Showing results for 
Search instead for 
Did you mean: 

CHTMLB: CONFIGTABLE & CHTMLB: TableExtension

Former Member
0 Kudos

Hello Forum,

I am implementing Table View based on SImple Objects (ZCompetitors) - very similar to the blog in SDN along the same lines -

http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUITechnical-CreatingTableViewInWebUI

However I am facing the following problem - I need some guidance and input to resolve the problem.

My parent context node is BTAdminH (Instead of Campaign in the above blog) and my Simple Object is related to Competitor.

Since Initially, the competitior table is empty at the database level, the result of the view is that it shows 'No Result Found' literal in the content of the table (Instead of showing normal rows in the table). Subsequently, when I press EDIT LIST, the buttons Insert and Delete begin to appear. I donot an empty row with empty fields to fill in data. I mean I cannot add any content in the row of the table.

Could you help me. Am I right in expecting the row content to be editable and when I press Insert, the program should read the row content and create simple object and subsequently fill up the z-table related to Simple Object.

Regards

Tushar Kansara

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello ,

I realize I have not given enough contextual information. I am just putting some code snippet. Request forum to help me out.

(Upon reviewing literature, I realized configTable is kind of deprecanted BSP Element hence now using COnfigCellerator)

<thtmlb:areaFrameSetter toolbarButtons  = "<%= controller->ab_button %>"
                        maxButtonNumber = "2"
                        displayMode     = "<%= controller->view_group_context->is_view_in_display_mode( controller ). %>" />
<%@extension name="chtmlb" prefix="chtmlb" %>
<chtmlb:tableExtension tableId = "comptable"
                       layout  = "FIXED" >
  <%@extension name="chtmlb" prefix="chtmlb" %>
<chtmlb:configCellerator id = "comptable"
                         table = "//Competitors/Table"
                         width = "100%"
                         actions = "<%= controller->gt_button %>"
                         visibleRowCount = "10"
                         editMode = "ALL"
                         rowCount = "10"
                         displayMode           = "<%= controller->view_group_context->is_view_in_display_mode( Controller ). %>"
 />
</chtmlb:tableExtension>

The resulting output is as follows:

(I am not able to put Screen Dump here, but it looks as follows)

Columns --> One-CLick Business Partner DescriptionEstimation Turnover

Values --> <Dele icon> Competitor not bound Turnover not Bound

Column Business Partner is a display column hence blank.

Estimation is a Pick List Derop Down but is not editable.

Going back to my original Question - Since the collection_wrapper for the competitor context node is empty, I am not surprised that the Z-Table in the Assignment Block has values such as Competitor not bound.

But how do I get adding new values in this Ztable and end up creating a Simple Object.

I am conversant wit Simple Object API (However I am unsure how to use values from a Z-table which user will fill up, can be used in updating simple object properties).

Regards

Tushar Kansara