Commit 4bd32c11 authored by Boris Kocherov's avatar Boris Kocherov

add demo/xmla_connection

parent a00855c7
......@@ -12,6 +12,8 @@
<body>
<div data-role="page">
<div role="main" class="ui-content gadget-content">
<p><a href="with_monaco">form generator with monaco editor</a></p>
<p><a href="xmla_connection">Dynamic for generation "Xmla Connections settings"</a></p>
<p><a href="gadget_demo_json_schema_form.html">set of demo forms</a></p>
<p><a href="gadget_complex_demo_form.html">union interacting forms</a></p>
</div>
......
(function(y){function T(a){var c,d,e,f=!1,g=function(){f=!0;switch(c.readyState){case 0:A(a.aborted)&&a.aborted(c);break;case 4:if(200===c.status)a.complete(c);else{var d=b.Exception._newError("HTTP_ERROR","_ajax",{request:a,status:this.status,statusText:this.statusText,xhr:c});a.error(d)}}};c=D();d=["POST",a.url,a.async];a.username&&a.password&&(d=d.concat([a.username,a.password]));c.open.apply(c,d);m(a.requestTimeout)||!a.async&&y&&y.document||(c.timeout=a.requestTimeout);c.onreadystatechange=g;
c.setRequestHeader("Accept","text/xml, application/xml, application/soap+xml");c.setRequestHeader("Content-Type","text/xml");if(d=a.headers)for(e in d)c.setRequestHeader(e,d[e]);c.send(a.data);a.async||f||g.call(c);return c}function m(a){return"undefined"===typeof a}function u(a){return a&&a.constructor===Array}function A(a){return"function"===typeof a}function G(a){switch(typeof a){case "string":a=a.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");break;case "undefined":a="";break;
case "object":null===a&&(a="")}return a}function M(a){return a.replace(/_x(\d\d\d\d)_/g,function(a,b,e){return String.fromCharCode(parseInt(b,16))})}function H(a,b,d){a=a.childNodes;if(!a)return b;for(var c,f=0,g=a.length;f<g;f++)c=a[f],d&&!0===d.call(null,c)&&b.push(c),H(c,b,d)}function p(a){var b;p=b="textContent"in a?function(a){return a.textContent}:"nodeTypedValue"in a?function(a){return a.nodeTypedValue}:"innerText"in a?function(a){return a.innerText}:"normalize"in a?function(a){a.normalize();
return a.firstChild?a.firstChild.data:null}:function(a){var b=[],c=a.childNodes,d,h=c?c.length:0;for(d=0;d<h;d++)a=c[d],null!==a.data&&b.push(a.data);return b.length?b.join(""):null};return b(a)}function I(a,b,d,e){e||(e="");var c,g,h,t,z,l="\n"+e+"<"+a+">";if(d){l+="\n"+e+" <"+b+">";for(t in d)if(d.hasOwnProperty(t)){z=d[t];l+="\n"+e+" <"+t+">";if(u(z))for(c=z.length,g=0;g<c;g++)h=z[g],l+="<Value>"+G(h)+"</Value>";else l+=G(z);l+="</"+t+">"}l+="\n"+e+" </"+b+">"}return l+("\n"+e+"</"+a+">")}function k(a,
b,d){b&&!a&&(a={});for(var c in b)b.hasOwnProperty(c)&&(d||m(a[c]))&&(a[c]=b[c]);return a}function J(a){function b(){q.push(l);var a=new function(){};a.constructor.prototype=l;l=new a.constructor;v.namespaces=l;k=!0}function d(a){return a.replace(/&((\w+)|#(x?)([0-9a-fA-F]+));/g,function(a,b,c,d,e,f,g){if(c){if(a={lt:"<",gt:">",amp:"&",apos:"'",quot:'"'}[c])return a;throw"Illegal named entity: "+c;}return String.fromCharCode(parseInt(e,d?16:10))})}var e=/<(((([\w\-\.]+):)?([\w\-\.]+))([^>]+)?|\/((([\w\-\.]+):)?([\w\-\.]+))|\?(\w+)([^\?]+)?\?|(!--([^\-]|-[^\-])*--))>|([^<>]+)/ig,
f,g,h,t,z,l={"":""},k,n,r,w,q=[],p,v=null;for(r=w={nodeType:9,childNodes:[]};f=e.exec(a);){v=null;if(g=f[5]){k=!1;p=v={offset:f.index,parentNode:w,nodeType:1,nodeName:g};if(g=f[6]){g.length&&"/"===g.substr(g.length-1,1)&&(p=v.parentNode,l===v.namespaces&&(l=q.pop()),g=g.substr(0,g.length-1));for(var x,u=/((([\w\-]+):)?([\w\-]+))\s*=\s*('([^']*)'|"([^"]*)")/g;x=u.exec(g);){n=x[3]||"";var y=x[x[6]?6:7];if(x[1].indexOf("xmlns")){v.attributes||(v.attributes=[]);x={nodeType:2,prefix:n,nodeName:x[4],value:d(y)};
n=""===n?"":l[n];if(m(n))throw'Unrecognized namespace with prefix "'+h+'"';x.namespaceURI=n;v.attributes.push(x)}else k||b(),l[x[3]?x[4]:""]=y}u.lastIndex=0}h=f[4]||"";v.prefix=h;n=l[h];if(m(n))throw'Unrecognized namespace with prefix "'+h+'"';v.namespaceURI=n}else if(g=f[10])if(f=f[9]||"",w.nodeName===g&&w.prefix===f)p=w.parentNode,l===w.namespaces&&(l=q.pop());else throw"Unclosed tag "+f+":"+g;else(t=f[11])?v={offset:f.index,parentNode:w,target:t,data:f[12],nodeType:7}:f[13]?v={offset:f.index,parentNode:w,
nodeType:8,data:f[14]}:(z=f[15])&&!/^\s+$/.test(z)&&(v={offset:f.index,parentNode:w,nodeType:3,data:d(z)});v&&(w.childNodes||(w.childNodes=[]),w.childNodes.push(v));p&&(w=p)}return r}function K(a,b){var c=n(a,"http://www.w3.org/2001/XMLSchema","xsd","complexType"),e=c.length,f,g;for(g=0;g<e;g++)if(f=c[g],r(f,"name")===b)return f;return null}function N(a){return"true"===a?!0:!1}function q(a){return parseInt(a,10)}function E(a){return parseFloat(a,10)}function F(a){return a}function O(a){return Date.parse(a)}
function P(a){return a}function L(a,b){var c=[],e=a.length,f,g;for(f=0;f<e;f++)g=a[f],c.push(b(p(g)));return c}function Q(a){var b;return(b=B[a])?b:F}function R(a){var b=p(a);if(a=C(a,"http://www.w3.org/2001/XMLSchema-instance","xsi","type"))if(a=B[a])return a(b);return b}function U(a){return"get"+(/^[A-Z]+[a-z]+[A-Za-z]*$/g.test(a)?a:a.charAt(0).toUpperCase()+a.substr(1).toLowerCase().replace(/_[a-z]/g,function(a){return a.charAt(1).toUpperCase()}))}var b,D;y.XMLHttpRequest?D=function(){return new y.XMLHttpRequest}:
y.ActiveXObject?D=function(){return new y.ActiveXObject("MSXML2.XMLHTTP.3.0")}:"function"===typeof require?D=function(){var a;(a=function(){this.readyState=0;this.status=-1;this.statusText="Not sent";this.responseText=null}).prototype={changeStatus:function(a,b){this.statusText=this.status=a;this.readyState=b;A(this.onreadystatechange)&&this.onreadystatechange.call(this,this)},open:function(a,b,e,f,g){if(!0!==e)throw"Synchronous mode not supported in this environment.";a=require("url").parse(b);a.host.length>
a.hostname.length&&(a.host=a.hostname,delete a.hostname);!a.path&&a.pathname&&(a.path=a.pathname+(a.search||""));a.method="POST";a.headers={};f&&(a.headers.Authorization="Basic "+(new Buffer(f+":"+(g||""))).toString("base64"));this.options=a;this.changeStatus(-1,1)},send:function(a){var b=this,c=b.options,f;c.headers["Content-Length"]=Buffer.byteLength(a);switch(c.protocol){case "http:":f=require("http");c.port||(c.port="80");break;case "https:":f=require("https");c.port||(c.port="443");break;default:throw"Unsupported protocol "+
c.protocol;}b.responseText="";c=f.request(c,function(a){a.setEncoding("utf8");b.changeStatus(-1,2);a.on("data",function(c){b.responseText+=c;b.changeStatus(a.statusCode,3)});a.on("error",function(c){b.changeStatus(a.statusCode,4)});a.on("end",function(){b.changeStatus(a.statusCode,4)})});c.on("error",function(a){b.responseText=a;b.changeStatus(500,4)});a&&c.write(a);c.end()},setRequestHeader:function(a,b){this.options.headers[a]=b}};return new a}:b.Exception._newError("ERROR_INSTANTIATING_XMLHTTPREQUEST",
"_ajax",null)._throw();var S=function(a,b){var c;if("getElementsByTagName"in a)c=function(a,b){return a.getElementsByTagName(b)};else{var e=function(a){if(1!==a.nodeType)return!1;(a=""===a.namespaceURI?"":a.prefix)&&(a+=":");return a+b===b};c=function(a,b){var c=[];H(a,c,"*"===b?null:e);return c}}return(S=c)(a,b)},n=function(a,b,d,e){var c;n=c="getElementsByTagNameNS"in a?function(a,b,c,d){return a.getElementsByTagNameNS(b,d)}:"getElementsByTagName"in a?function(a,b,c,d){return a.getElementsByTagName((c?
c+":":"")+d)}:function(a,b,c,d){c=[];H(a,c,"*"===d?function(a){return 1===a.nodeType&&a.namespaceURI===b}:function(a){return 1===a.nodeType&&a.namespaceURI===b&&a.nodeName===d});return c};return c(a,b,d,e)},C=function(a,b,d,e){return(C="getAttributeNS"in a?function(a,b,c,d){return a.getAttributeNS(b,d)}:"getAttribute"in a?function(a,b,c,d){return a.getAttribute((c?c+":":"")+d)}:function(a,b,c,d){a=a.attributes;if(!a)return null;for(var e=0,f=a.length;e<f;e++)if(c=a[e],c.namespaceURI===b&&c.nodeName===
d)return c.value;return null})(a,b,d,e)},r=function(a,b){return(r="getAttribute"in a?function(a,b){return a.getAttribute(b)}:function(a,b){var c=a.attributes;if(!c)return null;for(var d,e=0,t=c.length;e<t;e++)if(d=c[e],d.nodeName===b)return d.value;return null})(a,b)};b=function(a){this.listeners={};this.listeners[b.EVENT_REQUEST]=[];this.listeners[b.EVENT_SUCCESS]=[];this.listeners[b.EVENT_ERROR]=[];this.listeners[b.EVENT_DISCOVER]=[];this.listeners[b.EVENT_DISCOVER_SUCCESS]=[];this.listeners[b.EVENT_DISCOVER_ERROR]=
[];this.listeners[b.EVENT_EXECUTE]=[];this.listeners[b.EVENT_EXECUTE_SUCCESS]=[];this.listeners[b.EVENT_EXECUTE_ERROR]=[];this.options=k(k({},b.defaultOptions,!0),a,!0);(a=this.options.listeners)&&this.addListener(a);return this};b.defaultOptions={requestTimeout:3E4,async:!1,addFieldGetters:!0,forceResponseXMLEmulation:!1};b.METHOD_DISCOVER="Discover";b.METHOD_EXECUTE="Execute";b.DISCOVER_DATASOURCES="DISCOVER_DATASOURCES";b.DISCOVER_PROPERTIES="DISCOVER_PROPERTIES";b.DISCOVER_SCHEMA_ROWSETS="DISCOVER_SCHEMA_ROWSETS";
b.DISCOVER_ENUMERATORS="DISCOVER_ENUMERATORS";b.DISCOVER_KEYWORDS="DISCOVER_KEYWORDS";b.DISCOVER_LITERALS="DISCOVER_LITERALS";b.DBSCHEMA_CATALOGS="DBSCHEMA_CATALOGS";b.DBSCHEMA_COLUMNS="DBSCHEMA_COLUMNS";b.DBSCHEMA_PROVIDER_TYPES="DBSCHEMA_PROVIDER_TYPES";b.DBSCHEMA_SCHEMATA="DBSCHEMA_SCHEMATA";b.DBSCHEMA_TABLES="DBSCHEMA_TABLES";b.DBSCHEMA_TABLES_INFO="DBSCHEMA_TABLES_INFO";b.MDSCHEMA_ACTIONS="MDSCHEMA_ACTIONS";b.MDSCHEMA_CUBES="MDSCHEMA_CUBES";b.MDSCHEMA_DIMENSIONS="MDSCHEMA_DIMENSIONS";b.MDSCHEMA_FUNCTIONS=
"MDSCHEMA_FUNCTIONS";b.MDSCHEMA_HIERARCHIES="MDSCHEMA_HIERARCHIES";b.MDSCHEMA_LEVELS="MDSCHEMA_LEVELS";b.MDSCHEMA_MEASURES="MDSCHEMA_MEASURES";b.MDSCHEMA_MEMBERS="MDSCHEMA_MEMBERS";b.MDSCHEMA_PROPERTIES="MDSCHEMA_PROPERTIES";b.MDSCHEMA_SETS="MDSCHEMA_SETS";b.EVENT_REQUEST="request";b.EVENT_SUCCESS="success";b.EVENT_ERROR="error";b.EVENT_EXECUTE="execute";b.EVENT_EXECUTE_SUCCESS="executesuccess";b.EVENT_EXECUTE_ERROR="executeerror";b.EVENT_DISCOVER="discover";b.EVENT_DISCOVER_SUCCESS="discoversuccess";
b.EVENT_DISCOVER_ERROR="discovererror";b.EVENT_GENERAL=[b.EVENT_REQUEST,b.EVENT_SUCCESS,b.EVENT_ERROR];b.EVENT_DISCOVER_ALL=[b.EVENT_DISCOVER,b.EVENT_DISCOVER_SUCCESS,b.EVENT_DISCOVER_ERROR];b.EVENT_EXECUTE_ALL=[b.EVENT_EXECUTE,b.EVENT_EXECUTE_SUCCESS,b.EVENT_EXECUTE_ERROR];b.EVENT_ALL=[].concat(b.EVENT_GENERAL,b.EVENT_DISCOVER_ALL,b.EVENT_EXECUTE_ALL);b.PROP_DATASOURCEINFO="DataSourceInfo";b.PROP_CATALOG="Catalog";b.PROP_CUBE="Cube";b.PROP_FORMAT="Format";b.PROP_FORMAT_TABULAR="Tabular";b.PROP_FORMAT_MULTIDIMENSIONAL=
"Multidimensional";b.PROP_AXISFORMAT="AxisFormat";b.PROP_AXISFORMAT_TUPLE="TupleFormat";b.PROP_AXISFORMAT_CLUSTER="ClusterFormat";b.PROP_AXISFORMAT_CUSTOM="CustomFormat";b.PROP_CONTENT="Content";b.PROP_CONTENT_DATA="Data";b.PROP_CONTENT_NONE="None";b.PROP_CONTENT_SCHEMA="Schema";b.PROP_CONTENT_SCHEMADATA="SchemaData";b.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXML:null,getResponseXML:function(){if(!0!==this.options.forceResponseXMLEmulation)return this.responseXML;
if(this.responseText===this._responseTextForResponseXML&&this.responseXML)return this.responseXML;this.responseXML=J(this.responseText);this._responseTextForResponseXML=this.responseText;return this.responseXML},setOptions:function(a){k(this.options,a,!0)},addListener:function(){var a=arguments.length,c;switch(a){case 0:b.Exception._newError("NO_EVENTS_SPECIFIED","Xmla.addListener",null)._throw();case 1:var d=arguments[0];if(d&&"object"===typeof d){var e;if(u(d))this._addListeners(d);else if(e=d.events||
d.event)for("string"===typeof e&&(e="all"===e?b.EVENT_ALL:e.split(",")),u(e)||b.Exception._newError("WRONG_EVENTS_FORMAT","Xmla.addListener",d)._throw(),a=e.length,c=0;c<a;c++)this._addListener(e[c],d);else for(e in a=d.scope,m(a)?a=null:delete d.scope,d)c=d[e],m(c.scope)&&(c.scope=a),this._addListener(e,c)}else b.Exception._newError("WRONG_EVENTS_FORMAT","Xmla.addListener",d)._throw();break;case 2:case 3:d=arguments[0];a=arguments[2];c=arguments[1];"string"===typeof d&&(A(c)||c&&"object"===typeof c)?
this._addListener(d,c,a):(d=[d,c],a&&d.push(a),this.addListener(d));break;default:this._addListeners(arguments)}},_addListeners:function(a){var b,d=a.length;for(b=0;b<d;b++)this.addListener(a[b])},_addListener:function(a,c,d){var e=this.listeners[a];e||b.Exception._newError("UNKNOWN_EVENT","Xmla.addListener",{event:a,handler:c,scope:d})._throw();d||(d=null);switch(typeof c){case "function":e.push({handler:c,scope:d});break;case "object":var f=c.handler||c.handlers;c.scope&&(d=c.scope);if(A(f))e.push({handler:f,
scope:d});else if(u(f))for(e=f.length,c=0;c<e;c++)this._addListener(a,f[c],d)}},_fireEvent:function(a,c,d){var e=this.listeners[a];e||b.Exception._newError("UNKNOWN_EVENT","Xmla._fireEvent",a)._throw();var f=e.length,g=!0;if(f){var h,t;for(t=0;t<f;t++)if(h=e[t],h=h.handler.call(h.scope,a,c,this),d&&!1===h){g=!1;break}}else a!==b.EVENT_ERROR||A(c.error)||A(c.callback)||c.exception._throw();return g},getXmlaSoapMessage:function(a){var c=a.method,d='<?xml version="1.0" encoding="UTF-8"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">\n <SOAP-ENV:Body>\n <'+
c+' xmlns="urn:schemas-microsoft-com:xml-analysis" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">';switch(c){case b.METHOD_DISCOVER:a.requestType||b.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a)._throw();d+="\n <RequestType>"+a.requestType+"</RequestType>"+I("Restrictions","RestrictionList",a.restrictions," ")+I("Properties","PropertyList",a.properties," ");break;case b.METHOD_EXECUTE:a.statement||b.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",
a)._throw(),d+="\n <Command>\n <Statement>"+G(a.statement)+"</Statement>\n </Command>"+I("Properties","PropertyList",a.properties," ")}return d+("\n </"+c+">\n </SOAP-ENV:Body>\n</SOAP-ENV:Envelope>")},request:function(a){var c,d=this;this.responseXML=this.responseText=this.response=null;a=k(a,this.options,!1);a.url||(c=b.Exception._newError("MISSING_URL","Xmla.request",a),c._throw());a.properties=k(a.properties,this.options.properties,!1);a.restrictions=k(a.restrictions,this.options.restrictions,
!1);delete a.exception;if(!this._fireEvent(b.EVENT_REQUEST,a,!0)||a.method==b.METHOD_DISCOVER&&!this._fireEvent(b.EVENT_DISCOVER,a)||a.method==b.METHOD_EXECUTE&&!this._fireEvent(b.EVENT_EXECUTE,a))return!1;this.soapMessage=c=this.getXmlaSoapMessage(a);c={async:a.async,timeout:a.requestTimeout,data:c,error:function(b){a.exception=b;d._requestError(a,b)},complete:function(b){a.xhr=b;d._requestSuccess(a)},url:a.url};a.username&&(c.username=a.username);a.password&&(c.password=a.password);var e={};this.options.headers&&
(e=k(e,this.options.headers));a.headers&&(e=k(e,a.headers,!0));c.headers=e;T(c);return this.response},_requestError:function(a,c){a.error&&a.error.call(a.scope?a.scope:null,this,a,c);a.callback&&a.callback.call(a.scope?a.scope:null,b.EVENT_ERROR,this,a,c);this._fireEvent(b.EVENT_ERROR,a)},_parseSoapFault:function(a){var b={},d,e,f=a.childNodes,g=f.length,h;for(e=0;e<g;e++)if(h=f[e],1===h.nodeType){a=h.nodeName;switch(a){case "faultactor":case "faultstring":case "faultcode":d=p(h);break;case "detail":var t;
d=[];var k=h.childNodes,l=k.length;for(t=0;t<l;t++)if(h=k[t],1===h.nodeType)switch(h.nodeName){case "Error":d.push({ErrorCode:r(h,"ErrorCode"),Description:r(h,"Description"),Source:r(h,"Source"),HelpFile:r(h,"HelpFile")})}break;default:d=null}d&&(b[a]=d)}return b},_requestSuccess:function(a){var c=a.xhr,d;!0!==a.forceResponseXMLEmulation&&(this.responseXML=c.responseXML);this.responseText=c.responseText;c=a.method;try{var e=this.getResponseXML();e||(a.exception=new b.Exception(b.Exception.TYPE_ERROR,
b.Exception.ERROR_PARSING_RESPONSE_CDE,"Response is not an XML document."));var f=n(e,"http://schemas.xmlsoap.org/soap/envelope/","SOAP-ENV","Fault");if(f.length)f=f[0],f=this._parseSoapFault(f),a.exception=new b.Exception(b.Exception.TYPE_ERROR,f.faultcode,f.faultstring,null,"_requestSuccess",a,null,f.detail,f.faultactor);else{switch(c){case b.METHOD_DISCOVER:a.rowset=d=new b.Rowset(e,a.requestType,this);break;case b.METHOD_EXECUTE:var g=f=null;switch(a.properties[b.PROP_FORMAT]){case b.PROP_FORMAT_TABULAR:d=
f=new b.Rowset(e,null,this);break;case b.PROP_FORMAT_MULTIDIMENSIONAL:d=g=new b.Dataset(e)}a.resultset=f;a.dataset=g}this.response=d}}catch(h){a.exception=h}if(a.exception){switch(c){case b.METHOD_DISCOVER:this._fireEvent(b.EVENT_DISCOVER_ERROR,a);break;case b.METHOD_EXECUTE:this._fireEvent(b.EVENT_EXECUTE_ERROR,a)}a.error&&a.error.call(a.scope?a.scope:null,this,a,a.exception);a.callback&&a.callback.call(a.scope?a.scope:null,b.EVENT_ERROR,this,a,a.exception);this._fireEvent(b.EVENT_ERROR,a)}else{switch(c){case b.METHOD_DISCOVER:this._fireEvent(b.EVENT_DISCOVER_SUCCESS,
a);break;case b.METHOD_EXECUTE:this._fireEvent(b.EVENT_EXECUTE_SUCCESS,a)}a.success&&a.success.call(a.scope?a.scope:null,this,a,d);a.callback&&a.callback.call(a.scope?a.scope:null,b.EVENT_SUCCESS,this,a,d);this._fireEvent(b.EVENT_SUCCESS,a)}},execute:function(a){var c=a.properties;c||(c={},a.properties=c);k(c,this.options.properties,!1);c[b.PROP_CONTENT]||(c[b.PROP_CONTENT]=b.PROP_CONTENT_SCHEMADATA);c[b.PROP_FORMAT]||(a.properties[b.PROP_FORMAT]=b.PROP_FORMAT_MULTIDIMENSIONAL);a=k(a,{method:b.METHOD_EXECUTE},
!0);return this.request(a)},executeTabular:function(a){a.properties||(a.properties={});a.properties[b.PROP_FORMAT]=b.PROP_FORMAT_TABULAR;return this.execute(a)},executeMultiDimensional:function(a){a.properties||(a.properties={});a.properties[b.PROP_FORMAT]=b.PROP_FORMAT_MULTIDIMENSIONAL;return this.execute(a)},discover:function(a){a=k(a,{method:b.METHOD_DISCOVER},!0);a.requestType||(a.requestType=this.options.requestType);a.properties||(a.properties={});a.properties[b.PROP_FORMAT]=b.PROP_FORMAT_TABULAR;
return this.request(a)},discoverDataSources:function(a){a=k(a,{requestType:b.DISCOVER_DATASOURCES},!0);return this.discover(a)},discoverProperties:function(a){a=k(a,{requestType:b.DISCOVER_PROPERTIES},!0);return this.discover(a)},discoverSchemaRowsets:function(a){a=k(a,{requestType:b.DISCOVER_SCHEMA_ROWSETS},!0);return this.discover(a)},discoverEnumerators:function(a){a=k(a,{requestType:b.DISCOVER_ENUMERATORS},!0);return this.discover(a)},discoverKeywords:function(a){a=k(a,{requestType:b.DISCOVER_KEYWORDS},
!0);return this.discover(a)},discoverLiterals:function(a){a=k(a,{requestType:b.DISCOVER_LITERALS},!0);return this.discover(a)},discoverDBCatalogs:function(a){a=k(a,{requestType:b.DBSCHEMA_CATALOGS},!0);return this.discover(a)},discoverDBColumns:function(a){a=k(a,{requestType:b.DBSCHEMA_COLUMNS},!0);return this.discover(a)},discoverDBProviderTypes:function(a){a=k(a,{requestType:b.DBSCHEMA_PROVIDER_TYPES},!0);return this.discover(a)},discoverDBSchemata:function(a){a=k(a,{requestType:b.DBSCHEMA_SCHEMATA},
!0);return this.discover(a)},discoverDBTables:function(a){a=k(a,{requestType:b.DBSCHEMA_TABLES},!0);return this.discover(a)},discoverDBTablesInfo:function(a){a=k(a,{requestType:b.DBSCHEMA_TABLES_INFO},!0);return this.discover(a)},discoverMDActions:function(a){a=k(a,{requestType:b.MDSCHEMA_ACTIONS},!0);return this.discover(a)},discoverMDCubes:function(a){a=k(a,{requestType:b.MDSCHEMA_CUBES},!0);return this.discover(a)},discoverMDDimensions:function(a){a=k(a,{requestType:b.MDSCHEMA_DIMENSIONS},!0);
return this.discover(a)},discoverMDFunctions:function(a){a=k(a,{requestType:b.MDSCHEMA_FUNCTIONS},!0);return this.discover(a)},discoverMDHierarchies:function(a){a=k(a,{requestType:b.MDSCHEMA_HIERARCHIES},!0);return this.discover(a)},discoverMDLevels:function(a){a=k(a,{requestType:b.MDSCHEMA_LEVELS},!0);return this.discover(a)},discoverMDMeasures:function(a){a=k(a,{requestType:b.MDSCHEMA_MEASURES},!0);return this.discover(a)},discoverMDMembers:function(a){a=k(a,{requestType:b.MDSCHEMA_MEMBERS},!0);
return this.discover(a)},discoverMDProperties:function(a){a=k(a,{requestType:b.MDSCHEMA_PROPERTIES},!0);return this.discover(a)},discoverMDSets:function(a){a=k(a,{requestType:b.MDSCHEMA_SETS},!0);return this.discover(a)}};b.Rowset=function(a,b,d){"string"===typeof a&&(a=J(a));this._node=a;this._type=b;this._xmla=d;this._initData();return this};b.Rowset.MD_DIMTYPE_UNKNOWN=0;b.Rowset.MD_DIMTYPE_TIME=1;b.Rowset.MD_DIMTYPE_MEASURE=2;b.Rowset.MD_DIMTYPE_OTHER=3;b.Rowset.MD_DIMTYPE_QUANTITATIVE=5;b.Rowset.MD_DIMTYPE_ACCOUNTS=
6;b.Rowset.MD_DIMTYPE_CUSTOMERS=7;b.Rowset.MD_DIMTYPE_PRODUCTS=8;b.Rowset.MD_DIMTYPE_SCENARIO=9;b.Rowset.MD_DIMTYPE_UTILIY=10;b.Rowset.MD_DIMTYPE_CURRENCY=11;b.Rowset.MD_DIMTYPE_RATES=12;b.Rowset.MD_DIMTYPE_CHANNEL=13;b.Rowset.MD_DIMTYPE_PROMOTION=14;b.Rowset.MD_DIMTYPE_ORGANIZATION=15;b.Rowset.MD_DIMTYPE_BILL_OF_MATERIALS=16;b.Rowset.MD_DIMTYPE_GEOGRAPHY=17;b.Rowset.MD_STRUCTURE_FULLYBALANCED=0;b.Rowset.MD_STRUCTURE_RAGGEDBALANCED=1;b.Rowset.MD_STRUCTURE_UNBALANCED=2;b.Rowset.MD_STRUCTURE_NETWORK=
3;b.Rowset.MD_USER_DEFINED=1;b.Rowset.MD_SYSTEM_ENABLED=2;b.Rowset.MD_SYSTEM_INTERNAL=4;b.Rowset.MDMEMBER_TYPE_REGULAR=1;b.Rowset.MDMEMBER_TYPE_ALL=2;b.Rowset.MDMEMBER_TYPE_FORMULA=3;b.Rowset.MDMEMBER_TYPE_MEASURE=4;b.Rowset.MDMEMBER_TYPE_UNKNOWN=0;b.Rowset.MDMEASURE_AGGR_SUM=1;b.Rowset.MDMEASURE_AGGR_COUNT=2;b.Rowset.MDMEASURE_AGGR_MIN=3;b.Rowset.MDMEASURE_AGGR_MAX=4;b.Rowset.MDMEASURE_AGGR_AVG=5;b.Rowset.MDMEASURE_AGGR_VAR=6;b.Rowset.MDMEASURE_AGGR_STD=7;b.Rowset.MDMEASURE_AGGR_DST=8;b.Rowset.MDMEASURE_AGGR_NONE=
9;b.Rowset.MDMEASURE_AGGR_AVGCHILDREN=10;b.Rowset.MDMEASURE_AGGR_FIRSTCHILD=11;b.Rowset.MDMEASURE_AGGR_LASTCHILD=12;b.Rowset.MDMEASURE_AGGR_FIRSTNONEMPTY=13;b.Rowset.MDMEASURE_AGGR_LASTNONEMPTY=14;b.Rowset.MDMEASURE_AGGR_BYACCOUNT=15;b.Rowset.MDMEASURE_AGGR_CALCULATED=127;b.Rowset.MDMEASURE_AGGR_UNKNOWN=0;b.Rowset.MDPROP_MEMBER=1;b.Rowset.MDPROP_CELL=2;b.Rowset.MDPROP_SYSTEM=4;b.Rowset.MDPROP_BLOB=8;b.Rowset.KEYS={};b.Rowset.KEYS[b.DBSCHEMA_CATALOGS]=["CATALOG_NAME"];b.Rowset.KEYS[b.DBSCHEMA_COLUMNS]=
["TABLE_CATALOG","TABLE_SCHEMA","TABLE_NAME","COLUMN_NAME"];b.Rowset.KEYS[b.DBSCHEMA_PROVIDER_TYPES]=["TYPE_NAME"];b.Rowset.KEYS[b.DBSCHEMA_SCHEMATA]=["CATALOG_NAME","SCHEMA_NAME"];b.Rowset.KEYS[b.DBSCHEMA_TABLES]=["TABLE_CATALOG","TABLE_SCHEMA","TABLE_NAME"];b.Rowset.KEYS[b.DBSCHEMA_TABLES_INFO]=["TABLE_CATALOG","TABLE_SCHEMA","TABLE_NAME"];b.Rowset.KEYS[b.DISCOVER_DATASOURCES]=["DataSourceName"];b.Rowset.KEYS[b.DISCOVER_ENUMERATORS]=["EnumName","ElementName"];b.Rowset.KEYS[b.DISCOVER_KEYWORDS]=
["Keyword"];b.Rowset.KEYS[b.DISCOVER_LITERALS]=["LiteralName"];b.Rowset.KEYS[b.DISCOVER_PROPERTIES]=["PropertyName"];b.Rowset.KEYS[b.DISCOVER_SCHEMA_ROWSETS]=["SchemaName"];b.Rowset.KEYS[b.MDSCHEMA_ACTIONS]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","ACTION_NAME"];b.Rowset.KEYS[b.MDSCHEMA_CUBES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME"];b.Rowset.KEYS[b.MDSCHEMA_DIMENSIONS]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","DIMENSION_UNIQUE_NAME"];b.Rowset.KEYS[b.MDSCHEMA_FUNCTIONS]=["FUNCTION_NAME","PARAMETER_LIST"];
b.Rowset.KEYS[b.MDSCHEMA_HIERARCHIES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","DIMENSION_UNIQUE_NAME","HIERARCHY_UNIQUE_NAME"];b.Rowset.KEYS[b.MDSCHEMA_LEVELS]="CATALOG_NAME SCHEMA_NAME CUBE_NAME DIMENSION_UNIQUE_NAME HIERARCHY_UNIQUE_NAME LEVEL_UNIQUE_NAME".split(" ");b.Rowset.KEYS[b.MDSCHEMA_MEASURES]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","MEASURE_NAME"];b.Rowset.KEYS[b.MDSCHEMA_MEMBERS]="CATALOG_NAME SCHEMA_NAME CUBE_NAME DIMENSION_UNIQUE_NAME HIERARCHY_UNIQUE_NAME LEVEL_UNIQUE_NAME MEMBER_UNIQUE_NAME".split(" ");
b.Rowset.KEYS[b.MDSCHEMA_PROPERTIES]="CATALOG_NAME SCHEMA_NAME CUBE_NAME DIMENSION_UNIQUE_NAME HIERARCHY_UNIQUE_NAME LEVEL_UNIQUE_NAME MEMBER_UNIQUE_NAME PROPERTY_NAME".split(" ");b.Rowset.KEYS[b.MDSCHEMA_SETS]=["CATALOG_NAME","SCHEMA_NAME","CUBE_NAME","SET_NAME"];N.jsType="boolean";q.jsType="number";E.jsType="number";F.jsType="string";O.jsType="object";P.jsType="object";L.jsType="object";var B={"xsd:boolean":N,"xsd:decimal":E,"xsd:double":E,"xsd:float":E,"xsd:int":q,"xsd:integer":q,"xsd:nonPositiveInteger":q,
"xsd:negativeInteger":q,"xsd:nonNegativeInteger":q,"xsd:positiveInteger":q,"xsd:short":q,"xsd:byte":q,"xsd:long":q,"xsd:unsignedLong":q,"xsd:unsignedInt":q,"xsd:unsignedShort":q,"xsd:unsignedByte":q,"xsd:string":F,"xsd:dateTime":O,Restrictions:P};b.Rowset.prototype={_node:null,_type:null,_row:null,_rows:null,numRows:null,fieldOrder:null,fields:null,_fieldCount:null,_initData:function(){this.numRows=(this._rows=n(this._node,"urn:schemas-microsoft-com:xml-analysis:rowset",null,"row"))?this._rows.length:
0;this.reset();this.fieldOrder=[];this.fields={};this._fieldCount=0;var a=K(this._node,"row");if(a){var c=(a=n(a,"http://www.w3.org/2001/XMLSchema","xsd","sequence")[0].childNodes)?a.length:0,d,e,f,g,h,t,k,l=this._xmla.options.addFieldGetters,m;for(m=0;m<c;m++)d=a[m],1===d.nodeType&&(e=C(d,"urn:schemas-microsoft-com:xml-sql","sql","field"),f=r(d,"name"),h=r(d,"type"),null===h&&this._row&&(g=S(this._row,f),g.length&&(h=C(g[0],"http://www.w3.org/2001/XMLSchema-instance","xsi","type"))),h||this._type!=
b.DISCOVER_SCHEMA_ROWSETS||"Restrictions"!==f||(h="Restrictions"),g=(g=r(d,"minOccurs"))?parseInt(g,10):1,(d=r(d,"maxOccurs"))?"unbounded"===d?d=Infinity:g=parseInt(d,10):d=1,t=Q(h),k=this._createFieldGetter(f,t,g,d),l&&(this[U(f)]=k),this.fields[e]={name:f,label:e,index:this._fieldCount++,type:h,jsType:t.jsType,minOccurs:g,maxOccurs:d,getter:k},this.fieldOrder.push(e))}else b.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",this._node)._throw()},_createFieldGetter:function(a,b,d,e){var c;
1===e?1===d?c=function(){var c=n(this._row,"urn:schemas-microsoft-com:xml-analysis:rowset",null,a);if(c.length)return b(p(c[0]));m(console.error)||console.error('Field "'+a+"\" is supposed to be present in the rowset but isn't. Are you running on SAP / HANA?");return null}:0===d&&(c=function(){var c=n(this._row,"urn:schemas-microsoft-com:xml-analysis:rowset",null,a);return c.length?b(p(c[0])):null}):1===d?c=function(){var c=n(this._row,"urn:schemas-microsoft-com:xml-analysis:rowset",null,a);return L(c,
b)}:0===d&&(c=function(){var c=n(this._row,"urn:schemas-microsoft-com:xml-analysis:rowset",null,a);return c.length?L(c,b):null});return c},getType:function(){return this._type},getFields:function(){var a=[],b,d=this._fieldCount,e=this.fieldOrder;for(b=0;b<d;b++)a[b]=this.fieldDef(e[b]);return a},getFieldNames:function(){var a=[],b,d=this._fieldCount;for(b=0;b<d;b++)a[b]=this.fieldOrder[b];return a},hasMoreRows:function(){return this.numRows>this.rowIndex},nextRow:function(){this.rowIndex++;this._row=
this._rows[this.rowIndex];return this.rowIndex},next:function(){return this.nextRow()},eachRow:function(a,b,d){m(b)&&(b=this);var c=[null];m(d)||(u(d)||(d=[d]),c=c.concat(d));for(;this.hasMoreRows();){c[0]=this.readAsObject();if(!1===a.apply(b,c))return!1;this.nextRow()}return!0},currRow:function(){return this.rowIndex},rowCount:function(){return this.numRows},reset:function(){this.rowIndex=0;this._row=this.hasMoreRows()?this._rows[this.rowIndex]:null},fieldDef:function(a){var c=this.fields[a];c||
b.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return c},fieldIndex:function(a){return this.fieldDef(a).index},fieldName:function(a){var c=this.fieldOrder[a];c||b.Exception._newError("INVALID_FIELD","Xmla.Rowset.fieldDef",a)._throw();return c},fieldVal:function(a){"number"===typeof a&&(a=this.fieldName(a));return this.fieldDef(a).getter.call(this)},fieldCount:function(){return this._fieldCount},close:function(){this._rows=this._row=this._node=null},readAsArray:function(a){var b=
this.fields,d,e;a||(a=[]);for(d in b)b.hasOwnProperty(d)&&(e=b[d],a[e.index]=e.getter.call(this));return a},fetchAsArray:function(a){this.hasMoreRows()?(a=this.readAsArray(a),this.nextRow()):a=!1;return a},readAsObject:function(a){var b=this.fields,d,e;a||(a={});for(d in b)b.hasOwnProperty(d)&&(e=b[d],a[d]=e.getter.call(this));return a},fetchAsObject:function(a){this.hasMoreRows()?(a=this.readAsObject(a),this.nextRow()):a=!1;return a},fetchCustom:function(a,b){var c;this.hasMoreRows()?(c=a.call(this,
b),this.nextRow()):c=!1;return c},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);return a},fetchAllAsObject:function(a){var b;for(a||(a=[]);b=this.fetchAsObject();)a.push(b);return a},fetchAllCustom:function(a,b,d){var c;for(a||(a=[]);c=this.fetchCustom(b,d);)a.push(c);return a},mapAsObject:function(a,b,d){var c,f,g=b.length,h=g-1,k=a;for(a=0;a<g;a++)c=b[a],c=d[c],(f=k[c])?a===h?u(f)?f.push(d):k[c]=[f,d]:k=f:a===h?k[c]=d:k=k[c]={}},mapAllAsObject:function(a,b){b||
(b={});a||(a=this.getKey());for(var c;c=this.fetchAsObject();)this.mapAsObject(b,a,c);return b},getKey:function(){return this._type?b.Rowset.KEYS[this._type]:this.getFieldNames()}};b.Dataset=function(a){"string"===typeof a&&(a=J(a));this._initDataset(a);return this};b.Dataset.AXIS_COLUMNS=0;b.Dataset.AXIS_ROWS=1;b.Dataset.AXIS_PAGES=2;b.Dataset.AXIS_SECTIONS=3;b.Dataset.AXIS_CHAPTERS=4;b.Dataset.AXIS_SLICER="SlicerAxis";b.Dataset.prototype={_root:null,_axes:null,_axesOrder:null,_numAxes:null,_slicer:null,
_cellset:null,_initDataset:function(a){this._initRoot(a);this.cubeName=p(n(this._root,"urn:schemas-microsoft-com:xml-analysis:mddataset","","CubeName")[0]);this._initAxes();this._initCells()},_initRoot:function(a){var c=n(a,"urn:schemas-microsoft-com:xml-analysis:mddataset","","root");c.length?this._root=c[0]:b.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Dataset._initData",a)._throw()},_initAxes:function(){var a,c,d,e,f,g={};this._axes={};this._axesOrder=[];e=n(this._root,"urn:schemas-microsoft-com:xml-analysis:mddataset",
"","AxisInfo");f=e.length;for(a=0;a<f;a++)c=e[a],d=r(c,"name"),g[d]=c;e=n(this._root,"urn:schemas-microsoft-com:xml-analysis:mddataset","","Axis");f=e.length;for(a=0;a<f;a++)c=e[a],d=r(c,"name"),c=new b.Dataset.Axis(this,g[d],c,d,a),d===b.Dataset.AXIS_SLICER?this._slicer=c:(this._axes[d]=c,this._axesOrder.push(c));this._numAxes=this._axesOrder.length},_initCells:function(){this._cellset=new b.Dataset.Cellset(this)},axisCount:function(){return this._numAxes},_getAxis:function(a){var c;switch(typeof a){case "number":c=
this._axesOrder[a];break;case "string":c=void 0===b.Dataset.AXIS_SLICER?this._slicer:this._axes[void 0]}return c},getAxis:function(a){if(a===b.Dataset.AXIS_SLICER)return this._slicer;var c=this._getAxis(a);c||b.Exception._newError("INVALID_AXIS","Xmla.Dataset.getAxis",a)._throw();return c},hasAxis:function(a){a=this._getAxis(a);return!m(a)},getColumnAxis:function(){return this.getAxis(b.Dataset.AXIS_COLUMNS)},hasColumnAxis:function(){return this.hasAxis(b.Dataset.AXIS_COLUMNS)},getRowAxis:function(){return this.getAxis(b.Dataset.AXIS_ROWS)},
hasRowAxis:function(){return this.hasAxis(b.Dataset.AXIS_ROWS)},getPageAxis:function(){return this.getAxis(b.Dataset.AXIS_PAGES)},hasPageAxis:function(){return this.hasAxis(b.Dataset.AXIS_PAGES)},getChapterAxis:function(){return this.getAxis(b.Dataset.AXIS_CHAPTERS)},hasChapterAxis:function(){return this.hasAxis(b.Dataset.AXIS_CHAPTERS)},getSectionAxis:function(){return this.getAxis(b.Dataset.AXIS_SECTIONS)},hasSectionAxis:function(){return this.hasAxis(b.Dataset.AXIS_SECTIONS)},getSlicerAxis:function(){return this._slicer},
hasSlicerAxis:function(){return null!==this._slicer},getCellset:function(){return this._cellset},cellOrdinalForTupleIndexes:function(){var a=this._numAxes,b=this._axesOrder,d=0,e,f,g,h;e=0;for(--a;0<=a;a--,e++){f=arguments[e];h=1;for(g=a-1;0<=g;g--)h*=b[g].tupleCount();d+=f*h}return d},fetchAsObject:function(){var a=function(a){a.getHierarchies();var b=[],c,d=a.numHierarchies;for(c=0;c<d;c++)b.push(a.hierarchy(c));return b},b=[],d;d=[];var e=[],f,g,h;f=1;var k=0;g=0;for(h=this.axisCount();g<h;g++)d=
this.getAxis(g),f*=d.tupleCount(),b.push({positions:d.fetchAllAsObject(),hierarchies:a(d)});this.hasSlicerAxis?(d=this.getSlicerAxis(),a={positions:d.fetchAllAsObject(),hierarchies:a(d)}):a={positions:{},hierarchies:[]};d=this.getCellset();g=0;for(h=f;g<h;g++){f=d.readCell();if(k===f.ordinal){if(e.push(f),-1===d.nextCell())break}else e.push({Value:null,FmtValue:null,FormatString:null,ordinal:k});k++}d.reset();return{cubeName:this.cubeName,axes:b,filterAxis:a,cells:e}},reset:function(){this._cellset&&
this._cellset.reset();if(this._axes){var a,b;a=0;for(b=this.axisCount();a<b;a++)this.getAxis(a).reset()}},close:function(){this._slicer&&this._slicer.close();var a,b=this._numAxes;for(a=0;a<b;a++)this.getAxis(a).close();this._cellset.close();this._slicer=this._numAxes=this._axesOrder=this._axes=this._root=this._cellset=null}};b.Dataset.Axis=function(a,b,d,e,f){this._dataset=a;this._initAxis(b,d);this.name=e;this.id=f;return this};b.Dataset.Axis.MEMBER_UNIQUE_NAME="UName";b.Dataset.Axis.MEMBER_CAPTION=
"Caption";b.Dataset.Axis.MEMBER_LEVEL_NAME="LName";b.Dataset.Axis.MEMBER_LEVEL_NUMBER="LNum";b.Dataset.Axis.MEMBER_DISPLAY_INFO="DisplayInfo";b.Dataset.Axis.DefaultMemberProperties=[b.Dataset.Axis.MEMBER_UNIQUE_NAME,b.Dataset.Axis.MEMBER_CAPTION,b.Dataset.Axis.MEMBER_LEVEL_NAME,b.Dataset.Axis.MEMBER_LEVEL_NUMBER,b.Dataset.Axis.MEMBER_DISPLAY_INFO];b.Dataset.Axis.MDDISPINFO_CHILDREN_CARDINALITY=65535;b.Dataset.Axis.MDDISPINFO_DRILLED_DOWN=65536;b.Dataset.Axis.MDDISPINFO_SAME_PARENT_AS_PREV=131072;
b.Dataset.Axis.prototype={id:-1,name:null,_dataset:null,_tuples:null,_members:null,_memberProperties:null,numTuples:null,numHierarchies:null,_tupleIndex:null,_hierarchyIndex:null,_hierarchyOrder:null,_hierarchyDefs:null,_hierarchyIndexes:null,_initHierarchies:function(a){a=n(a,"urn:schemas-microsoft-com:xml-analysis:mddataset","","HierarchyInfo");var c=a.length,d,e,f,g,h,k,m,l,q,p,u,w=this._memberProperties;this._hierarchyDefs={};this._hierarchyOrder=[];this._hierarchyIndexes={};this.numHierarchies=
c;for(d=0;d<c;d++){e=a[d];f=r(e,"name");this._hierarchyOrder[d]=f;this._hierarchyIndexes[f]=d;g={index:d,name:f,properties:h={}};m=n(e,"urn:schemas-microsoft-com:xml-analysis:mddataset","","*");k=m.length;for(e=0;e<k;e++){l=m[e];q=l.nodeName;p=r(l,"type");if(!p)if(u=w[q])p=u.type;else switch(q){case b.Dataset.Axis.MEMBER_LEVEL_NUMBER:case b.Dataset.Axis.MEMBER_DISPLAY_INFO:p="xsd:int"}(p=B[p])||(p=F);u=M(q);switch(u){case b.Dataset.Axis.MEMBER_UNIQUE_NAME:case b.Dataset.Axis.MEMBER_CAPTION:case b.Dataset.Axis.MEMBER_LEVEL_NAME:case b.Dataset.Axis.MEMBER_LEVEL_NUMBER:case b.Dataset.Axis.MEMBER_DISPLAY_INFO:l=
u;break;default:if(l=r(l,"name"))l=l.split("."),l=l[l.length-1],"["===l.charAt(0)&&"]"===l.charAt(l.length-1)&&(l=l.substr(1,l.length-2))}h[q]={converter:p,name:u,propertyName:l}}this._hierarchyDefs[f]=g}},_initMembers:function(){var a=this._dataset._root,c,d,e,f,g=this._memberProperties={};(c=K(a,"MemberType"))||b.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.DataSet.Axis",a)._throw();c=n(c,"http://www.w3.org/2001/XMLSchema","xsd","sequence");if(c.length)for(c=c[0],a=n(c,"http://www.w3.org/2001/XMLSchema",
"xsd","element"),c=a.length,f=0;f<c;f++)d=a[f],e=r(d,"type"),d=r(d,"name"),g[d]={type:e,converter:B[e],name:M(d)};else m(console.error)||console.error("MemberType in schema does not define any child elements. Are you running on Jedox/Palo?")},_initAxis:function(a,b){this.name=r(b,"name");this._initMembers();this._initHierarchies(a);this._tuples=n(b,"urn:schemas-microsoft-com:xml-analysis:mddataset","","Tuple");this.numTuples=this._tuples.length;this.reset()},close:function(){this.numTuples=-1;this._members=
this._hierarchyIndexes=this._hierarchyOrder=this._hierarchyDefs=this._tuples=null},_getMembers:function(){return this.hasMoreTuples()?n(this._tuples[this._tupleIndex],"urn:schemas-microsoft-com:xml-analysis:mddataset","","Member"):null},reset:function(){this._tupleIndex=this._hierarchyIndex=0;this._members=this._getMembers()},hasMoreHierarchies:function(){return this.numHierarchies>this._hierarchyIndex},nextHierarchy:function(){return this._hierarchyIndex++},eachHierarchy:function(a,b,d){var c=[null];
b||(b=this);d&&(u(d)||(d=[d]),c=c.concat(d));for(;this.hasMoreHierarchies();){c[0]=this._hierarchyDefs[this._hierarchyOrder[this._hierarchyIndex]];if(!1===a.apply(b,c))return!1;this.nextHierarchy()}this._hierarchyIndex=0;return!0},hasMoreTuples:function(){return this.numTuples>this._tupleIndex},nextTuple:function(){this._tupleIndex++;this._members=this._getMembers();return this._tupleIndex},tupleCount:function(){return this.numTuples},tupleIndex:function(){return this._tupleIndex},getTuple:function(){var a,
b=this.numHierarchies,d={},e,f=[],g={index:this._tupleIndex,hierarchies:d,members:f};for(a=0;a<b;a++)e=this._member(a),d[this._hierarchyOrder[a]]=e,f.push(e);return g},eachTuple:function(a,b,d){var c=[null];b||(b=this);for(d&&(u(d)?c.concat(d):c.push(d));this.hasMoreTuples();){c[0]=this.getTuple();if(!1===a.apply(b,c))return!1;this.nextTuple()}this._tupleIndex=0;this._members=this._getMembers();return!0},getHierarchies:function(){return this._hierarchyDefs},getHierarchyNames:function(){var a=[],b,
d=this.numHierarchies;for(b=0;b<d;b++)a[b]=this._hierarchyOrder[b];return a},hierarchyCount:function(){return this.numHierarchies},hierarchyIndex:function(a){if(m(a))return this._hierarchyIndex;var c=this._hierarchyIndexes[a];m(c)&&b.Exception._newError("INVALID_HIERARCHY","Xmla.Dataset.Axis.hierarchyDef",a)._throw();return c},hierarchyName:function(a){m(a)&&(a=this._hierarchyIndex);(a!==parseInt(a,10)||a>=this.numHierarchies)&&b.Exception._newError("INVALID_HIERARCHY","Xmla.Dataset.Axis.hierarchyDef",
a)._throw();return this._hierarchyOrder[a]},hierarchy:function(a){m(a);var c;"number"===typeof a&&((a!==parseInt(a,10)||a>=this.numHierarchies)&&b.Exception._newError("INVALID_HIERARCHY","Xmla.Dataset.Axis.hierarchyDef",a)._throw(),a=this.hierarchyName(a));c=this._hierarchyDefs[a];m(c)&&b.Exception._newError("INVALID_HIERARCHY","Xmla.Dataset.Axis.hierarchyDef",a)._throw();return c},member:function(a){m(a)&&(c=this._hierarchyIndex);var c;switch(typeof a){case "string":c=this.hierarchyIndex(a);break;
case "number":(a!==parseInt(a,10)||a>=this.numHierarchies)&&b.Exception._newError("INVALID_HIERARCHY","Xmla.Dataset.Axis.hierarchyDef",a)._throw(),c=a}return this._member(c)},_member:function(a){var b=this._members[a].childNodes,d=b.length,e=this.hierarchyName(a),f=this._hierarchyDefs[e].properties,g={index:a,hierarchy:e},h;for(a=0;a<d;a++)h=b[a],1===h.nodeType&&(e=f[h.nodeName])&&(g[e.propertyName||e.name]=e.converter(p(h)));return g},hasMemberProperty:function(a){return!m(this._memberProperties[a])},
readAsArray:function(a){a||(a=[]);var b,d=this.numHierarchies;for(b=0;b<d;b++)a[b]=this._member(b);return a},readAsObject:function(a){a||(a={});var b,d=this.numHierarchies;for(b=0;b<d;b++)a[this._hierarchyOrder[b]]=this._member(b);return a},fetchAsArray:function(a){this.hasMoreTuples()?(a=this.readAsArray(a),this.nextTuple()):a=!1;return a},fetchAsObject:function(a){this.hasMoreTuples(a)?(a=this.readAsObject(),this.nextTuple()):a=!1;return a},fetchAllAsArray:function(a){var b;for(a||(a=[]);b=this.fetchAsArray();)a.push(b);
this.reset();return a},fetchAllAsObject:function(a){var b;for(a||(a=[]);b=this.fetchAsObject();)a.push(b);this.reset();return a}};b.Dataset.Cellset=function(a){this._dataset=a;this._initCellset();return this};b.Dataset.Cellset.prototype={_dataset:null,_cellNodes:null,_cellCount:null,_cellNode:null,_cellProperties:null,_idx:null,_cellOrd:null,_initCellset:function(){var a=this._dataset._root,c,d,e,f,g,h,k,m,l;(c=K(a,"CellData"))||b.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Dataset.Cellset",
a)._throw();c=n(c,"http://www.w3.org/2001/XMLSchema","xsd","element");d=c.length;(f=n(a,"urn:schemas-microsoft-com:xml-analysis:mddataset","","CellInfo"))&&0!==f.length||b.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw();f=n(f[0],"urn:schemas-microsoft-com:xml-analysis:mddataset","","*");this._cellProperties={};k=f.length;var p=this,q=function(a){p["cell"+a]=function(){return this.cellProperty(a)}};for(m=0;m<k;m++){g=f[m];h=g.nodeName;for(l=0;l<d;l++)if(e=c[l],r(e,"name")===
h){e=r(e,"type");this._cellProperties[h]=B[e];q(h);break}this._cellProperties[h]||((e=r(g,"type"))||(e="Value"===h?"xs:decimal":"xs:string"),this._cellProperties[h]=B[e],q(h))}this._cellNodes=n(a,"urn:schemas-microsoft-com:xml-analysis:mddataset","","Cell");this._cellCount=this._cellNodes.length;this.reset()},_getCellNode:function(a){m(a)||(this._idx=a);this._cellNode=this._cellNodes[this._idx];this._cellOrd=this._getCellOrdinal(this._cellNode)},_getCellOrdinal:function(a){return parseInt(r(a,"CellOrdinal"),
10)},cellCount:function(){return this._cellNodes.length},reset:function(a){this._idx=a?a:0;this.hasMoreCells()&&this._getCellNode()},hasMoreCells:function(){return this._idx<this._cellCount},nextCell:function(){this._idx+=1;return this.hasMoreCells()?(this._getCellNode(),this._cellOrd):this._idx=-1},curr:function(){return this._idx},hasCellProperty:function(a){return!m(this._cellProperties[a])},cellProperty:function(a){var b,d;d=n(this._cellNode,"urn:schemas-microsoft-com:xml-analysis:mddataset",
"",a);d.length?(d=d[0],b=R(d),a=this._cellProperties[a],a||(d=C(d,"http://www.w3.org/2001/XMLSchema-instance","xsi","type"),a=Q(d)),b=a(b)):b=null;return b},cellOrdinal:function(){return this._cellOrd},_readCell:function(a,b){var c,e,f;for(c in this._cellProperties)if(e=n(a,"urn:schemas-microsoft-com:xml-analysis:mddataset","",c)[0])f=this._cellProperties[c],b[c]=f?f(p(e)):"Value"===c?R(e):p(e);b.ordinal=this._getCellOrdinal(a);return b},readCell:function(a){a||(a={});return this._readCell(this._cellNode,
a)},eachCell:function(a,b,d){var c=[null];b||(b=this);d&&(u(d)||(d=[d]),c=c.concat(d));for(var f;-1!==f&&this.hasMoreCells();)if(f=this.nextCell(),c[0]=this.readCell(),!1===a.apply(b,c))return!1;this._idx=0;return!0},getByIndex:function(a,b){this._getCellNode(a);return this.readCell(b)},getByOrdinal:function(a,b){var c,e;e=this.cellCount()-1;for(e=a>e?e:a;;){c=this._cellNodes[e];c=this._getCellOrdinal(c);if(c===a)return this.getByIndex(e,b);if(c>a)e--;else return null}},indexForOrdinal:function(a){for(var b=
this._cellNodes,d=Math.min(a,b.length-1),e;0<=d;){e=b[d];e=this._getCellOrdinal(e);if(e===a)return d;if(e>a)d--;else break}return-1},fetchRangeAsArray:function(a,b){var c=[],e=this._cellNodes,f=e.length;if(0===f)return c;var g;if(m(b)||-1===b)b=this._getCellOrdinal(e[f-1]);if(m(a)||-1===a)a=this._getCellOrdinal(e[0]);for(f=Math.min(b,f-1);0<=f;){g=e[f];g=this._getCellOrdinal(g);if(g<=b)break;--f}if(-1===f||g<a)return c;for(var h=Math.min(f,a);0<=h;){g=e[h];g=this._getCellOrdinal(g);if(g<=a){g<a&&
(h+=1);break}--h}for(-1===h&&(h=0);h<=f;h++)g=e[h],c.push(this._readCell(g,{}));return c},cellOrdinalForTupleIndexes:function(){return this._dataset.cellOrdinalForTupleIndexes.apply(this._dataset,arguments)},getByTupleIndexes:function(){return this.getByOrdinal(this.cellOrdinalForTupleIndexes.apply(this,arguments))},close:function(){this._cellNode=this._cellNodes=this._dataset=null}};b.Exception=function(a,b,d,e,f,g,h,k,m){this.type=a;this.code=b;this.message=d;this.source=f;this.helpfile=e;this.data=
g;this.args=h;this.detail=k;this.actor=m;return this};b.Exception.TYPE_WARNING="warning";b.Exception.TYPE_ERROR="error";b.Exception.MISSING_REQUEST_TYPE_CDE=-1;b.Exception.MISSING_REQUEST_TYPE_MSG="Missing_Request_Type";b.Exception.MISSING_REQUEST_TYPE_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.MISSING_REQUEST_TYPE_CDE+"_"+b.Exception.MISSING_REQUEST_TYPE_MSG;b.Exception.MISSING_STATEMENT_CDE=-2;b.Exception.MISSING_STATEMENT_MSG="Missing_Statement";b.Exception.MISSING_STATEMENT_HLP=
"http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.MISSING_STATEMENT_CDE+"_"+b.Exception.MISSING_STATEMENT_MSG;b.Exception.MISSING_URL_CDE=-3;b.Exception.MISSING_URL_MSG="Missing_URL";b.Exception.MISSING_URL_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.MISSING_URL_CDE+"_"+b.Exception.MISSING_URL_MSG;b.Exception.NO_EVENTS_SPECIFIED_CDE=-4;b.Exception.NO_EVENTS_SPECIFIED_MSG="No_Events_Specified";b.Exception.NO_EVENTS_SPECIFIED_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+
b.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+b.Exception.NO_EVENTS_SPECIFIED_MSG;b.Exception.WRONG_EVENTS_FORMAT_CDE=-5;b.Exception.WRONG_EVENTS_FORMAT_MSG="Wrong_Events_Format";b.Exception.WRONG_EVENTS_FORMAT_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.NO_EVENTS_SPECIFIED_CDE+"_"+b.Exception.NO_EVENTS_SPECIFIED_MSG;b.Exception.UNKNOWN_EVENT_CDE=-6;b.Exception.UNKNOWN_EVENT_MSG="Unknown_Event";b.Exception.UNKNOWN_EVENT_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+
b.Exception.UNKNOWN_EVENT_CDE+"_"+b.Exception.UNKNOWN_EVENT_MSG;b.Exception.INVALID_EVENT_HANDLER_CDE=-7;b.Exception.INVALID_EVENT_HANDLER_MSG="Invalid_Events_Handler";b.Exception.INVALID_EVENT_HANDLER_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.INVALID_EVENT_HANDLER_CDE+"_"+b.Exception.INVALID_EVENT_HANDLER_MSG;b.Exception.ERROR_PARSING_RESPONSE_CDE=-8;b.Exception.ERROR_PARSING_RESPONSE_MSG="Error_Parsing_Response";b.Exception.ERROR_PARSING_RESPONSE_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+
b.Exception.ERROR_PARSING_RESPONSE_CDE+"_"+b.Exception.ERROR_PARSING_RESPONSE_MSG;b.Exception.INVALID_FIELD_CDE=-9;b.Exception.INVALID_FIELD_MSG="Invalid_Field";b.Exception.INVALID_FIELD_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.INVALID_FIELD_CDE+"_"+b.Exception.INVALID_FIELD_MSG;b.Exception.HTTP_ERROR_CDE=-10;b.Exception.HTTP_ERROR_MSG="HTTP Error";b.Exception.HTTP_ERROR_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.HTTP_ERROR_CDE+"_"+b.Exception.HTTP_ERROR_MSG;
b.Exception.INVALID_HIERARCHY_CDE=-11;b.Exception.INVALID_HIERARCHY_MSG="Invalid_Hierarchy";b.Exception.INVALID_HIERARCHY_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.INVALID_HIERARCHY_CDE+"_"+b.Exception.INVALID_HIERARCHY_MSG;b.Exception.UNEXPECTED_ERROR_READING_MEMBER_CDE=-12;b.Exception.UNEXPECTED_ERROR_READING_MEMBER_MSG="Error_Reading_Member";b.Exception.UNEXPECTED_ERROR_READING_MEMBER_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.UNEXPECTED_ERROR_READING_MEMBER_CDE+
"_"+b.Exception.UNEXPECTED_ERROR_READING_MEMBER_MSG;b.Exception.INVALID_AXIS_CDE=-13;b.Exception.INVALID_AXIS_MSG="The requested axis does not exist.";b.Exception.INVALID_AXIS_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.INVALID_AXIS_CDE+"_"+b.Exception.INVALID_AXIS_MSG;b.Exception.ILLEGAL_ARGUMENT_CDE=-14;b.Exception.ILLEGAL_ARGUMENT_MSG="Illegal arguments";b.Exception.ILLEGAL_ARGUMENT_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.ILLEGAL_ARGUMENT_CDE+
"_"+b.Exception.ILLEGAL_ARGUMENT_MSG;b.Exception.ERROR_INSTANTIATING_XMLHTTPREQUEST_CDE=-15;b.Exception.ERROR_INSTANTIATING_XMLHTTPREQUEST_MSG="Error creating XML Http Request";b.Exception.ERROR_INSTANTIATING_XMLHTTPREQUEST_HLP="http://code.google.com/p/xmla4js/wiki/ExceptionCodes#"+b.Exception.ERROR_INSTANTIATING_XMLHTTPREQUEST_CDE+"_"+b.Exception.ERROR_INSTANTIATING_XMLHTTPREQUEST_MSG;b.Exception._newError=function(a,c,d){return new b.Exception(b.Exception.TYPE_ERROR,b.Exception[a+"_CDE"],b.Exception[a+
"_MSG"],b.Exception[a+"_HLP"],c,d)};b.Exception.prototype={type:null,code:null,message:null,source:null,helpfile:null,data:null,_throw:function(){throw this;},args:null,toString:function(){return this.type+" "+this.code+": "+this.message+" (source: "+this.source+", actor: "+this.actor+")"},getStackTrace:function(){if(this.args)for(var a=this.args.callee;a;)a=a.caller;return""}};"function"===typeof define&&define.amd?define(function(){return b}):y.Xmla=b;return b})("undefined"===typeof exports?window:
exports);
../../font-awesome
\ No newline at end of file
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "test ",
"type": "array",
"items": {
"$ref": "remote_settings.json"
}
}
\ No newline at end of file
../../gadget_erp5_global.js
\ No newline at end of file
../../gadget_html5_select.html
\ No newline at end of file
../../gadget_html5_select.js
\ No newline at end of file
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Demo UI OLAP Query editor based on JSON Schema form generator</title>
<link rel="stylesheet" href="gadget_erp5_nojqm.css">
<script src="rsvp.js"></script>
<script src="renderjs.js"></script>
<script src="jio.js"></script>
<script src="Xmla-compiled.js"></script>
<script src="index.js"></script>
</head>
<body>
<div data-role="page">
<div role="main" class="ui-content gadget-content">
<section class="ui-content-header-plain">
<h3 class="ui-content-title ui-body-c">
Xmla connection settings form
</h3>
</section>
<div data-gadget-url="jsonform.gadget.html"
data-gadget-scope="xmla_settings"
data-gadget-sandbox="public"></div>
<br>
</div>
</div>
</body>
</html>
\ No newline at end of file
/*jslint nomen: true, maxlen: 200, indent: 2*/
/*global rJS, console, window, document, RSVP, Xmla*/
(function (window, rJS) {
"use strict";
function xmla_request(func, prop) {
var xmla = new Xmla({async: true});
prop = JSON.parse(JSON.stringify(prop));
// return function () {
return new RSVP.Queue()
.push(function () {
return new RSVP.Promise(function (resolve, reject) {
prop.success = function (xmla, options, response) {
resolve(response);
};
prop.error = function (xmla, options, response) {
reject(response);
};
xmla[func](prop);
});
});
}
function xmla_request_retry(func, settings) {
var queue,
urls = settings.urls,
i;
function make_request(url) {
return function (error) {
settings.prop.url = url;
return xmla_request(func, settings.prop)
.push(undefined, function (response) {
// fix mondrian Internal and Sql errors
if (response) {
switch (response["code"]) {
case "SOAP-ENV:Server.00HSBE02":
case "SOAP-ENV:00UE001.Internal Error":
// rarely server error, so try again
return xmla_request(func, settings.prop);
}
}
throw response;
});
};
}
queue = make_request(urls[0])();
for (i = 1; i < settings.urls.length; i += 1) {
queue.push(undefined, make_request(urls[i]));
}
return queue;
}
function render_form(gadget, scope, schema, value) {
return gadget.getDeclaredGadget(scope)
.push(function (g) {
return g.render({
schema_url: schema,
value: value
});
});
}
function discoverDataSources(schema, opt) {
return xmla_request_retry("discoverDataSources", opt)
.push(undefined, function (error) {
console.log(error);
})
.push(function (response) {
if (response && response.numRows > 0) {
schema.properties.DataSourceInfo = {
oneOf: []
};
var arr = schema.properties.DataSourceInfo.oneOf;
while (response.hasMoreRows()) {
arr.push({
const: response["getDataSourceInfo"]() || undefined,
title: response["getDataSourceName"]() || undefined,
description: response["getDataSourceDescription"]() || undefined
});
response.nextRow();
}
}
});
}
function discoverDBCatalogs(schema, opt) {
return xmla_request_retry("discoverDBCatalogs", opt)
.push(undefined, function (error) {
console.log(error);
})
.push(function (response) {
if (response && response.numRows > 0) {
schema.properties.Catalog = {
oneOf: []
};
var arr = schema.properties.Catalog.oneOf;
while (response.hasMoreRows()) {
arr.push({
const: response["getCatalogName"]() || undefined,
title: response["getCatalogName"]() || undefined
});
response.nextRow();
}
}
});
}
function discoverMDCubes(schema, opt) {
return xmla_request_retry("discoverMDCubes", opt)
.push(undefined, function (error) {
console.log(error);
})
.push(function (response) {
if (response && response.numRows > 0) {
schema.properties.Cube = {
oneOf: []
};
var arr = schema.properties.Cube.oneOf;
while (response.hasMoreRows()) {
arr.push({
const: response["getCubeName"]() || undefined,
title: response["getCubeName"]() || undefined
// title: response["getCatalogName"]() || undefined
});
response.nextRow();
}
}
});
}
function init_schema() {
return {
"type": "object",
"additionalProperties": false,
"required": ["Cube"],
"properties": {
"DataSourceInfo": {"type": "string"},
"Catalog": {"type": "string"},
"Cube": {"type": "string"}
}
};
}
rJS(window)
.ready(function (g) {
g.props = {};
g.props.xmla_connections = {};
return render_form(g, "xmla_settings",
// new URL("for_test.json", window.location).toString(), {});
new URL("remote_settings.json", window.location).toString(), {});
})
.allowPublicAcquisition("notifyValid", function (arr, scope) {
})
.allowPublicAcquisition("notifyInvalid", function (arr, scope) {
})
.allowPublicAcquisition("notifyChange", function (arr, scope) {
var g = this,
p = arr[0],
schema = init_schema(),
gadget_settings,
path;
function f(p) {
var settings;
return g.getDeclaredGadget("xmla_settings")
.push(function (gadget) {
gadget_settings = gadget;
return gadget.getContent(p);
})
.push(function (c) {
settings = c;
if (!c.hasOwnProperty('properties')) {
c.properties = {};
}
var opt = {
urls: c.urls,
prop: {
properties: {
DataSourceInfo: c.properties.DataSourceInfo,
Catalog: c.properties.Catalog
}
},
cube: c.properties.Cube
};
return RSVP.all([
discoverDataSources(schema, opt),
discoverDBCatalogs(schema, opt),
discoverMDCubes(schema, opt)
]);
})
.push(function () {
g.props.xmla_connections[p] = schema;
return gadget_settings.getGadgetByPath(p);
})
.push(function (ret) {
return ret.gadget.rerender(settings);
});
}
for (path in g.props.xmla_connections) {
if (g.props.xmla_connections.hasOwnProperty(path) &&
p.startsWith(path)) {
return f(path);
}
}
})
.allowPublicAcquisition("resolveExternalReference", function (arr) {
var g = this,
url = arr[0],
schema_path = arr[1],
path = arr[2],
connection_path;
if ("urn:jio:properties_from_xmla.connection.json" === url) {
return g.getDeclaredGadget("xmla_settings")
.push(function (gadget) {
return gadget.getContent();
})
.push(function (value) {
connection_path = path.split('/').slice(0, -1).join('/');
if (!g.props.xmla_connections.hasOwnProperty(connection_path)) {
g.props.xmla_connections[connection_path] = init_schema();
}
return g.props.xmla_connections[connection_path];
});
}
throw Error("urn: '" + url + "' not supported");
})
.onStateChange(function (modification_dict) {
});
}(window, rJS));
\ No newline at end of file
../../jsonform
\ No newline at end of file
../../jsonform.gadget.appcache
\ No newline at end of file
../../jsonform.gadget.html
\ No newline at end of file
../../jsonform.gadget.js
\ No newline at end of file
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "remote XMLA connections",
"type": "object",
"additionalProperties": {
"$ref": "xmla_connection.json"
}
}
\ No newline at end of file
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "XMLA connection",
"type": "object",
"properties": {
"urls": {
"uniqueItems": true,
"items": {
"format": "uri",
"minLength": 1,
"type": "string"
},
"minItems": 1,
"type": "array"
},
"properties": {
"$ref": "urn:jio:properties_from_xmla.connection.json"
},
"username": {
"type": "string"
},
"password": {
"type": "string"
}
},
"required": [
"urls"
],
"additionalProperties": false
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment