Product: Stimulsoft Reports.JS (Designer + Viewer)
In the Designer UI, I create additional data sources for nested objects (e.g., PdfData_Course) and link them to the parent (PdfData) using a Relation (Left Join) with a Relation ID. This works well for custom classes/objects and I can iterate them in a DataBand.
Question: How can I achieve the same in Designer only for a primitive array (e.g., PdfData.Topics: ["COLREGS","BRM","ECDIS"])?
Since it’s an array of strings (not objects), I don’t see a way to define fields or a Relation ID in the Dictionary.
Is there a built-in Designer-side method to treat a primitive array as a child data source so I can bind a DataBand and list one item per row—without changing application code?
If there’s a recommended Designer-only pattern or setting for this scenario, please advise. Thank you!
How to handle relations/iteration for a primitive array (string[]) in the Dictionary?
-
- Posts: 7404
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to handle relations/iteration for a primitive array (string[]) in the Dictionary?
Hello,
> Is there a built-in Designer-side method to treat a primitive array as a child data source so I can bind a DataBand and list one item per row—without changing application code?
Unfortunately, no. You should prepare data before using it in the designer.
Thank you.
> Is there a built-in Designer-side method to treat a primitive array as a child data source so I can bind a DataBand and list one item per row—without changing application code?
Unfortunately, no. You should prepare data before using it in the designer.
Thank you.