Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

Clear color code in 18 rows

Avatar

Level 9

I have a table with 18 rows. Each row has a text filed that is shaded a color based on the selection from a drop down field. I want to be able to click a button and return all of the shaded fields back to white (not shaded).

 

This is the script under the change event of the drop down:

Signal.border.fill.color.value = "255, 255, 255";//white

 

My table rows are labeled

Row[0]

Row[1]

Row[2]

Row[3]

etc. to 18

 

Is there a script to include all and return all border.fill.color.value = "255, 255, 255";//white ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

There's a script for almost everything, it's only has to be developed 😉

For your task, it might be a simple loop.

 

var oRows = Table.resolveNodes("Row[*]"),
    i;

for (i = 0; i < oRows.length; i += 1) {
    oRows.item(i).SIgnal.border.fill.color.value = "255,255,255";
}

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

There's a script for almost everything, it's only has to be developed 😉

For your task, it might be a simple loop.

 

var oRows = Table.resolveNodes("Row[*]"),
    i;

for (i = 0; i < oRows.length; i += 1) {
    oRows.item(i).SIgnal.border.fill.color.value = "255,255,255";
}