This website is not affiliated with, sponsored by, or approved by SAP AG.

cl_salv_table checkbox and dropdown column

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

cl_salv_table checkbox and dropdown column

Postby jamiguel7777 » Tue Jan 20, 2015 11:38 am

Hi friends, i try find some other samples same as:

http://zevolving.com/2010/01/salv-table ... -checkbox/

but not lucky...

i try add a dropdown column to this sample, but a friend tell me:

For class CL_SALV_TABLE,

Tables displayed with ALV are not available for input.

Him recommend me user: cl_gui_alv_grid

its right? or is possible add a drop down column?

thanks.
jamiguel7777
 
Posts: 11
Joined: Tue Jan 20, 2015 10:47 am

Re: cl_salv_table checkbox and dropdown column

Postby Gothmog » Tue Jan 20, 2015 12:13 pm

Yes, you can't make CL_SALV_TABLE editable without hacking the MODEL object - there's a blog on this somewhere.
CL_GUI_ALV_GRID is the way to go.

The link you provide isn't exactly making the checkbox editable - it's just making it a hotspot, catching the link_click event, and changing the value in the internal table before refreshing the alv display.
I doubt such a solution could be adapted for listboxes.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: cl_salv_table checkbox and dropdown column

Postby jamiguel7777 » Tue Jan 20, 2015 12:43 pm

ok, thanks.

i learn and study the cl_gui_alv_grid

:)

thanks.
jamiguel7777
 
Posts: 11
Joined: Tue Jan 20, 2015 10:47 am

Re: cl_salv_table checkbox and dropdown column

Postby Gothmog » Wed Jan 21, 2015 9:24 am

There are many demo programs for this class, named BCALV_...
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: cl_salv_table checkbox and dropdown column

Postby jamiguel7777 » Thu Jan 22, 2015 10:20 am

Hi Gothmog i found this thread:

http://scn.sap.com/message/4845798#4845798

Thanks.
jamiguel7777
 
Posts: 11
Joined: Tue Jan 20, 2015 10:47 am


Return to ABAP

Who is online

Users browsing this forum: No registered users and 8 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.