Usage of Dynamic table generator

The requirement is to dynamically display an array of strings (from a column in the input object) in a tabular row format within a notepad template. Specifically, when an invoice is created based on this document, each string in the array should be displayed in a separate row. The template needs to identify the column containing the array of strings and apply the logic to convert this array into individual rows. I have used the dynamic row generator for this purpose but instead of being displayed in multiple rows it’s being clubbed in a single row. Can you please assist with this?

Notepad generators (both row and section generators), only support iteration over Object sets, so you cannot iterate over an array contained within an object property which is why you are seeing everything appear in one row.

Two potential alternatives:

  1. Create an object set from the array of strings which can then be used in a row generator
  2. Write a FoO function that takes in an object and processes the array of strings property to return a Markdown table of the content. FoO functions that return strings can be configured to process that output as Markdown in the right panel, so if you return a Markdown table serialized as a string in your FoO function, it should insert the table into your Notepad content on template generation.

Hope that helps :slight_smile:

1 Like

Thanks for the idea . i exploded the array into multiple objects in order to send it as a set of objects instead which works fine for now

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.