checking for new record in after.update.db.commit section
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?
Will update.status predefined variable work for you?
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.
|All times are GMT +2. The time now is 01:23.|
©2001-2018 - Baanboard.com - Baanforums.com