Hi.
I am trying to make a report that delete a record in the Session (virtual) table - when certain critiria are met.
Session - OnPreDataItem()
Session.SETRANGE("Application Name",SessionKillerSetup."Application Name");
Session.SETFILTER("Database Name",SessionKillerSetup."Database Filter");
Session.SETRANGE("My Session",FALSE);
Session - OnAfterGetRecord()
IF ("Idle Time" > SessionKillerSetup."Inactive Period") THEN BEGIN
DELETE;
END;
When executing this report and a session is found to be deleted - I get the following error:
Following ODBC-error occurred:
Error: [Microsoft][ODBC SQL Server Driver]Optional featura not implemented
State-id: HYC00
Anyone who can help?
Answers
Solved it myself - inserted a COMMIT after the DELETE.
after deleting records, this error occurs when NAV try to reach next record. this is the problem of NAV 5.01 (buidl 27191). but it was working in 4.03 (25638) perfect.
to avoid this:
Regards
F Shumba
Regards
Fari