cancel
Showing results for 
Search instead for 
Did you mean: 

table row color

Former Member
0 Kudos

Hi All,

I have a table which displays the output of an RFC.

My requirement is to change the row color of certain records which are inactive.

Since i cannot add an attribute to a model node,

I created a node 'RowColor' with an attribute of type ide.webdynpro.uielementdefinitions.TableCellDesign

For each table column i have bound the above attribute to CellDesign property.

Now i loop through the size of RFC node

{

create a RowColor element

if(active)

{

set attribute CellDesign to standard

}

else

{

change color

}

add it to an Arraylist

}

wdThis.wdGetContext().nodeRowColor().bind(list);

Am i missing something ? or do i need to follow a different approach?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I cannot add an attribute ..it says

'Adding attributes is currently not supported if the node or model class has a dictionary structure binding'

PradeepBondla
Active Contributor
0 Kudos

Try to create a "model node" in that structure and add a "model attribute" under your newly created model node.

PradeeP

nikhil_bose
Active Contributor
0 Kudos

you can't add attributes direct to model/dictionary binded nodes. But you can create a subnode and within which you can have an attribute. Make the cardinality as 1:1 so that for each parent element, there is only one subnode-attribute exists.

nikhil

Former Member
0 Kudos

Hi,

you can create an attribute to a model node.

open the data modeller,

double click on the link between the view and the component controller,

there, expand the node in the view context , right click on node and add new value attribute.

Regards,

Satya.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

You should have a look at this weblog

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30291df2-b980-2a10-0884-839c4f7f...

Thanks,

Tulasi Palnati

Edited by: Tulasi Palnati on Aug 4, 2008 12:10 PM

PradeepBondla
Active Contributor
0 Kudos

hi,

you can create a attribute 'RowColor' in model node, select "model attribute". I did it few years back.... need to change one property of of that model attribute not sure which is that....

PradeeP