<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dynamically coloring a cell based on user action. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-coloring-a-cell-based-on-user-action/m-p/7168081#M1516816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But sadly no changes are visible. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Given below the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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-&amp;gt;refresh_table_display
            EXCEPTIONS
              finished = 1
              OTHERS   = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sandeep Sivan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sandeep sivan on Aug 5, 2010 10:51 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sandeep sivan on Aug 5, 2010 11:01 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 05:21:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-05T05:21:38Z</dc:date>
    <item>
      <title>Dynamically coloring a cell based on user action.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-coloring-a-cell-based-on-user-action/m-p/7168081#M1516816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But sadly no changes are visible. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Given below the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;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-&amp;gt;refresh_table_display
            EXCEPTIONS
              finished = 1
              OTHERS   = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sandeep Sivan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sandeep sivan on Aug 5, 2010 10:51 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sandeep sivan on Aug 5, 2010 11:01 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 05:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-coloring-a-cell-based-on-user-action/m-p/7168081#M1516816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-05T05:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically coloring a cell based on user action.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-coloring-a-cell-based-on-user-action/m-p/7168082#M1516817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue Solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 05:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-coloring-a-cell-based-on-user-action/m-p/7168082#M1516817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-05T05:42:45Z</dc:date>
    </item>
  </channel>
</rss>

