Hi everyone,
I have a challenging problem to solve...
I'm trying to log the value of the primary key of any table when a new record is inserted ... it all works well but not with tables that have the autoincrement pk... the reason is that the database insert trigger ( codeunit 1) is fired before the insertion so Nav does not know the value of the pk that will be calculated by sql... this means I'm always logging a pk of zero which is not correct... so any ideas on how to solve this and be able to log the correct pk of any table in Nav with an autoincrement? I cannot operate on single table events it must be generic for any table in NAV..
Hope someone has got the solution I don't have!
Cheers!!!
I have a challenging problem to solve...
I'm trying to log the value of the primary key of any table when a new record is inserted ... it all works well but not with tables that have the autoincrement pk... the reason is that the database insert trigger ( codeunit 1) is fired before the insertion so Nav does not know the value of the pk that will be calculated by sql... this means I'm always logging a pk of zero which is not correct... so any ideas on how to solve this and be able to log the correct pk of any table in Nav with an autoincrement? I cannot operate on single table events it must be generic for any table in NAV..
Hope someone has got the solution I don't have!
Cheers!!!