Is is possible for the the "No." field to automatically be populated/updated from the number series within Navision during an import of new records? Or does it have to exist in the import file?
You can do it automatically.
In the OnBeforeImport-trigger you must do a CLEAR of the record.
In the OnAfterImport-trigger, do a INSERT(TRUE) of the record.
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Must be doing something wrong but it just would not work. :oops: I eventually inserted some code that is not very robust, doesn't check date ranges etc, but at least created the contact no's as required for this particular purpose.
Comments
In the OnBeforeImport-trigger you must do a CLEAR of the record.
In the OnAfterImport-trigger, do a INSERT(TRUE) of the record.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
RMsetup.GET;
NoSeriesLine.GET(RMsetup."Contact Nos.",10000);
NewNo:=NoSeriesLine."Last No. Used";
Contact."No.":=NoSeriesLine."Last No. Used";
NoSeriesLine."Last No. Used" := INCSTR(NewNo);
NoSeriesLine.MODIFY;
http://www.BiloBeauty.com
http://www.autismspeaks.org
According to the link this is what must be done ...
http://www.BiloBeauty.com
http://www.autismspeaks.org
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Thanks for the help.