cancel
Showing results for 
Search instead for 
Did you mean: 

Expand assignment block functionality

Former Member
0 Kudos

Hello,

the standard assignmentblocks and also the custom assignmentblocks with table offer an "expand" - functionality.

If we use "expand" about 40 to 50 rows are visible on one page. ´

I´m wondering how this could be changed to 100?

Thank you

Kind regards

Manfred

Accepted Solutions (1)

Accepted Solutions (1)

MichaelNe
Employee
Employee
0 Kudos

Hi Manfred,

instead of visible row count try visibleRowCountExpanded = 100.

Best Regards,

Michael

Former Member
0 Kudos

Thank you, done - but sorry - again no effect at all:

<chtmlb:configCellerator    id    = "Table"
                            table = "//BuilContactPerson/Table"
                            width = "100%"
                            usage = "ASSIGNMENTBLOCK"
                            visibleRowCountExpanded = "100"/>

Best regards

Manfred

former_member189678
Active Contributor
0 Kudos

Manfred,

Could you try using a different Tag a widely used configTable instead of cellarator!! Check the necessary attributes you need apart from visibleRowCount which you will have to use.

Rg,

Harshit

Former Member
0 Kudos

Hi Harshit,

thank you for your answer.

VISIBLEROWCOUNTEXPANDED is not there in the configTable.

Therefore it gives a syntax error if i try to use this.

Kind regards

Manfred

former_member189678
Active Contributor
0 Kudos

I know that, please use visibleRowCount only.

Rg,

Harshit

Former Member
0 Kudos

Hi Harshit,

thank you again for your answer.

I tried it also with visibleRowCount

<chtmlb:overviewTableConfig    id    = "Table"
                               table = "//BuilContactPerson/Table"
                               width = "100%"
                               visibleRowCount = "100"
                               />

This leads also to an syntax error because visibleRowCount is not defined.

Any idea?

Thank you

Kind regards

Manfred

former_member192716
Contributor
0 Kudos

Hi Manfred,

I had done the same for quotations item list (component BT115QIT_SLSQ Vew: Items) with more than 100 items. It works perfectly fine( with expand button in case of more than 100 entries),


 <chtmlb:configTable id                    = "AccResTable"
                      displayMode           = "<%= lv_displayMode %>"
                      navigationMode        = "BYPAGE"
                      onRowSelection        = "select"
                      headerText            = "<%= lv_headerText %>"
                      headerVisible         = "FALSE"
                      table                 = "//BTAdminI/Table"
                      actions               = "<%= controller->gt_button %>"
                      usage                 = "ASSIGNMENTBLOCK'"
                      width                 = "100%"
                      visibleRowCount       = "100"
                      allRowsEditable       = "TRUE"

Regards,

Arun

former_member189678
Active Contributor
0 Kudos

Manfred,

You are currently using OverviewTableConfig!!! Please try with ConfigTable mentioned earlier in my post, which has the necessary tag.

<chtmlb:ConfigTable  id    = "Table"
                               table = "//BuilContactPerson/Table"
                               width = "100%"
                               visibleRowCount = "100"
                               />

Rg,

Harshit

Answers (5)

Answers (5)

MichaelNe
Employee
Employee
0 Kudos

Hi,

this is rather strange. Hope you did activate the .htm after the layout change and restarted the application. Probably you could check in the debugger, what happens in the underlying class CL_THTMLB_CELLERATOR. You should check the where-used list of the attribute VISIBLEROWCOUNTEXPANDED of this class to see where this attribute is handeled and what's its value at runtime. By the way this class defaults the VISIBLEROWCOUNTEXPANDED to 50. So probably you could also consider a modification of this class, if the outlined approach does not succeed.

Best Regards,

Michael

MichaelNe
Employee
Employee
0 Kudos

Hi Manfred,

you need to set the attribute usage = ASSIGNMENTBLOCK at the tag <chtmlb:configCellerator> to force rendering of the expand feature.

Best Regards,

Michael

Former Member
0 Kudos

Hi Michael, Hi Harshit,

no my .htm looks like this.

But his has no effect on the visible rows in expand-mode - still 50.

The only effect is that my assignmentblock is now displayed with an ugly table grid.

<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="xhtmlb" prefix="xhtmlb" %>
<%@extension name="crm_bsp_ic" prefix="crmic" %>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<%@extension name="thtmlb" prefix="thtmlb" %>

