123456789101112131415161718192021222324252627282930313233343536 |
- "use strict";
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: admin
- * Copyright IBM Corp. 2019
- * US Government Users Restricted Rights
- * Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['bi/content_apps/RunAsJobOptionsView'], function (BasePane) {
- //NOSONAR: needed for amd
- var DSRunAsView = BasePane.extend({
- init: function init() {
- DSRunAsView.inherited('init', this, arguments);
- },
- _executeRequest: function _executeRequest() {
- this._getRequestParams().then(function () {
- this._validRequestParamsOptions();
- var jsonData = JSON.stringify(this._requestParams);
- var options = {
- 'headers': {
- 'Content-Type': 'application/vnd.ibm.bi.platform.execution+json; charset=UTF-8',
- 'Accept': 'application/json'
- },
- 'datatype': 'json',
- 'type': 'post',
- 'url': 'v1/datasets/' + this.objectInformation.id + '/executions',
- 'data': jsonData
- };
- return this.glassContext.getCoreSvc('.Ajax').ajax(options).catch(this._handleRunError.bind(this));
- }.bind(this));
- }
- });
- return DSRunAsView;
- });
|