Example   Source
  Menu  | 
 |  Run as  
This sample demonstrates how you can create a new record that has it's default values based on an existing record. The method addToolbarButton is used to add a Copy Order button to the orders toolbar. The enabling and disabling of the button is managed using the onToolbarConfigured event which is invoked whenever the state of the control changes. The sample also uses the onRecordInserted event to call a web service to copy the child order lines for the copied order.
Order Details