rice-framework/krad-web/src/main/webapp/krad/scripts/krad.actions.js
/**
 * Performs client side validation against the controls present in a collection add line.
 *
 * @param collectionGroupId id for the collection whose add line should be validated
 */
Performs client side validation against the controls present in a collection add line.

@param collectionGroupId id for the collection whose add line should be validated
Performs client side validation against the controls present in a collection add line . @param collectionGroupId id for the collection whose add line should be validated
function validateAddLine(collectionGroupId) {
    var collectionGroup = jQuery("#" + collectionGroupId);
    var addControls = collectionGroup.data(kradVariables.ADD_CONTROLS);
    var controlsToValidate = jQuery(addControls, jQuery("[data-role='View']"));
    var valid = validateLineFields(controlsToValidate, false);
    if (!valid) {
        return false;
    }
    return true;
}
function validateAddLine ( collectionGroupId ) { var collectionGroup = jQuery ( "#" + collectionGroupId ) ; var addControls = collectionGroup . data ( kradVariables . ADD_CONTROLS ) ; var controlsToValidate = jQuery ( addControls , jQuery ( "[data-role='View']" ) ) ; var valid = validateLineFields ( controlsToValidate , false ) ; if ( ! valid ) { return false ; } return true ; }
Performs client side validation against the controls present in a collection add line.
Performs client side validation against the controls present in a collection add line .