Baanboard.com

Baanboard.com (http://www.baanboard.com/baanboard/index.php)
-   Tools Development (http://www.baanboard.com/baanboard/forumdisplay.php?f=8)
-   -   checking for new record in after.update.db.commit section (http://www.baanboard.com/baanboard/showthread.php?t=72113)

VishalMistry 14th August 2019 17:37

checking for new record in after.update.db.commit section
 
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 21:17

Will update.status predefined variable work for you?

http://www.baanboard.com/programmers...ined_variables

Ajesh 16th August 2019 16: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.


All times are GMT +2. The time now is 19:00.


vB.Sponsors
©2001-2018 - Baanboard.com - Baanforums.com