I am using
apex.js to add DML operations to a custom VisualForce page with
There are actions in the page that can make multiple calls that will alter data. I'd like to add transactional safety to these actions, so that if a single statement fails, then all the previous statements within the transaction will be rolled back.
I know this is easy enough with Apex eg:
Savepoint sp = Database.setSavepoint(); // Do something... // Rollback if required Database.rollback(sp);
I'd like to know if there is a way to do this when using the