rice-framework/krad-web/src/main/webapp/krad/scripts/krad.edit.js
/**
 * Save the edit field by calling the saveField method on the controller passing only the control value
 *
 * @param $control the control element
 * @param viewButtonId the id of the view div element for inline edit
 */
Save the edit field by calling the saveField method on the controller passing only the control value

@param $control the control element
@param viewButtonId the id of the view div element for inline edit
Save the edit field by calling the saveField method on the controller passing only the control value @param $control the control element @param viewButtonId the id of the view div element for inline edit
function _saveEdit($control, viewButtonId) {
    var valid = true;
    if (validateClient) {
        var fieldId = getAttributeId(jQuery($control).attr('id'));
        var data = getValidationData(jQuery("#" + fieldId));
        data.useTooltip = false;
        valid = validateFieldValue($control);
    }
    if (valid) {
        var propertyName = $control.attr('name');
        retrieveComponent(fieldId, kradVariables.INLINE_EDIT.SAVE_FIELD_METHOD_TO_CALL, function () {
            var $newView = jQuery("#" + viewButtonId);
            $newView.focus();
        }, {saveFieldPath: propertyName}, false, [propertyName]);
        $control.unbind("keydown." + kradVariables.INLINE_EDIT.INLINE_EDIT_NAMESPACE);
    }
}
function _saveEdit ( $control , viewButtonId ) { var valid = true ; if ( validateClient ) { var fieldId = getAttributeId ( jQuery ( $control ) . attr ( 'id' ) ) ; var data = getValidationData ( jQuery ( "#" + fieldId ) ) ; data . useTooltip = false ; valid = validateFieldValue ( $control ) ; } if ( valid ) { var propertyName = $control . attr ( 'name' ) ; retrieveComponent ( fieldId , kradVariables . INLINE_EDIT . SAVE_FIELD_METHOD_TO_CALL , function ( ) { var $newView = jQuery ( "#" + viewButtonId ) ; $newView . focus ( ) ; } , { saveFieldPath : propertyName } , false , [ propertyName ] ) ; $control . unbind ( "keydown." + kradVariables . INLINE_EDIT . INLINE_EDIT_NAMESPACE ) ; } }
Save the edit field by calling the saveField method on the controller passing only the control value
Save the edit field by calling the saveField method on the controller passing only the control value
// Validate the new field value
 // Save by retrieving a new instance of the component using the saveField method
