Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamically coloring a cell based on user action.

Former Member
0 Likes
355

Dear Gurus,

I know that many a questions have been posted based on cell coloring. But sadly i couldn't find anything that suits my requirement. My requirement is like i want to color a cell when the user double clicks on that cell. I have captured the double click event and iam filling the required color in a field in final itab (name : color). After this iam calling refresh_table_display.

But sadly no changes are visible. Any help would be greatly appreciated.

Given below the code.

gfl_color-fname = l_fname-fieldname.
          gfl_color-color-col = '6' .
          gfl_color-color-inv = '1'.

          APPEND gfl_color TO gfl_rfinal-color.


          MODIFY git_rfinal FROM gfl_rfinal INDEX l_index-row_id
                                            TRANSPORTING color.

          CLEAR gfl_rfinal.


          CALL METHOD r_grid1->refresh_table_display
            EXCEPTIONS
              finished = 1
              OTHERS   = 2.

Thanks and Regards,

Sandeep Sivan

Edited by: sandeep sivan on Aug 5, 2010 10:51 AM

Edited by: sandeep sivan on Aug 5, 2010 11:01 AM

1 REPLY 1
Read only

Former Member
0 Likes
324

Issue Solved.