src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js
function (sId, sTitle, sDescription, aSelections) {
			var oRulesToExport = {
				id: sId,
				title: sTitle,
				description: sDescription,
				dateExported: (new Date()).toISOString(),
				version: "1.0",
				selections: aSelections
			};

			var oExportObject = JSON.stringify(oRulesToExport);

			File.save(oExportObject, constants.RULE_SELECTION_EXPORT_FILE_NAME, 'json', 'text/plain');
		}
function (sId, sTitle, sDescription, aSelections) {
			var oRulesToExport = {
				id: sId,
				title: sTitle,
				description: sDescription,
				dateExported: (new Date()).toISOString(),
				version: "1.0",
				selections: aSelections
			};

			var oExportObject = JSON.stringify(oRulesToExport);

			File.save(oExportObject, constants.RULE_SELECTION_EXPORT_FILE_NAME, 'json', 'text/plain');
		}
function ( sId , sTitle , sDescription , aSelections ) { var oRulesToExport = { id : sId , title : sTitle , description : sDescription , dateExported : ( new Date ( ) ) . toISOString ( ) , version : "1.0" , selections : aSelections } ; var oExportObject = JSON . stringify ( oRulesToExport ) ; File . save ( oExportObject , constants . RULE_SELECTION_EXPORT_FILE_NAME , 'json' , 'text/plain' ) ; }
Exports the given selections to a file
@param {string} sId The id of the export
@param {string} sTitle The title of the export
@param {string} sDescription Some description of what is exported
@param {array} aSelections An array of rules IDs which are selected
Exports the given selections to a file