cancel
Showing results for 
Search instead for 
Did you mean: 

Webdyn Pro - Grey out certain rows in ALV?

Former Member
0 Kudos

Hi guys,

I'm quite new to webdyn pro. So please bear with me

I've a webdyn pro component which displays a simple alv output on screen.

I have a requirement where I need to check if lets say Status = 1 or 2 or 3 or 4.

If its either one of those status, grey out those row.

How I'm displaying it is

node_searchinfo = wd_context->get_child_node( name = `SEARCH_DATA` ).
  node_searchinfo->bind_table( it_searchdata ).

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Refer this thread :

.

Also you may find many threads similar to your query if you search here.

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

You can add new attribute "CellDesign" of type WDUI_TABLE_CELL_DESIGN to your structure.

bind this attribute to alv columns cell design. Something like this

field-symbols <wa_colum> like line of lt_columns.

lt_columns = l_table->if_salv_wd_column_settings~get_columns( ).

loop at lt_columns[] assigning <wa_colum>.

<wa_colum>-r_column->set_cell_design_fieldname( value = 'CELLDESIGN' ).

endloop.

fill the celldesign value 00 (standard) and according to your status fill celldesign value (see domain WDUI_TABLE_CELL_DESIGN ).

This has been discussed many times in SCN , so you could easily find resources if you do a search.

Former Member
0 Kudos

Thanks alot guys.

Actually I did try to search, probably not the right keywords.

Appreciate the help..I'll give it a go. Many thanks!

Former Member
0 Kudos

guys I'm still not sure how do I set the row to grey.

How do I make the particular row(s) grey by checking values in the itab(displayed in the ALV)?

lets say

Row 1 Grey

Row 2 normal

row 3 normal

row 4 grey

Former Member
0 Kudos

Hi,

I assume you have CellDesign attribute in your structure.

You have Configure_alv method to configure alv settings. If you havent one ..create one and do the coding as i gave you already.

You have to fill your Context node in some place with values.

If you have CellDesign attribute in your node and set its default value is 00.

If <your staus field is >

celldesign = 05 for example.

endif.

Former Member
0 Kudos

Thanks dude! I got it!

Celldesign was the one I needed.