cancel
Showing results for 
Search instead for 
Did you mean: 

Select all in a custom table view

Former Member
0 Kudos


Hi ,

Select all option not working in a custtom z table created.

changed the html page

"<%= DASHBOARD->SELECTED_INDEX %>"

                         selectedRowIndexTable =
"<%= DASHBOARD->SELECTION_TAB %>"

                         selectionColumn       =
"<%= lv_cellerator_selectioncolumn %>"

                         selectionMode         =
"MULTI"

and also  the redefined the method

ON_INIT_ACTIVATION:

    typed_context->DASHBOARD->set_selection_mode(

            iv_selection_mode = cl_bsp_wd_context_node_tv=>selmode_multi ).

For the first time the selection is not done ,but when we click on the select all button for the 2nd or 3rd time ,all the rows are getting selected.

Thanks,

Anitha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anitha,

I faced similar issue some time back when creating a custom table view. Couple of options worth a try are:

  • debug the method EH_ON_ROW_SELECTION of respective context node class and see if the attribute SELECTION_TAB is filled with the indices of selected/deselected rows.
  • Try using a configtable tag in your htm page instead of cellator
  • call super class of DO_PREPARE_OUTPUT incase you enhanced this method(this contains method build_table() that renders the content )

If none of them work, then you could create a new attribute of type SELECTION_TAB, populate it manually in EH_ON_ROW_SELECTION and use this attribute in htm page instead of selection_tab:

                    selectedRowIndexTable = "<%= BTPartner->ZZSELECTION %>"


This approach worked for me.


Regards,

Narendra

Former Member
0 Kudos

Hi ,

i have created attribute

"<%= DASHBOARD->ZSELECTION_TAB %>"

now the select all is working fine..,

but deselect for the first time not working ,

2nd time if we click again its working.

thanks,

Anitha

Former Member
0 Kudos

Hi,

Are you removing the indices from the internal table once you click on deselect?

Regards,

Narendra

Former Member
0 Kudos

Hi ,

By standard the select and deselct is happening ,but not for the very first time,

3rd time when u clik on the select all option .

Dint do any coding to remove the indices.

Thnaks,

Anitha

Former Member
0 Kudos

Hi ,

for the 3rd time i click on selectall/deselect all  its working ,not for the first time.

Thanks,

Anitha

Answers (1)

Answers (1)

deepika_chandrasekar
Active Contributor
0 Kudos

Hi Anitha,

Try selection mode with

selectionMode         = "<%= DASHBOARD->SELECTION_MODE %>" or

selectionMode = "MULTISELECT" and check.

Regards,

Deepika C.



                        

Former Member
0 Kudos

Hi ,

Geeting errror below

<thtmlb:cellerator>: (selectionMode) The Attribute Value is not a Value from: NONE/SINGLE/MULTI

Thnaks,

Anitha