I think it would be very convenient if we could use Data Templates when creating new record.
This way users shouldn't do fool mistakes on filling some mandatory fields like posting groups, location codes etc.
Let's take for example Item table.
There are several issues why we can't use Form - OnNewRecord and Form - OnInsertRecord triggers. In the first case we can't insert new record, because the transaction could not be started there. In the second case 2 records would be created, 1st record is copied from template and 2nd is inserted with empty fields in a standard way.
That's why I've created new menubutton with F3 shortcut on Customer Card. This button should intercept event of creating item (pressing F3 key). The code of trigger is below:
This way users shouldn't do fool mistakes on filling some mandatory fields like posting groups, location codes etc.
Let's take for example Item table.
There are several issues why we can't use Form - OnNewRecord and Form - OnInsertRecord triggers. In the first case we can't insert new record, because the transaction could not be started there. In the second case 2 records would be created, 1st record is copied from template and 2nd is inserted with empty fields in a standard way.
That's why I've created new menubutton with F3 shortcut on Customer Card. This button should intercept event of creating item (pressing F3 key). The code of trigger is below: