Page 1 of 1

dataCrossDataBand.datacount dynamic

Posted: Tue Jun 09, 2020 1:27 pm
by edesio
Hello,

How can i set dinamic value in dataCrossDataBand.countData?

For example:

i'm using dinamic datasource and i'm filtering my dataCrossDataBand, i need set a value in dataCrossDataBand.countData with my calc.

my crossdataband has 8 collumns i need fill de empty colluns, i'd like set in dataCrossDataBand2.countData = (8 - dataCrossDataBand.countData),

I know I can set the value 4 in the dataCrossDataBand2.countData, but my datasource can change, in my example the value is fixed but it can change.
value fixed.png
value fixed.png (44.16 KiB) Viewed 868 times
value dynamic.png
value dynamic.png (37.57 KiB) Viewed 868 times
result.png
result.png (9.92 KiB) Viewed 868 times
Report_modified.mrt
(28.39 KiB) Downloaded 140 times

Re: dataCrossDataBand.datacount dynamic

Posted: Wed Jun 10, 2020 1:48 pm
by Lech Kulikowski
Hello,

You can set it in the BeforePrint event of the CrossDataBand component:
CrossDataBand2.CountData = 8 - Planilha1.Count

Thank you.