cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic calculated attribute with IWDCalculatedAttributeAccessor

bernd_speckmann
Contributor
0 Kudos

Hi,

I've got the following situation:

Context

DynTable1

On this node I add many attributes dynamicly on this way:


for(k=0; k < wdContext.nodeDynTable1MetaData().size(); k++) 		
	wdContext.nodeDynTable1().getNodeInfo().addAttribute(attr+k, dicttype);

The Data will be displayed in a Table. Now I want to color some table cells depending of values inside the table.

I have read a lot of posts, blogs and articles but did not find the best solution for me. I can color the cells with caclulated attributes, but the I have to create a calculated attribute for every table column. I found out that use of the

IWDCalculatedAttributeAccessor maybe a good solution.

Can anybody help with some code or a good example? Did not found anything....

Thanks ahead

Accepted Solutions (1)

Accepted Solutions (1)

former_member185086
Active Contributor
0 Kudos

Hi

Understand the following tutorial , will help you to achieve your requirement.

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961?quicklink=index&overridelayout=true]

other solution, if you want color at row lable then follow this one

[Colourful Table in Web Dynpro|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3548] [original link is broken] [original link is broken] [original link is broken];

BR

Satish Kumar

Answers (0)