Hi,
I'm (quite clearly) a newbie and am having a problem counting the number of filtered records (for a progress bar)
At the moment I'm obviously using, variable := Count();
But this is counting all records in the table as oppopsed to just the filtered ones, regardless of where I call the function. Am I missing something obvious here or is another function needed?
As always, your help is much appreciated.
Jamie
0
Comments
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
What would totalrec need to be set to?
thanks
Item - OnPreDataItem()
LastFieldNo := FIELDNO("No.");
window.OPEN('Item : #1##########\' +
'No. of Prices : #2##########\' +
'Progress : @');
Item - OnAfterGetRecord()
IF price.GET(Item."No.") THEN;
price.SETFILTER(price."Item No.",Item."No.");
Numofprices := price.count;
Totalrec := item.Count;
IF numofprices < 2 THEN
CurrReport.SKIP;
currentrec += 1;
window.UPDATE(1,Item."No.");
window.UPDATE(2,numofprices);
window.UPDATE(3,ROUND(currentrec / totalrec * 10000,1));
globals for the progressbar
diaProgress Dialog
intProgress Integer
intProgressI Integer
intProgressTotal Integer
timProgress Time
Item - OnPreDataItem()
Item - OnAfterGetRecord()
Item - OnPostDataItem
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Perfect!
Thanks alot.
Jamie