Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2801

Re: Dynamic checkboxes generation based on table

$
0
0

Dear Arthur ,

 

as per my understand , requirement is to generate  'X' no of times = db records.

 

need to gather the records based on query and pass it into final output internal table.

 

in the field catalog need to write the below code.

 

wa_fieldcat-fieldname = 'CHECKBOX'.

  ADD 1 TO wf_pos.

  wa_fieldcat-col_pos  = wf_pos.

  wa_fieldcat-datatype = 'C'.

  wa_fieldcat-outputlen  = '6'.

  wa_fieldcat-reptext   = 'Select'.

  wa_fieldcat-coltext  = 'Select'.

  wa_fieldcat-seltext  = 'Select'.

  wa_fieldcat-tooltip  = 'Select'.

  wa_fieldcat-checkbox = 'X'.

  wa_fieldcat-edit     = 'X'.

  wa_fieldcat-key      = ''.

  wa_fieldcat-icon      = ''.

  APPEND wa_fieldcat TO it_fieldcat.

 

and call nmethod.

 

CALL METHOD alv_grid->set_table_for_first_display

    EXPORTING

      is_layout                     = gs_layout

      it_toolbar_excluding          = lt_exclude

    CHANGING

      it_outtab       = it_output

      it_fieldcatalog = it_fieldcat..

 

I hope it would be useful  to you .

 

 

Regards,

sudheer.


Viewing all articles
Browse latest Browse all 2801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>