dm-code/dm-web-assets/src/main/controllers/ObjectStatusController.js
/**
         * Callback function for
         * BusinessObjectFormatService.getBusinessObjectFormatKeys().
         * 
         * For each format keys returned, calls
         * BusinessObjectFormatService.getBusinessObjectFormat() if the format's
         * file type matches the filter value.
         */


For each format keys returned, calls
BusinessObjectFormatService.getBusinessObjectFormat() if the format's
file type matches the filter value.
For each format keys returned calls BusinessObjectFormatService . getBusinessObjectFormat () if the format ' s file type matches the filter value .
function onGetBusinessObjectFormatKeysSuccess(response)
        {
            _(response.data.businessObjectFormatKeys).each(function(businessObjectFormatKey)
            {
                var filterFileType = vm.filter.businessObjectFormatFileType;
                var fileType = businessObjectFormatKey.businessObjectFormatFileType;
                if (!filterFileType || dm.utils.equalsIgnoreCase(filterFileType, fileType))
                {
                    vm.BusinessObjectFormatService.getBusinessObjectFormat(businessObjectFormatKey).then(onGetBusinessObjectFormatSuccess, function()
                    {
                        onGetBusinessObjectFormatError(businessObjectFormatKey);
                    });
                }
            });
        }
function onGetBusinessObjectFormatKeysSuccess ( response ) { _ ( response . data . businessObjectFormatKeys ) . each ( function ( businessObjectFormatKey ) { var filterFileType = vm . filter . businessObjectFormatFileType ; var fileType = businessObjectFormatKey . businessObjectFormatFileType ; if ( ! filterFileType || dm . utils . equalsIgnoreCase ( filterFileType , fileType ) ) { vm . BusinessObjectFormatService . getBusinessObjectFormat ( businessObjectFormatKey ) . then ( onGetBusinessObjectFormatSuccess , function ( ) { onGetBusinessObjectFormatError ( businessObjectFormatKey ) ; } ) ; } } ) ; }
Callback function for
 BusinessObjectFormatService.getBusinessObjectFormatKeys().
Callback function for BusinessObjectFormatService . getBusinessObjectFormatKeys () .
/*
                 * Filter matches if the file type filter is not set, or the
                 * file type equals the filter value ignoring case.
                 */