VishalMistry
14th August 2019, 18:37
Hello everyone,

This is regarding Baan IVc4.

Under section after.update.db.commit:, is there any way to check if a new record is being added or existing record is being modified?

Vishal

mark_h
14th August 2019, 22:17
Will update.status predefined variable work for you?

http://www.baanboard.com/programmers_manual_baanerp_help_misc_predefined_variables

Ajesh
16th August 2019, 17:25
Put a boolean variable in add.set before.choice, something like record.added and set it to true . And then in after.update.db.commit, check that variable. It will be true in case of adding record and false when updating the record.

Also, set it to false in later sections of after.update.db.commit so that it gets reset.