<?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 Re: TRaffic light with tooltips in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light-with-tooltips/m-p/2229890#M479644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can bind the selection of which variant have to be used to the column itself or&lt;/P&gt;&lt;P&gt;add a new column to your node which is only for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at the ON_UPLOAD_COMPLETE method of the component controller&lt;/P&gt;&lt;P&gt;of the WD4A component SALV_WD_DEMO_TABLE_CV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if l_erg eq 0.&lt;/P&gt;&lt;P&gt;ls_data-cellvariant = 'TEXT_VIEW'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases the field cellvariant is set to text view.&lt;/P&gt;&lt;P&gt;Go down in the method you will find this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_columns into ls_column.&lt;/P&gt;&lt;P&gt;*... create textview cellvariant for each column&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;lr_cv type ref to cl_salv_wd_cv_standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object lr_cv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_cv-&amp;gt;set_key( 'TEXT_VIEW' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;lr_textview type ref to cl_salv_wd_uie_text_view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object lr_textview.&lt;/P&gt;&lt;P&gt;lr_textview-&amp;gt;set_text_fieldname( ls_column-id ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_cv-&amp;gt;set_editor( lr_textview ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_column-r_column-&amp;gt;add_cell_variant( r_cell_variant = lr_cv ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_column-r_column-&amp;gt;set_sel_cell_variant_fieldname( 'CELLVARIANT' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the cellvariant is added to the column and the filedname that contains the&lt;/P&gt;&lt;P&gt;variant to choose is set via set_sel_cell_variant_fieldname( 'CELLVARIANT' ).&lt;/P&gt;&lt;P&gt;This mean that in each row the field cellvariant is checked and if it contains the&lt;/P&gt;&lt;P&gt;text 'TEXT_VIEW' the cell variant is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could set up the tooltip of each cell editor you use for each cell vraiant. In the&lt;/P&gt;&lt;P&gt;above example it wozuld be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object lr_textview.&lt;/P&gt;&lt;P&gt;lr_textview-&amp;gt;set_text_fieldname( ls_column-id ).&lt;/P&gt;&lt;P&gt;lr_textview-&amp;gt;set_tooltip( 'TOOLTIP FOR TEXTVIEW CELL VARIANT' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz do reward points.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 May 2007 18:32:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-06T18:32:08Z</dc:date>
    <item>
      <title>TRaffic light with tooltips</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light-with-tooltips/m-p/2229889#M479643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;alv output has traffic lights icon. &lt;/P&gt;&lt;P&gt;I want diiferent tooltips to come depending upon the color of light( red, green and yellow)&lt;/P&gt;&lt;P&gt;Can anybody help me ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2007 18:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light-with-tooltips/m-p/2229889#M479643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-06T18:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: TRaffic light with tooltips</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light-with-tooltips/m-p/2229890#M479644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can bind the selection of which variant have to be used to the column itself or&lt;/P&gt;&lt;P&gt;add a new column to your node which is only for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at the ON_UPLOAD_COMPLETE method of the component controller&lt;/P&gt;&lt;P&gt;of the WD4A component SALV_WD_DEMO_TABLE_CV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if l_erg eq 0.&lt;/P&gt;&lt;P&gt;ls_data-cellvariant = 'TEXT_VIEW'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases the field cellvariant is set to text view.&lt;/P&gt;&lt;P&gt;Go down in the method you will find this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_columns into ls_column.&lt;/P&gt;&lt;P&gt;*... create textview cellvariant for each column&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;lr_cv type ref to cl_salv_wd_cv_standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object lr_cv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_cv-&amp;gt;set_key( 'TEXT_VIEW' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;lr_textview type ref to cl_salv_wd_uie_text_view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object lr_textview.&lt;/P&gt;&lt;P&gt;lr_textview-&amp;gt;set_text_fieldname( ls_column-id ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lr_cv-&amp;gt;set_editor( lr_textview ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_column-r_column-&amp;gt;add_cell_variant( r_cell_variant = lr_cv ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_column-r_column-&amp;gt;set_sel_cell_variant_fieldname( 'CELLVARIANT' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the cellvariant is added to the column and the filedname that contains the&lt;/P&gt;&lt;P&gt;variant to choose is set via set_sel_cell_variant_fieldname( 'CELLVARIANT' ).&lt;/P&gt;&lt;P&gt;This mean that in each row the field cellvariant is checked and if it contains the&lt;/P&gt;&lt;P&gt;text 'TEXT_VIEW' the cell variant is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could set up the tooltip of each cell editor you use for each cell vraiant. In the&lt;/P&gt;&lt;P&gt;above example it wozuld be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object lr_textview.&lt;/P&gt;&lt;P&gt;lr_textview-&amp;gt;set_text_fieldname( ls_column-id ).&lt;/P&gt;&lt;P&gt;lr_textview-&amp;gt;set_tooltip( 'TOOLTIP FOR TEXTVIEW CELL VARIANT' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz do reward points.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 May 2007 18:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/traffic-light-with-tooltips/m-p/2229890#M479644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-06T18:32:08Z</dc:date>
    </item>
  </channel>
</rss>

