How to perform and additional task when ADD (SAVE) is pressed in Form

I have a form with its default buttons for Add New , Save etc. When Add New is Pressed I get the option to add new record in the form. After entering data when I press ADD (save) it saves the record. I want to perform an additional operation when this ADD (save) button is pressed. I want to check if there is a particular row exists, else add that row and then save the data. This is to be done only when that row does not exist. How to make changes in the ADD/Save button of scriptcase ? Please help
Thanks in advance

use onBeforeInsert event. Put your code there

Hi,

you can add the code to check / add the row in the onBeforeInsert Event.

If you want to save the new data first and then insert an additional record you can use the onAfterInsert Event.

Hope this helps.

Gunter

Gunter’s suggestion is a great one. There is also an AFTER event as well. onAfterInsert to add any code you want to process after the Save.

thanks. did just that. Coming from Visual Studio background, the concept of event driven is so wrapped around buttons and controls . Anyway thanks a lot. That worked