1234567891011121314151617181920212223242526272829303132333435363738394041 |
- "use strict";
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: Cognos Analytics
- * Copyright IBM Corp. 2017
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['bi/admin/datasource/slideout/ConnectionStringEditorPane', 'bi/admin/nls/StringResource'], function (ConnectionStringEditorPane, StringResource) {
- var EssbaseConnectionStringPane = ConnectionStringEditorPane.extend({
- init: function init(options) {
- EssbaseConnectionStringPane.inherited('init', this, arguments);
- $.extend(this, options);
- },
- renderBody: function renderBody($body) {
- var items = [{
- 'name': 'serverUrl',
- 'label': StringResource.get('serverUrl'),
- 'value': this.parseInfo.serverUrl,
- 'type': 'TextArea',
- 'multiline': true,
- 'ellipses': true,
- 'editable': this.isEditable(),
- 'onChange': function (name, value) {
- this.parseInfo.serverUrl = value;
- }.bind(this)
- }];
- return this._renderBody({
- 'el': this.$el.find(".bi-admin-pane-body"),
- 'glassContext': this.glassContext,
- 'name': 'EssbaseConnectionSettings',
- 'items': items
- });
- },
- setFocus: function setFocus() {
- $('textarea.v_serverUrl').focus();
- }
- });
- return EssbaseConnectionStringPane;
- });
|