Sunday, September 28, 2014

How to get inserted record id with oncomplete javascript event.

How to get inserted record id with oncomplete javascript event. Hi, In some cases you need to read the record id that is recently inserted and perform some operations in javascript, to achieve this you need to set oncomplete  to call java script function in command button tag. The below is the example. Visualforce Page: <apex:page controller="OncompleteCLS" >  <apex:includeScript value="/soap/ajax/26.0/connection.js"/> <apex:includeScript value="/support/console/26.0/integration.js"/>   <script>     function  fun(value){       alert('value-->'+value);    if...
Page 1 of 10312345Next

 
| ,