Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Visualforce.remoting.Manager.invokeAction(
- '{!$RemoteAction.VueDataTableExampleController_test.addToTerritory}', JSON.stringify(account),
- function (result, event) {
- if (event.status) {
- console.log('event.status', event.status);
- } else if (event.type === 'exception') {
- console.log('exception');
- } else {
- console.log(event.type);
- }
- }, {
- escape: true
- }
- );
- @RemoteAction
- public static void addToTerritory(String accountToUpdate) {
- Account updatedAccount = (Account)JSON.deserialize(accountToUpdate, Account.class);
- // update updatedAccount;
- if(vAddToTerrMessage == 'AlignementBlock')
- {
- ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING,GAS_Add_To_Terr_Block_Message));
- // return null;
- }
- }
Add Comment
Please, Sign In to add comment