cancel
Showing results for 
Search instead for 
Did you mean: 

color a row in 2004

birojpatro
Contributor
0 Kudos

Hi Gurus,

I am on NW2004 WebDynpro. I need to set a color for a row on some condition.

I used "apply template" method to generate the table from RFC on the view. I am looping through the table to get to a condion and add the required semantic color to the row.

How can I achieve this,

LOOP through the TABLE {

-


some statements

if (EXCEPTION ) {

<---want to set the semantic color for the table row HERE-->

<---What to write here---->

}

}

I am using a context node "state" with one attribute "colorR".

"colorR" of type Textviewsemantic color.

I am binding the attribute with the TableCellEditor's sematic property.

Please help....

Thanks

Biroj...

Accepted Solutions (0)

Answers (2)

Answers (2)

birojpatro
Contributor
0 Kudos

I hope.....everybody had a grt weekend.....

Plz look into my problem.....

as I said , I am on NW2004 ...

Thanks in advance..

Former Member
0 Kudos

What is the exact context structure, which code did you write already?

Armin

birojpatro
Contributor
0 Kudos

Hi Armin,

My context structure is as follows,

<model>Node

---<Valuenode>state

<Attribute>colorR

---Col1

---Col2

---Col3

"colorR" of type Textviewsemantic color.

I am binding the attribute with the TableCellEditor's sematic property.<i.e. col1,col2,col3 TableCellEditor's sematic property>

As I explained before,

my code is something like this,

LOOP through the TABLE {

some statements

if (EXCEPTION ) {

<---want to set the semantic color for the table row HERE-->

<---What to write here---->

}

}

Please let me know if you need more information.

Thanks

biroj...

0 Kudos

Biroj,

Follow [this blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3548] [original link is broken] [original link is broken] [original link is broken]; to make table rows coloured.

Hope this helps.

Vishwas.