TempILE.SETCURRENTKEY("Entry Type","Item No.","Variant Code","Source Type","Source No.","Posting Date"); TempILE.SETRANGE(TempILE."Entry Type",TempILE."Entry Type"::Output); TempILE.SETFILTER(TempILE."Source No.",ItemFilter); TempILE.SETRANGE(TempILE."Posting Date",StartDate,EndDate); IF TempILE.FIND('-') THEN BEGIN ....... .......
TempILE.SETCURRENTKEY("Entry Type","Item No.","Variant Code","Source Type","Source No.","Posting Date"); TempILE.SETRANGE(TempILE."Entry Type",TempILE."Entry Type"::Output); TempILE.SETFILTER(TempILE."Source No.",ItemFilter); TempILE.SETRANGE(TempILE."Posting Date",StartDate,EndDate); IF TempILE.FIND('-') THEN BEGIN TempILE.SETCURRENTKEY("Prod. Order No.","Prod. Order Line No.","Prod. Order Comp. Line No.","Entry Type");I only have 72 records...
Answers
|To-Increase|
For 5 days data, report is thinking about 2-3 minutes.
But, how can i apply filters with a key an then order with another key and the report not very slow????...
Entry type, Source No., Posting Date, Prod. Order No. , Prod. Order Line No. , Prod. Order Comp. Line No.
Solved with copy all filtered records (Only "Prod. Order No.") to a own table with a temporary record and then this record order by "Prod. Order".
Thanks!
Excuse me (Sog)