<thtmlb:areaFrameSetter toolbarButtons  = "<%= controller->gt_button %>"
                          maxButtonNumber = "3" />


<chtmlb:configCellerator    id    = "Table"
                            table = "//BuilContactPerson/Table"
                            width = "100%"
                            usage = "ASSIGNMENTBLOCK"
                            visibleRowCount = "100"/>

Kind regards

Manfred

MichaelNe
Employee
Employee
0 Kudos

Hi Manfred,

you would need to substitute the <chtmlb:overviewTableConfig> tag by the <chtmlb:configCellerator>.

Best Regards,

Michael

Former Member
0 Kudos

Hello Guys,

thank you very much for your answers.

I haven´t found the solution yet.

@Harshit: With your proposal i´m getting syntax errors if i try to activate.

@Michael: With your proposal the "expand"-Link in the assignmentblock was gone (no longer visible).

The view i´m trying to change is:

component: BP_DATA

View: AccountContactsCurrentOV

Thank you

Kind regards

Manfred

MichaelNe
Employee
Employee
0 Kudos

Hi Manfred,

just checked in the system. The config table tag does not offer the parameter, but the cellerators like <chtmlb:configCellerator> do. So if you step to the .htm layout of your assignment block you could try to replace the <chtmlb:configTable> tag with the <chtmlb:configCellerator> and use the parameter visibleRowCountExpanded to define the row count for the expanded assignment block (default in the underlying class of the tag is 50). The tag itself is used for instance in the UI component BEABDH_BILLDOC.

Best Regards,

Michael

MichaelNe
Employee
Employee
0 Kudos

Hi Manfred,

did you try to set the visibleRowCountExpanded attribute in the layout for the <thtmlb:cellerator> or <chtmlb:configTable> tag?

Best Regards,

Michael

Former Member
0 Kudos

Hello Michael,

you mean the .htm page of the assignmentblock itself?

I haven´t used this attribute visibleRowCountExpanded yet.

could you please provide an example?

Thank you

Kind regards

Manfred

Former Member
0 Kudos

Hi Mannif

You can use the BSP element "cellerator" which has this attribute "visibleRowCountExpanded" which needs to be a set a value.

It ahs to be done in the *htmpl page of the view. An exmaple could be something like this.

<thtmlb:cellerator id = "tv1"

actions = "<%= controller->gt_button %>"

actionsMaxInRow = "3"

editMode = NONE

fillUpEmptyRows = "FALSE"

usage = "SEARCHRESULT"

personalizable = "FALSE"

onRowSelection = "select"

onHeaderClick = "sort"

showEmptyTableText = "FALSE"

iterator = "<% = lv_iterator %>"

horizontalScrolling = "<%= lv_hor_scroll %>"

table = "//CondRecList/TABLE"

tableLayout = "FIXED"

visibleRowCount = 40

visibleRowCountExpanded = 50

width = "100%" >

</thtmlb:cellerator>

Former Member
0 Kudos

Hello Michael, hello Abishek,

i tried it with very strange results on the frontend. Maybe i added the coding on the wrong place.

Here is my .htm like it is in standard.

could you please tell me how i need to change this:

<%@extension name="xhtmlb" prefix="xhtmlb" %>
<%@extension name="crm_bsp_ic" prefix="crmic" %>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<%@extension name="thtmlb" prefix="thtmlb" %>

<thtmlb:areaFrameSetter toolbarButtons  = "<%= controller->gt_button %>"
                          maxButtonNumber = "3" />


<chtmlb:overviewTableConfig id    = "Table"
                            table = "//BuilContactPerson/Table"
                            width = "100%" />

Thank you

Kind regards

Manfred

former_member189678
Active Contributor
0 Kudos

Hi,

Please see if you can modify,

<%@extension name="xhtmlb" prefix="xhtmlb" %>
<%@extension name="crm_bsp_ic" prefix="crmic" %>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="chtmlb" prefix="chtmlb" %>
<%@extension name="thtmlb" prefix="thtmlb" %>
 
<thtmlb:areaFrameSetter toolbarButtons  = "<%= controller->gt_button %>"
                          maxButtonNumber = "3" />
 
 
<chtmlb:overviewTableConfig id    = "Table"
                            table = "//BuilContactPerson/Table"
                            width = "100%" 
                            visibleRowCount = 100/>

Rg,

Harshit