Description
The InlineRow object allows to process clicking the Cancel button in the Inline mode on Add/Edit pages.
inlineRow.data object contains values of the fields as they were before editing. Example:
inlineRow.data["Price"]
Methods
Method |
Description |
onBeforeCancel |
The method is invoked by clicking the Cancel button during inline add/edit. |
onCancel |
The method is invoked after the cancellation of inline add/edit. |
revokeCancel |
Revokes the cancellation of inline add/edit (the record stays in edit mode). |
Examples
if(inlineRow){
inlineRow.onCancel = function(){
console.log('edit cancelled');
};
}
if(inlineRow){
inlineRow.onBeforeCancel = function(){
inlineRow.revokeCancel = true;
};
}
See also:
•How to control Inline Add/Edit functionality from script