Page 1 of 1

How to handle relations/iteration for a primitive array (string[]) in the Dictionary?

Posted: Thu Oct 02, 2025 9:10 am
by kp-25
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!

Re: How to handle relations/iteration for a primitive array (string[]) in the Dictionary?

Posted: Thu Oct 02, 2025 9:37 pm
by Lech Kulikowski
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.