/ Published in: Java
The matching visualforce page code can be found here : http://snipplr.com/view/51124/editable-account-grid-using-visualforce-javascript-remoting--jquery-templates/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public global with sharing class testremotingcontroller { @RemoteAction // Search accounts for the account name passed from Javascript accountName = accountName.replaceAll('[*]', '%'); return [select id, name, phone, type, numberofemployees from Account where name like :accountName ]; } @RemoteAction // update account for the accountId and phone-number passed from Javascript update new Account(Id = accountId, Phone = phoneNum); return true; } }