Virtual DB, record count...
Can someone explain to me where on earth do i have to have:
FreeReport:
MasterData1.datasource := [COUNTREC];
delphi:
frVariables := frmMain.ngGrid.RowCount;
I putted this code into md1 memo and script, called it from a button and nothing happens, always just 1 record shown even if i have 6. I putted it also on preview show, nothing happens... tried on so many locations and nothing...
even if i put:
frVariables := 6; //frmMain.ngGrid.RowCount;
or in freereport:
MasterData1.datasource := 6;
Nothing! Always 1 record shown and that's it.
But if i change number of records in report designer then it displays the number of records written...
So why on earth doesn't it get from the code or script?!
FreeReport:
MasterData1.datasource := [COUNTREC];
delphi:
frVariables := frmMain.ngGrid.RowCount;
I putted this code into md1 memo and script, called it from a button and nothing happens, always just 1 record shown even if i have 6. I putted it also on preview show, nothing happens... tried on so many locations and nothing...
even if i put:
frVariables := 6; //frmMain.ngGrid.RowCount;
or in freereport:
MasterData1.datasource := 6;
Nothing! Always 1 record shown and that's it.
But if i change number of records in report designer then it displays the number of records written...
So why on earth doesn't it get from the code or script?!