Record get saved while closing the Form

Hi All,

I have customized one new form in Ledger Budget named as “AddLedgerBudgetAmount”.

In “AddLedgerBudgetAmount” form , after filling the amount, once user will click update then it will hit Ledger Budget Amount.

Till here everything is working fine. Problem what I m facing is :

After filling the amount, if i close the form then that particular record is getting saved . How to prevent that ???

I want that while closing the form, the record should not get saved till I click update button.

Please Help…!!!

recently created record will you have to write delete query in the form close method .think of my knowledge .

The record is saved automatically when you leave it. But you can use any logic you want in validateWrite() and write() on the datasource to prevent saving.