Expand my Community achievements bar.

Copying actions to another cell in a table

Avatar

Level 2

Hi,

I have set up a table and in the first cell created several actions using the action builder (for example if XYZ is entered change the colour to grey, if ABC is entered change the colour to red). I want to copy and paste this field to a number of cells in the table however the actions refer to the original cell...is there a way to have it copy the actions but reference the cell it is pasted in to?

Hope this makes sense!!

1 Reply

Avatar

Level 10

this keyword refers to the current object in the scripting model.

a typical syntax would be as follows..

Since the code uses a relative reference (this), you can copy the field on all cells of the table. No need to change anything on the code.

Nith