Page 1 of 1

CountData property not working

Posted: Wed Mar 18, 2020 4:47 pm
by benfc123
I have a report that needs to print the DataBand the number of times equal to the value of the OnHand column

In the Before Print event on the DataBand, I have the following code DataBand1.CountData = products.onhand;
I have also tried {DataBand1.CountData = products.onhand;} and {DataBand1.CountData = products.onhand} and DataBand1.CountData = products.onhand

I have seen the above syntax in other posts on the forum, except they are 4-5 years old. Has the syntax changed any?

The result is each band prints only once no matter which syntax I use.

Re: CountData property not working

Posted: Fri Mar 20, 2020 1:39 pm
by benfc123
We figured this out, we had to use JS syntax
DataBand2.countData = parseInt(products.getData("onhand"));

Re: CountData property not working

Posted: Fri Mar 27, 2020 11:42 am
by Lech Kulikowski
Hello,

Thank you for the information.