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
BedrockMission!

Learn More

View all

Sign in to view all badges

Clear color code in 18 rows

Avatar

Avatar
Validate 100
Level 3
DKinsley
Level 3

Likes

9 likes

Total Posts

545 posts

Correct Reply

5 solutions
Top badges earned
Validate 100
Validate 50
Validate 25
Validate 10
Validate 1
View profile

Avatar
Validate 100
Level 3
DKinsley
Level 3

Likes

9 likes

Total Posts

545 posts

Correct Reply

5 solutions
Top badges earned
Validate 100
Validate 50
Validate 25
Validate 10
Validate 1
View profile
DKinsley
Level 3

11-09-2020

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 ?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct Reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct Reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

13-09-2020

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";
}

 

Answers (0)