Problem with item selection in a report

poppinspoppins Member Posts: 647
Hi everyone,

I am trying to modify the rounding precision for certain items...so I built a report based on Item table with the following code:

OnPreDataItem() trigger
recItem.SETFILTER("No.",'%1 | %2,','1000','1001');
OnAfterGetRecord() trigger
CurrReport.BREAK;
OnPreReport() trigger
IF recItem.FINDSET THEN
BEGIN
REPEAT
recItem."Rounding Precision":=0.01;
recItem.MODIFY;
UNTIL recItem.NEXT=0;
END;

The result I get is that all the items have been modified, not just those I set with SETFILTER...
I feel that the code is mis-placed...
Can you help???

Answers

Sign In or Register to comment.