Chronoforms6: how to generate unique classes for rows in Grid Area in a Repeater Area

Erik66 07 Nov, 2018
Futher to my previous post (https://www.chronoengine.com/forums/posts/t106316/chronofomrs6-read-data-from-database-table-and-display-a-list-of-the-contents) I am curious as to how to add a unique class or ID to rows in the output of a list of records from a database table. I am using the Repeater Area with a Grid Area to show the individual rows with data. In the rows, the individual fields are assigned an ID that contains the row number with this code:
fieldname{var:data-provider-name.key}
However, if I add this same code to the Grid Area "Class", the result is always '1' so this can not be used to assign unique numbers to the rows in the Grid Area.

What code can be used, and where (Grid Ares, Fields,etc.) to add unique classes or ID's to rows in a Grid Area?

Many thanks in advance,

Erik
healyhatman 07 Nov, 2018
Why would you assign it to the class, and not to the id / name of the field?
Erik66 07 Nov, 2018
I'm happy with whatever works. As long as I can assign styling on .individual rows and/or fields
This topic is locked and no more replies can be posted.