Hi,
I have a json from an api and want to create from this a table.
I have created my table with the corresponding cells. But I have now the problem to fill the table wit text. If I try to iterate over the cells, rows or columns i have everytime the problem that I can’t iterate because its a object. Also something like myTable.cell[2] doesn’t work to select the second cell or column etc.
Is there any best practise to fill the table with text?
You are talking about the InDesign DOM, not JSON, correct?
Most InDesign objects are probably XPath or something based objects, not iterable. To make it easier to iterate, change them to static array like this. Then you can use map, filter, and other useful features.