dm-code/dm-web-assets/src/main/controllers/ObjectStatusController.js
/**
         * Validates the filters and returns "true" if all fields are valid.
         * Sets the error message if there are any validation errors.
         * 
         * Start and end partition values are required.
         * 
         * Start partition value must be less than end partition value.
         */
Validates the filters and returns "true" if all fields are valid.
Sets the error message if there are any validation errors.

Start and end partition values are required.

Start partition value must be less than end partition value.
Validates the filters and returns " true " if all fields are valid . Sets the error message if there are any validation errors . Start and end partition values are required . Start partition value must be less than end partition value .
function validateFilters()
        {
            vm.errorMessage = null;
            var businessObjectDefinitionName = vm.filter.businessObjectDefinitionName;
            var startPartitionValue = vm.filter.startPartitionValue;
            var endPartitionValue = vm.filter.endPartitionValue;
            if (!businessObjectDefinitionName || businessObjectDefinitionName.length <= 0)
            {
                return false;
            }
            if (!startPartitionValue)
            {
                vm.errorMessage = 'Start partition value is required';
                return false;
            }
            if (!endPartitionValue)
            {
                vm.errorMessage = 'End partition value is required';
                return false;
            }
            if (startPartitionValue.valueOf() >= endPartitionValue.valueOf())
            {
                vm.errorMessage = 'The start partition value must be less than the end partition value';
                return false;
            }
            return true;
        }
function validateFilters ( ) { vm . errorMessage = null ; var businessObjectDefinitionName = vm . filter . businessObjectDefinitionName ; var startPartitionValue = vm . filter . startPartitionValue ; var endPartitionValue = vm . filter . endPartitionValue ; if ( ! businessObjectDefinitionName || businessObjectDefinitionName . length <= 0 ) { return false ; } if ( ! startPartitionValue ) { vm . errorMessage = 'Start partition value is required' ; return false ; } if ( ! endPartitionValue ) { vm . errorMessage = 'End partition value is required' ; return false ; } if ( startPartitionValue . valueOf ( ) >= endPartitionValue . valueOf ( ) ) { vm . errorMessage = 'The start partition value must be less than the end partition value' ; return false ; } return true ; }
Validates the filters and returns "true" if all fields are valid.
Validates the filters and returns " true " if all fields are valid .
// Fail validation if definition name is empty. /*
             * This is really a placeholder and not meant to be a validation. We
             * just don't want the filter to execute when the field is empty,
             * but not display error message.
             */