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

How to add traffic lights icon (or images like) in simple table column(not ALV) in Web dynpro ABAP?

$
0
0

Hello all
can you help me with this problem
How to add traffic lights(or maybe something like them) , when i use If condition, in table row(not alv)?
My example:

 

IF <ls_wable>-/bic/vgf1tst = '0'.

*      <ls_wable>-image = '3'.  " GREEN LED/traffic light

       <ls_wable>-approve = '0'.

       <ls_wable>-/bic/vgf1tst = 'Initial'.

       IF lv_is_admin NE abap_true.

         <ls_wable>-cell_variant = '1'.

       ENDIF.

     ELSEIF <ls_wable>-/bic/vgf1tst = '1'.

*      <ls_wable>-image = '2'.  " GREEN LED/traffic light

       <ls_wable>-approve = '1'.

       <ls_wable>-/bic/vgf1tst = 'Approved'.

       <ls_wable>-cell_variant = '2'.

     ELSEIF <ls_wable>-/bic/vgf1tst = '2'.

*      <ls_wable>-image = '0'.  " GREEN LED/traffic light

       <ls_wable>-approve = '2'.

       <ls_wable>-/bic/vgf1tst = 'Rejected'.

       <ls_wable>-cell_variant = '2'.

     ENDIF.

 

 

In context i have STRING parameter that bind to this column.


Viewing all articles
Browse latest Browse all 8644

Trending Articles



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