Is there a better way to color a row in a dynamic table without knowing the column names?

Avatar

Avatar
Validate 1
Level 2
Clookes
Level 2

Like

1 like

Total Posts

55 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Clookes
Level 2

Like

1 like

Total Posts

55 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Clookes
Level 2

20-01-2009

Hi,<br /><br />I am able to get the number of rows in a dynamic table after data are merged. Now, I am able to loop through rows to find description that matches "Demand" string, but how do I loop thru that row to fillColor the entire row? I am doing it with the following currently, but is there a better way to color the entire row without knowing the column names? Thanks.<br /><br />var rowCount = Row1.instanceManager.count;<br />for (i=0; i<rowCount; i++) {<br /> var str = xfa.resolveNode("NewDataSet.Page1.Table2.Row1[" + i + "].Description").rawValue;<br /> if (str.indexOf("Demand") > -1) {<br /> xfa.resolveNode("NewDataSet.Page1.Table2.Row1[" + i + "].Description").fillColor = "224, 224, 224";<br /> xfa.resolveNode("NewDataSet.Page1.Table2.Row1[" + i + "].DayMinus2").fillColor = "224, 224, 224";<br /> xfa.resolveNode("NewDataSet.Page1.Table2.Row1[" + i + "].DayMinus1").fillColor = "224, 224, 224";<br /> xfa.resolveNode("NewDataSet.Page1.Table2.Row1[" + i + "].CurrentDay").fillColor = "224, 224, 224";<br /> xfa.resolveNode("NewDataSet.Page1.Table2.Row1[" + i + "].DailyChange").fillColor = "224, 224, 224";<br /> } <br />}

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

20-01-2009

The Row1 object itself should have a fillColor. then everything inside it will adopt that color.

Avatar

Avatar
Validate 1
Level 2
Clookes
Level 2

Like

1 like

Total Posts

55 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Clookes
Level 2

Like

1 like

Total Posts

55 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Clookes
Level 2

20-01-2009

Great, that worked, thank you...