How to repeat DataBand using quantity from field.

Stimulsoft Reports.WEB discussion
Lech Kulikowski
Posts: 7336
Joined: Tue Mar 20, 2018 5:34 am

Re: How to repeat DataBand using quantity from field.

Post by Lech Kulikowski »

Hello,

How do you run report? in which viewer, designer?

Thank you.
Nirali213
Posts: 11
Joined: Wed Sep 09, 2020 6:22 am

Re: How to repeat DataBand using quantity from field.

Post by Nirali213 »

I am using php js version and in this version events are not working because report is in interpretation mode. Is there any other method to do this ?

Thank You
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to repeat DataBand using quantity from field.

Post by HighAley »

Hello,

The events are working in Reports.JS.
But the code should be written in JavaScript.

Could you describe your issue more detailed with samples and we will help you?

Thank you.
Nirali213
Posts: 11
Joined: Wed Sep 09, 2020 6:22 am

Re: How to repeat DataBand using quantity from field.

Post by Nirali213 »

Hello,

I want to print Test as per qty from datafield. I attached my sample report here.

Thank You
Attachments
ReportSample (6).mrt
(2.97 KiB) Downloaded 292 times
Nirali213
Posts: 11
Joined: Wed Sep 09, 2020 6:22 am

Re: How to repeat DataBand using quantity from field.

Post by Nirali213 »

Hello,

Could you please tell me How to write event in javascript code with sample detail.

Thank You
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to repeat DataBand using quantity from field.

Post by HighAley »

Hello,

Please, try to use the next line:

Code: Select all

DataBand2.countData = tbl_category.getData("category_id")
Thank you.
Nirali213
Posts: 11
Joined: Wed Sep 09, 2020 6:22 am

Re: How to repeat DataBand using quantity from field.

Post by Nirali213 »

Hello,

I already used this line in BeforePrintEvent but still not work.

Thank You
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to repeat DataBand using quantity from field.

Post by HighAley »

Hello

We have checked this line.
It works right.

Please, check the countData property. It should start from the small letter.

Thank you.
Nirali213
Posts: 11
Joined: Wed Sep 09, 2020 6:22 am

Re: How to repeat DataBand using quantity from field.

Post by Nirali213 »

Hello,

It works, Thank you so much for your help.
Lech Kulikowski
Posts: 7336
Joined: Tue Mar 20, 2018 5:34 am

Re: How to repeat DataBand using quantity from field.

Post by Lech Kulikowski »

Hello

We are always glad to help you!

Thank you.
Post Reply