Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

FormCalc: format border color for data in table

Avatar

Level 1

I am new in scripting language so I seek your patience if my question seems to be obvious.

I need to put different color (let say: red) to the bottom border/line for all lines of the data in a table.

My palette hierarchy looks like the following screen shot:

ADLCD_Image1.jpg

I tried with one column TANUM (i.e. TO No.) and put the following FormCalc script in the even "initialize":

data.Page1.Output_table.IT_OUTPUT.DATA.TANUM.border.getElement("edge",2).color.value = "255,0,0"

When I run it does color the Column TANUM with the color Red, but only for the last line of the data on the second

column (TANUM).

ADLCD_Image2.jpg

So my question is: how can apply it to ALL lines of the data?

Thanks for your help in advance.

0 Replies