DataBand Iteration

Stimulsoft Reports.JS discussion
Post Reply
l.biesek
Posts: 2
Joined: Mon Jun 29, 2020 4:31 pm

DataBand Iteration

Post by l.biesek » Mon Jun 29, 2020 5:03 pm

I'm trying to build a report for a delivery module using the report designer to create an iteration that generates all the tags for my deliveries.

For example. If I have quantity = 3, I want my dataBand to repeat 3 times just changing the text represented by the increment variable, printing the values "01/03", "02/03" and "03/03" with other fix data. If quantity is 6, the dataBand has to repeat 6 times.

Is there any tool that allow me to do that?

Thank you so much.
HighAley
Posts: 8363
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DataBand Iteration

Post by HighAley » Tue Jun 30, 2020 12:47 pm

Hello.

You could use one more data band and set its CountData property using the AfterPrint event.
Please, look at the attached report template.
CountData.mrt
(126.21 KiB) Downloaded 58 times
Thank you.
l.biesek
Posts: 2
Joined: Mon Jun 29, 2020 4:31 pm

Re: DataBand Iteration

Post by l.biesek » Tue Jun 30, 2020 6:35 pm

As you can observe, this is my data source:

Image

I Configured the script as you said:

Image

And after that the result wasn't as expected:
Image

In the example above the boxes should repeat depending on the integer number. It doesn't execute the script, no matter what I do.
Is there any other way?

Thank you
Lech Kulikowski
Posts: 3239
Joined: Tue Mar 20, 2018 5:34 am

Re: DataBand Iteration

Post by Lech Kulikowski » Wed Jul 01, 2020 7:36 am

Hello,

Please send us your report with test data that reproduces the issue for analysis.

Thank you.
Post Reply