pp108 : onbeforesave

onbeforesave


This event is fired before business objects of all the models are saved on click of the Save button of the toolbar.

Syntax

DesignTime This is a design-time property and can be set through the property sheet of the control.


Event Information

To invoke Click on the toolbar's Save button to save business object(s).
Default Action Initiates any events associated with this event.
Named Script onbeforesave


Event Object Properties

Property Description
returnValue Boolean that denotes whether the Save operation should be continued or not. To cancel the event, user can set the value of this property to false.
true Default. Save operation should be continued.
false Save operation should not be continued.
srcElement Reference to the Save button.



An event handler can access the event object and its properties through the eventObject available as a parameter on the handler.

This sample code demonstrates the event:

function onbeforeSaveHandler(eventObject) 
{ 
  eventObject.returnValue = false; 
  return false; 
}

Applies to


Toolbar