cancel
Showing results for 
Search instead for 
Did you mean: 

Row coloring in WD table (not ALV) based on condition

Former Member
0 Kudos

HI All,

I have created WD table with 8 columns

8 Th columns is “color “   type wdui_table_cell_desgin

All 7 are bounded to table except color.

Depending on my condition I am passing the domain values colors

Loop at itab into WA.

Ex: if wa-abc = ‘ABC’.

    Wa-color = 27

Modify statement …….

End loop.

I followed the below link .

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707fb792-c181-2d10-61bd-ce15d58b5...

My problem is WD Table row is not coloring, any suggestion or related links

Will be awarded. If iam in wrong way please correct me.

Thanks

Gopal

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Gopal,

There are two posibilities that, your Table row/cell coloring is not working

1:

          Make sure that you have bound the columns "CellDesign" property to COLOR attribute as below

    

     Note: If you need to color whole ROW, then you need to bind the cellDesign of all columns to COLOR, otherwise, only respective cells gets colored.

2. Make sure that the property "Design" of table should not be set to "ALTERNATING", because it overrides the color. Hence, set the design of table to "standard"

    

Hope this resolves your issue.

Regards,

Rama

Former Member
0 Kudos

H Ram,

Thanks for the solution it worked out. Kindly I am in need of one more help. Need to enable horizontal scroll bar with up, down arrow mark. As we can see in 703 versions currently I am in version 702.

Any suggestions with link will be helpful to me.

Thanks

Gopal

ramakrishnappa
Active Contributor
0 Kudos

Hi Gopal,

I think you need to use WDTABLENAVIGATION as SCROLLBAR

Go to parameters tab of WDA application and choose parameter WDTABLENAVIGATION and select value SCROLLBAR

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Rama it give SCROLLBAR for browser screen not for WD table fotter .

Thanks

Gopal

ramakrishnappa
Active Contributor
0 Kudos

Hi Gopal,

For horizontal scroll bar in a table, we need to set the ScollableColCount. i.e. if we have 10 columns in a table, set the scrollable column count to 2 & set the width of table to say 20EX ( depends on you window size ) and you would see horizontal scroll bar for the rest of columns.

For vertical scroll bar in a table, we need to set the visiblRowCount. i.e. set value to 5 and if there are more than 5 entries, a vertical scroll bar appears.

Hope this helps you.

Regards,

Rama

Answers (0)