123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: cchl
- // (C) Copyright IBM Corp. 2003, 2016.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function C_ModelCache(){this._cF71="";this._cRW="";this._cSW="";this._cTW="";this._c5D="";this._cC8="";this._cX2=NaN;this._cG71=[];this._cZR=false;this._cL5=null;this._cS1=null;this._cC1={};this._cDC1();};C_ModelCache.prototype._cDC1=function(){this._c6D={};this._cRA={};this._c57={};this._c67=false;this._c0S=U_XML.F_CreateDocument();var _cX11=this._c0S.appendChild(this._c0S.createElement("modelCache"));this._cDJ=_cX11.appendChild(this._c0S.createElement("modelRootCache"));this._c7D=_cX11.appendChild(this._c0S.createElement("rootMembersCache"));this._c5N=_cX11.appendChild(this._c0S.createElement("childrenCache"));this._c1S=_cX11.appendChild(this._c0S.createElement("membersCache"));this._cD1=_cX11.appendChild(this._c0S.createElement("queryItemParameterMapCache"));this._cAG=_cX11.appendChild(this._c0S.createElement("sharedSetsCache"));this._cSA={};this._c61={};this._cJ={};this._c0();};C_ModelCache.prototype._c0=function(){var _cO8=this._cC1[ this.F_GetPackagePath()];if(_cO8){var _c8D=_cO8[ this.F_GetModelLocale()];if(_c8D){for(var _cY11 in _c8D){var _cWV1=_c8D[ _cY11 ];this._c71(_cY11, _cWV1._cEH1, _cWV1._cUW, _cWV1._cXV1);}}}this._cC1={};};C_ModelCache.prototype.F_SetModel=function(_cH71, _cVW, _cWW, _cXW, _c9D, _cY2, _cA8, _cLO1){var _cLO1=_cLO1!=null?_cLO1:true;var _c6N=!this._cZR;var _c2S=(this._cF71!=_cH71)||(this._cRW!=_cVW);this._cF71=_cH71;this._cRW=_cVW;this._cSW=_cWW;this._cTW=_cXW;this._c5D=_c9D;this._cC8=_cA8;this._cX2=_cY2;if(_c2S&&_cLO1){this.F_ClearModelCache();}else if(this._cZR){return;}this._cZR=true;this._cEC1("F_ModelCache_OnModelChanged");if(_c6N&&!_c2S&&this.F_GetModelRootResponses()){this._cEC1("F_ModelCache_OnModelRootLoaded");}};C_ModelCache.prototype._cE1=function(){var _cP8=this.F_GetSharedSetsDoc().documentElement;var _c7N="sharedSetsPackage[@expressionLocale=" + this.F_GetModelLocale().F_ToXPathString() + " and packagePath=" + this.F_GetPackagePath().F_ToXPathString() +"]";return _cP8.selectSingleNode(_c7N);};C_ModelCache.prototype._c1=function(){U_XML.F_RemoveNode(this._cAG, "sharedSetsReports"); var _cTA=this._cE1();if(_cTA){var _cYV1=U_XML.F_ImportNode(this._c0S, _cTA.selectSingleNode("sharedSetsReports"), true); this._cAG.appendChild(_cYV1); }else{U_XML.F_AppendChild(this._cAG, "sharedSetsReports");}};C_ModelCache.prototype._c4=function(){var _c3S=this.F_GetSharedSetsDoc();var _cUA=_c3S.documentElement;var _cTA=this._cE1();if(!_cTA){_cTA=U_XML.F_AppendChild(_cUA, "sharedSetsPackage");_cTA.setAttribute("expressionLocale", this.F_GetModelLocale());U_XML.F_AppendChild(_cTA, "packagePath").text=this.F_GetPackagePath();}U_XML.F_RemoveNode(_cTA, "sharedSetsReports");var _cO3=this._cAG.selectSingleNode("sharedSetsReports");var _cVA=U_XML.F_ImportNode(_c3S, _cO3);U_XML.F_RemoveNodes(_cVA , "sharedSetsReport/sharedSets");_cTA.appendChild(_cVA);this._c9(this);};C_ModelCache.prototype.F_CacheSharedSetsReport=function(_cY11,_cZ11,_cFH1){G_Debug.F_Assert(! this.F_GetSharedSetsReportCacheNode(_cY11));var _cZ2=this._cAG.selectSingleNode("sharedSetsReports");var _cAD=U_XML.F_AppendChild(_cZ2, "sharedSetsReport");U_XML.F_AppendChild(_cAD, "reportPath").text=_cY11;U_XML.F_AppendChild(_cAD, "reportName").text=_cZ11;_cAD.setAttribute("storeID", _cFH1);this._cEJ(_cY11);this._c4();this._cEC1("F_ModelCache_OnSharedSetsChanged");};C_ModelCache.prototype._cBG=function(_c021,_c77){for(var i=0;i<_c77.length;i++){var _cI71=U_XML.F_AppendChild(_c021, "sharedSet"); _cI71.setAttribute("name", _c77[i]._cOT1);_cI71.setAttribute("description", _c77[i]._c121);_cI71.setAttribute("DUN", _c77[i]._cPT1);_cI71.setAttribute("HUN", _c77[i]._cQT1);} };C_ModelCache.prototype._cEJ=function(_cY11){var _cAD=this.F_GetSharedSetsReportCacheNode(_cY11);if(_cAD){var _cWV1=this.F_GetSharedSetsReportAndStoreID(_cY11);if(_cWV1){var _c021=U_XML.F_AppendChild(_cAD, "sharedSets");this._cBG(_c021, this.F_GetSharedSetProperties(_cWV1._cXV1));}}};C_ModelCache.prototype.F_RemoveSharedSetsReport=function(_cY11){var _cZ2=this._cAG.selectSingleNode("sharedSetsReports");var _cAD=U_XML.F_RemoveNode( _cZ2, "sharedSetsReport[reportPath=" + _cY11.F_ToXPathString() + "]" );if(_cAD){this._c4();this._cEC1("F_ModelCache_OnSharedSetsChanged");} };C_ModelCache.prototype.F_GetSharedSetsDoc=function(){if(! this._cS1){var _cCG=this._cA(this);this._cS1=U_XML.F_LoadString(null, _cCG, false);}return this._cS1;};C_ModelCache.prototype.F_ReplaceSharedSetsReportsForCurrentPackage=function(_c4S){var _cZ2=this._cAG.selectSingleNode("sharedSetsReports");U_XML.F_RemoveNodes(_cZ2, "sharedSetsReport");var _cFK1=_c4S.length;for(var i=0;i<_cFK1;i++){var _cAD=U_XML.F_AppendChild(_cZ2, "sharedSetsReport");U_XML.F_AppendChild(_cAD, "reportPath").text=_c4S[i]._cSQ1;U_XML.F_AppendChild(_cAD, "reportName").text=_c4S[i]._cER1;_cAD.setAttribute("storeID", _c4S[i]._cEH1);this._cEJ(_c4S[i]._cSQ1);}this._c4();this._cEC1("F_ModelCache_OnSharedSetsChanged"); };C_ModelCache.prototype.F_GetSharedSetsReportRootForCurrentPackage=function(){return this._cAG.selectSingleNode("sharedSetsReports");};C_ModelCache.prototype.F_CurrentModelHasSharedSetReports=function(){return this.F_GetSharedSetsReportRootForCurrentPackage().selectNodes("sharedSetsReport").length>0 ;};C_ModelCache.prototype.F_GetReport=function(_cY11){var _cWV1=this.F_GetSharedSetsReportAndStoreID(_cY11);return _cWV1?_cWV1._cXV1:null;};C_ModelCache.prototype.F_GetSharedSetsReportAndStoreID=function(_cY11){return this._c61[_cY11]; };C_ModelCache.prototype.F_GetSharedSetsReportAndPath=function(_cFH1){return this._cJ[_cFH1]; };C_ModelCache.prototype._c71=function(_cY11,_cFH1,_cYW,d){this._c61[_cY11]={ _cXV1: d, _cEH1: _cFH1, _cUW: _cYW }; this._cJ[_cFH1]={ _cXV1: d, _cSQ1: _cY11, _cUW: _cYW };};C_ModelCache.prototype.F_GetSharedSetsForReport=function(_cY11,_cFH1){var _c021=this._cAG.selectSingleNode( "sharedSetsReports/sharedSetsReport[reportPath=" + _cY11.F_ToXPathString() + "]/sharedSets" );if(!_c021){var d=null;var _cYW;if(_cFH1){var _c8N=this.F_GetSharedSetsReportAndPath(_cFH1);if(_c8N){d=_c8N._cXV1;_cY11=_c8N._cSQ1;_cYW=_c8N._cUW;}}else{var _cBD=this.F_GetSharedSetsReportAndStoreID(_cY11);if(_cBD){d=_cBD._cXV1;_cFH1=_cBD._cEH1;_cYW=_cBD._cUW;}}if(d){var _c77=this.F_GetSharedSetProperties(d);this.F_CacheGetSharedSetsResponse(_cY11,_cFH1, _cYW, d, _c77);_c021=this._cAG.selectSingleNode( "sharedSetsReports/sharedSetsReport[reportPath=" + _cY11.F_ToXPathString() + "]/sharedSets" );}}return _c021;};C_ModelCache.prototype.F_GetSharedSetsReportCacheNode=function(_cY11){return this._cAG.selectSingleNode( "sharedSetsReports/sharedSetsReport[reportPath=" + _cY11.F_ToXPathString() + "]" );};C_ModelCache.F_CreateSharedSetsReportRequest=function(_cCB1,_cY11,_cFH1,_cMO1){G_Debug.F_Print("C_ModelCache.F_CreateSharedSetsReportRequest");return null;};C_ModelCache.F_GetSharedSetProperties=function(d){return null;};C_ModelCache._cA=function(_c221){G_Debug.F_Print("C_ModelCache._cWA");return null;};C_ModelCache._c9=function(_c221){G_Debug.F_Print("C_ModelCache._c9");};C_ModelCache.prototype.F_CacheGetSharedSetsResponse=function(_cY11,_cFH1,_cYW,d,_c77){var n=d.documentElement.selectSingleNode("modelPath");var _cQ8=n?n.text:"";var _cM5=this.F_ExtractPackagePathFromModelPath(_cQ8);var _cT1=d.documentElement.getAttribute("expressionLocale");if((_cQ8==this.F_GetModelPath()||_cM5==this.F_GetPackagePath())&& _cT1==this.F_GetModelLocale()){this._c71(_cY11, _cFH1, _cYW, d);var _cAD=null;var _c81=false;if(_cFH1){_cAD=this._cAG.selectSingleNode( "sharedSetsReports/sharedSetsReport[@storeID=" + _cFH1.F_ToXPathString() + "]");if(_cAD){if(_cAD.selectSingleNode("reportPath").text!=_cY11){_cAD.selectSingleNode("reportPath").text=_cY11;_c81=true;}}}if(! _cAD){_cAD=this.F_GetSharedSetsReportCacheNode(_cY11);if(_cAD&&_cFH1){_cAD.setAttribute("storeID", _cFH1);_c81=true;}}if(_cAD&&_cYW&&_cAD.selectSingleNode("reportName").text!=_cYW){_cAD.selectSingleNode("reportName").text=_cYW;_c81=true;}if(!_cAD){return null;}var _c021=_cAD.selectSingleNode("sharedSets");if(_c021){U_XML.F_RemoveNodes(_c021, "*");}else{_c021=U_XML.F_AppendChild(_cAD, "sharedSets");}this._cBG(_c021, _c77);if(_c81){this._c4();}return _c021;}else {this._cP(_cM5, _cY11, _cFH1, _cYW, _cT1, d);return null;}};C_ModelCache.prototype._cP=function(_cM5,_cY11,_cFH1,_cYW,_cT1,d){var _cO8=this._cC1[ _cM5 ];if(!_cO8){_cO8={};this._cC1[ _cM5 ]=_cO8;}var _cN5=_cO8[ _cT1 ];if(! _cN5){_cN5={};_cO8[ _cT1 ]=_cN5;} _cN5[ _cY11 ]={ _cXV1: d, _cEH1: _cFH1, _cUW: _cYW };};C_ModelCache.prototype.F_DisableModel=function(){this._cZR=false;this._cEC1("F_ModelCache_OnCacheCleared");this._cEC1("F_ModelCache_OnModelChanged");this._cEC1("F_ModelCache_OnModelRootLoaded");};C_ModelCache.prototype.F_ToString=function(){var _cX11=this._c0S.documentElement;_cX11.setAttribute("modelPath", this._cF71);_cX11.setAttribute("modelLocale", this._cRW);_cX11.setAttribute("packageName", this._cSW);_cX11.setAttribute("packagePath", this._cTW);_cX11.setAttribute("modificationTime", this._c5D);_cX11.setAttribute("memberDisplayCountLimit", this._cX2.toString());return _cX11.xml;};C_ModelCache.prototype.F_IsCurrentModel=function(_cH71,_cVW){return((_cH71==this._cF71)&&(_cVW==this._cRW));};C_ModelCache.prototype.F_AddModelLoadedListener=function(_cCB1){this._cG71.F_PushUnique(_cCB1);};C_ModelCache.prototype.F_RemoveModelLoadedListener=function(_cCB1){this._cG71.F_RemoveItem(_cCB1);};C_ModelCache.prototype.F_LoadXML=function(_cNT1){this.F_ClearModelCache();this._c0S=U_XML.F_LoadString(null, _cNT1, false, false);if(!this._c0S){return;}var _cX11=this._c0S.documentElement;this._cDJ=_cX11.selectSingleNode("modelRootCache");this._c7D=_cX11.selectSingleNode("rootMembersCache");this._c5N=_cX11.selectSingleNode("childrenCache");this._c1S=_cX11.selectSingleNode("membersCache");this._cD1=_cX11.selectSingleNode("queryItemParameterMapCache");this._cAG=_cX11.selectSingleNode("sharedSetsCache");this._cF71=_cX11.getAttribute("modelPath");this._cRW=_cX11.getAttribute("modelLocale");this._cSW=_cX11.getAttribute("packageName");this._cTW=_cX11.getAttribute("packagePath");this._c5D=_cX11.getAttribute("modificationTime");this._cX2=_cX11.getAttribute("memberDisplayCountLimit");this._cZR=true;this._cEC1("F_ModelCache_OnModelChanged");this._cEC1("F_ModelCache_OnModelRootLoaded");};C_ModelCache.prototype.F_IsMultiDimensionalSource=function(_cH71){var _cNO1=null;if(!_cH71){_cNO1=this._cDJ;} else {_cNO1=this._cDJ.selectSingleNode(this.F_ConstructXpathForContains(_cH71));}return Boolean( _cNO1&&_cNO1.selectSingleNode( ".//*[self::dimension | self::hierarchy | self::member]" )); };C_ModelCache.prototype.F_ClearModelCache=function(){this._cDC1();this._cEC1("F_ModelCache_OnCacheCleared");};C_ModelCache.prototype.F_ClearSharedSetsReportsCache=function(){this._c61={};this._cJ={};U_XML.F_RemoveNodes(this._cAG, "sharedSetsReports/sharedSetsReport/sharedSets");this._cEC1("F_ModelCache_OnSharedSetsChanged");};C_ModelCache.prototype._cEC1=function(_cOO1){this._cG71.F_CallEach(_cOO1, this);if(G_HAL.M_oTestListener&&G_HAL.M_oTestListener[_cOO1]){G_HAL.M_oTestListener[_cOO1](this);}};C_ModelCache.prototype.F_GetMember=function(_cQQ1){return this._c1S.selectSingleNode(".//*[not(self::searchResult) and @_ref=" + _cQQ1.F_ToXPathString() + "]");};C_ModelCache.prototype.F_GetCachedMeasure=function(_cRT1){return this._c0S.selectSingleNode(".//*[not(self::searchResult) and @_ref=" + _cRT1.F_ToXPathString() + "]");};C_ModelCache.prototype.F_GetMembers=function(_cRT1,_c321){if(!_c321){alert( "F_GetMembers requires a max members parameter" );return null;}var _c7B1=this._c1S.selectSingleNode("*[not(self::searchResult) and @_ref=" + _cRT1.F_ToXPathString() + "]");if(_c7B1){var _cDG=_c7B1.selectNodes("member").length;var _cR8=_c7B1.getAttribute("maxMembers");var _cS8=_cR8?parseInt(_cR8, 10):Number.POSITIVE_INFINITY;if(_c321<=_cS8||_cDG<_cS8){return _c7B1;}}return null;};C_ModelCache.prototype.F_CacheMembersResponse=function(_cZW,_c321){if(_c321!=Number.POSITIVE_INFINITY){_cZW.setAttribute("maxMembers", _c321);}var n=U_XML.F_ImportNode(this._c0S, _cZW, true);this._c1S.appendChild(n);this._cE2();return n;};C_ModelCache.prototype._cE2=function(){if(!this._c9N){U_XML.F_SetNodeAttributeValues( this._c1S.selectNodes( "*/member[not(@hasChildren) and ../../member[not(member)]/@_path = @_path]" ), "hasChildren", "false" );}};C_ModelCache.prototype.F_GetSearchMembers=function(_cQQ1,_c321,_c0X,_c1X){if(!_c321){alert( "F_GetMembers requires a max members parameter" );return;}var _c7B1=this._c1S.selectSingleNode("searchResult[@_path=" + _cQQ1.F_ToXPathString() + " and @descendants='" + ( _c0X?"true":"false" ) + "' and @constraints=" + (_c1X?_c1X.F_ToXPathString():"''") + "]");if(_c7B1){var _cDG=_c7B1.selectNodes("member").length;var _cS8=parseInt(_c7B1.getAttribute("maxMembers"));if(_c321<=_cS8||_cDG<_cS8){return _c7B1;}}return null;};C_ModelCache.prototype.F_CacheSearchMembersResponse=function(_cZW,_c321,_c0X,_c1X){_cZW.setAttribute("maxMembers", _c321);_cZW.setAttribute( "descendants", ( _c0X?"true":"false" ) );_cZW.setAttribute("constraints", _c1X);var n=U_XML.F_ImportNode(this._c0S, _cZW, true);this._c1S.appendChild(n);n=U_XML.F_SetNodeName(n, "searchResult");this._cE2();return n;};C_ModelCache.prototype.F_GetChildren=function(_cQQ1){return this._c5N.selectSingleNode( "*[*[@_path=" + _cQQ1.F_ToXPathString() + "]]" );};C_ModelCache.prototype.F_CacheChildrenResponse=function(_cCD){var n=U_XML.F_ImportNode(this._c0S, _cCD, true);this._c5N.appendChild(n);return n;};C_ModelCache.prototype.F_GetQueryItemParameterMap=function(_cDD){return this._cD1.selectSingleNode( "parameterMap[@name=" + _cDD.F_ToXPathString() + "]" );};C_ModelCache.prototype.F_CacheQueryItemParameterMapResponse=function(_cQ){var n=U_XML.F_ImportNode(this._c0S, _cQ, true);this._cD1.appendChild(n);return n;};C_ModelCache.prototype.F_GetModelRootResponses=function(){var nl=this._cDJ.selectNodes("*");var _cFK1=nl.length;if(_cFK1==0){return null;}var _cQA=[];for(var i=0;i<_cFK1;i++){_cQA.push(nl.item(i).cloneNode(true));}return _cQA;};C_ModelCache.prototype.F_GetModelResponses=function(_cH71){if(typeof _cH71==="undefined"&&_cH71===null){return null;}else {return this._cDJ.selectNodes(this.F_ConstructXpathForContains(_cH71)+"/*");}};C_ModelCache.prototype.F_GetDimensionalMetadataRoot=function(_cH71){var _cNO1=null;if(!_cH71){_cNO1=this._cDJ;}else {_cNO1=this._cDJ.selectSingleNode(this.F_ConstructXpathForContains(_cH71));}return _cNO1?_cNO1.selectSingleNode("*[1]"):null;};C_ModelCache.prototype.F_IsMeasureDimension=function(_cST1){return(_cST1&&_cST1.nodeName=="dimension"&&_cST1.getAttribute("type")=="measure");};C_ModelCache.prototype.F_GetDimensionalMetadata=function(_cRT1){return this._cDJ.selectSingleNode("model/*[1]//*[@_ref=" + _cRT1.F_ToXPathString() + "]");};C_ModelCache.prototype.F_CacheModelRootResponse=function(_cQA){var _cFK1=_cQA?_cQA.length:0;var _cH71=_cQA[C_ModelRootRequest.K_eResponse_MemberTreeMetadata].selectSingleNode('.//modelSearchPath').getAttribute('value');var _c2X;U_XML.F_RemoveNodes(this._cDJ, ".//"+this.F_ConstructXpathForContains(_cH71));if(this._cL5>=0){var _cT8=this._cDJ.selectNodes('*')[this._cL5];_c2X=this._cDJ.insertBefore(this._c0S.createElement("model"), _cT8);}else{_c2X=this._cDJ.appendChild(this._c0S.createElement("model"));}this._cL5=null;_c2X.setAttribute("modelPath", _cH71);if(_cFK1>0){for(var i=0;i<_cFK1;i++){var n=U_XML.F_ImportNode(this._c0S, _cQA[i], true);_c2X.appendChild(n);}this._c67=Boolean(_cQA[C_ModelRootRequest.K_eResponse_MemberTreeMetadata].selectSingleNode(".//hierarchy/@_ref"));}this._c1();this._cEC1("F_ModelCache_OnModelRootLoaded");};C_ModelCache.prototype.F_GetMemberMetadata=function(_cQQ1){var _cFJ=this.F_GetModelRootResponses()[C_ModelRootRequest.K_eResponse_MemberTreeMetadata];return _cFJ?_cFJ.selectSingleNode(".//*[@_ref=" + _cQQ1.F_ToXPathString() + "]" ):null;};C_ModelCache.prototype.F_ConstructXpathForContains=function(_cH71){return "model[contains(@modelPath,"+ _cH71.F_ToXPathString() + ")]";};C_ModelCache.prototype.F_GetSiblingHierarchyRootMembers=function(_cFR1){var _cJ71=this._cDJ.selectSingleNode( ".//hierarchy[@_ref=" + _cFR1.F_ToXPathString() + "]" );return _cJ71.selectNodes("../hierarchy/member");};C_ModelCache.prototype.F_GetRootMembersResponses=function(){var nl=this._c7D.selectNodes("*");var _cFK1=nl.length;if(_cFK1==0){return null;}var _cQA=[];for(var i=0;i<_cFK1;i++){_cQA.push(nl.item(i).cloneNode(true));}return _cQA;};C_ModelCache.prototype.F_CacheRootMembersResponse=function(_cQA){var _c3X=[];U_XML.F_RemoveNodes(this._c7D, "*");var _cFK1=_cQA?_cQA.length:0;for(var i=0;i<_cFK1;i++){var n=U_XML.F_ImportNode(this._c0S, _cQA[i], true);this._c7D.appendChild(n);_c3X.push(n);}return _c3X;};C_ModelCache.prototype.F_GetFunctionProperty=function(_c5S){var _cED=this._c6D[_c5S];if(_cED!=undefined){return _cED;}var _cQA=this.F_GetModelRootResponses();if(!_cQA){G_Debug.F_Print("F_GetFunctionProperty(" + _c5S + ") is undefined. Metadata is required.");return;}var _cFK1=_cQA.length;for(var i=0;i<_cFK1;i++){var _c421=this.F_ExtractDataFromResponses(_cQA[i], C_ModelRootRequest.K_eResponse_Operations);var _cFD=_c421.selectSingleNode(_c5S+"/@value");var _cED=_cFD?_cFD.value:"";this._c6D[_c5S]=_cED;return _cED;}};C_ModelCache.prototype.F_SupportsSuppression=function(_cGJ){var _cFC1=this._c57[_cGJ];if(_cFC1!=undefined){return _cFC1;}var _cQA=this.F_GetModelRootResponses();if(!_cQA){G_Debug.F_Print("F_SupportsSuppression(" + _cGJ + ") is undefined. Metadata is required.");return;}var _cFK1=_cQA.length;for(var i=0;i<_cFK1;i++){var _cGC1=this.F_ExtractDataFromResponses(_cQA[i], C_ModelRootRequest.K_eResponse_MemberTreeMetadata);var _cHC1=Boolean( _cGC1.selectSingleNode( ".//package[@" + _cGJ + "='false']" ) );this._c57[_cGJ]=!_cHC1;return !_cHC1;}};C_ModelCache.prototype.F_ExtractDataFromResponses=function(_cU8,_cAN){var _c4X=_cAN+1;return _cU8.selectSingleNode('/ResponseRoot['+ _c4X +']')?_cU8.selectSingleNode('/ResponseRoot['+ _c4X +']') :_cU8.selectSingleNode('/ResponseRoot') ;};C_ModelCache.prototype.F_IsCacheDrawable=function(){return(this.F_GetModelPath()&&this.F_ModelEnabled())||this._cGD;};C_ModelCache.prototype.F_SupportsOperation=function(_cK71){var _cFC1=this._cRA[_cK71];if(_cFC1!=undefined){return _cFC1;}var _cQA=this.F_GetModelRootResponses();if(!_cQA){G_Debug.F_Print("F_SupportsOperation(" + _cK71 + ") is undefined. Metadata is required.");return;}var _cFK1=_cQA.length;for(var i=0;i<_cFK1;i++){var _c421=this.F_ExtractDataFromResponses(_cQA[i], C_ModelRootRequest.K_eResponse_Operations);var _cFC1=Boolean( _c421.selectSingleNode( ".//function[@id='" + _cK71 + "' and (@qosLevel='OK' or @qosLevel='limited' or @qosLevel='restricted')]" ) );this._cRA[_cK71]=_cFC1;return _cFC1;}};C_ModelCache.prototype.F_GetModelPath=function(){return this._cF71;};C_ModelCache.prototype.F_GetModelLocale=function(){if(this._cRW){return this._cRW;}else if(G_CCHL.M_sProductLocale){return G_CCHL.M_sProductLocale;}return null;};C_ModelCache.prototype.F_GetPackageName=function(){return this._cSW;};C_ModelCache.prototype.F_GetPackagePath=function(){return this._cTW;};C_ModelCache.prototype.F_GetModificationTime=function(){return this._c5D;};C_ModelCache.prototype.F_GetRoutingServerGroup=function(){return this._cC8;};C_ModelCache.prototype.F_GetMemberDisplayCountLimit=function(){return this._cX2;};C_ModelCache.prototype.F_ModelEnabled=function(){return this._cZR;};C_ModelCache.prototype.F_ContainsHierarchies=function(){return this._c67;};C_ModelCache.prototype.F_ExtractPackagePathFromModelPath=function(_cH71){var i=_cH71?_cH71.lastIndexOf("/model"):-1;return i>=0?_cH71.substr(0, i):_cH71;};C_ModelCache.prototype.F_ExtractPackageNameFromModelPath=function(_cH71){if(typeof _cH71!=="undefined"&&_cH71!==null){var _c5X=this._cDJ.selectSingleNode(this.F_ConstructXpathForContains(_cH71)+"/ResponseRoot/package/@name");if(!_c5X){var _c6S=new RegExp("package\\[@name=[\"|']([^@.]*)[\"|']\\]");var _cCL1=_cH71.match(_c6S);if(_cCL1&&_cCL1.length==2){return _cCL1[1];}}else {return U_XML.F_GetNodeText(_c5X);}}return "";};C_ModelCache._c521 ='<Functions authoringLocale="@AUTHORING_LOCALE@">' +'<Properties>'+'<Property name="/@listSeparator"/>' +'<Property name="/@decimalSeparator"/>' +'<Property name="./group"/>' +'<Property name="group/@"/>' +'<Property name="./function"/>' +'<Property name="function/@id"/>' +'<Property name="function/@name"/>' +'<Property name="function/@qosLevel"/>' +'</Properties>'+'<Constraint Condition="FDS[@type='operation']"/>' +'</Functions>';C_ModelCache._cHJ ='<Functions authoringLocale="@AUTHORING_LOCALE@">' +'<Properties>'+'<Property name="./group"/>' +'<Property name="group/@id"/>' +'<Property name="group/@name"/>' +'<Property name="group/@qosLevel"/>' +'<Property name="./function"/>' +'<Property name="function/@id"/>' +'<Property name="function/@name"/>' +'<Property name="function/@tip"/>' +'<Property name="function/@syntax"/>' +'<Property name="function/@example.1"/>' +'<Property name="function/@result.1"/>' +'<Property name="function/@resultdata.1"/>' +'<Property name="function/@example.2"/>' +'<Property name="function/@result.2"/>' +'<Property name="function/@resultdata.2"/>' +'<Property name="function/@example.3"/>' +'<Property name="function/@result.3"/>' +'<Property name="function/@resultdata.3"/>' +'<Property name="function/@example.4"/>' +'<Property name="function/@result.4"/>' +'<Property name="function/@resultdata.4"/>' +'<Property name="function/@example.5"/>' +'<Property name="function/@result.5"/>' +'<Property name="function/@resultdata.5"/>' +'<Property name="function/@dropText"/>' +'<Property name="function/@type"/>' +'<Property name="function/@qosLevel"/>' +'<Property name="function/@datasourceQueryType"/>' +'</Properties>'+'<Constraints>'+'<Constraint Condition="FDS[@type=\'function\']"/>' +'<Constraint Condition="FDS[@type=\'operator\']"/>' +'<Constraint Condition="FDS[@type=\'literal\']"/>' +'<Constraint Condition="FDS[@type=\'summary\']"/>' +'<Constraint Condition="FDS[@context=\'tabular\']"/>' +'<Constraint Condition="FDS[@context=\'crosstab\']"/>' +'</Constraints>'+'</Functions>';C_ModelCache._cEG ='<Functions authoringLocale="@AUTHORING_LOCALE@">' +'<Properties>'+'<Property name="./group"/>' +'<Property name="group/@id"/>' +'<Property name="group/@name"/>' +'<Property name="./function"/>' +'<Property name="function/@id"/>' +'<Property name="function/@name"/>' +'<Property name="function/@tip"/>' +'<Property name="function/@syntax"/>' +'<Property name="function/@example.1"/>' +'<Property name="function/@result.1"/>' +'<Property name="function/@resultdata.1"/>' +'<Property name="function/@example.2"/>' +'<Property name="function/@result.2"/>' +'<Property name="function/@resultdata.2"/>' +'<Property name="function/@example.3"/>' +'<Property name="function/@result.3"/>' +'<Property name="function/@resultdata.3"/>' +'<Property name="function/@example.4"/>' +'<Property name="function/@result.4"/>' +'<Property name="function/@resultdata.4"/>' +'<Property name="function/@example.5"/>' +'<Property name="function/@result.5"/>' +'<Property name="function/@resultdata.5"/>' +'<Property name="function/@dropText"/>' +'<Property name="function/@type"/>' +'</Properties>'+'<Constraints>'+'<Constraint Condition="FDS[@type=\'function\']"/>' +'<Constraint Condition="FDS[@type=\'operator\']"/>' +'<Constraint Condition="FDS[@type=\'literal\']"/>' +'<Constraint Condition="FDS[@context=\'CRX\']"/>' +'</Constraints>'+'</Functions>';C_ModelCache._cHD ='<Metadata authoringLocale="@AUTHORING_LOCALE@" xml:lang="" Depth="@DEPTH@" start_atPath="@MODELPATH@" no_collections="1" _enumLabels="1">' +'<Properties>'+'<Property name="*/@name"/>' +'<Property name="*/@_path"/>' +'<Property name="*/@_ref"/>' +'<Property name="*/@isNamespace"/>' +'<Property name="*/@screenTip"/>' +'<Property name="*/@description"/>' +'<Property name="*/@calcType"/>' +'<Property name="*/@parentChild"/>' +'<Property name="*/@_IntrinsicPropertiesOff"/>' +'<Property name="./dimension"/>' +'<Property name="dimension/@type"/>' +'<Property name="./queryItem"/>' +'<Property name="queryItem/@datatype"/>' +'<Property name="queryItem/@currency"/>' +'<Property name="queryItem/@usage"/>' +'<Property name="queryItem/@regularAggregate"/>' +'<Property name="queryItem/@promptType"/>' +'<Property name="queryItem/@promptFilterItemRef"/>' +'<Property name="queryItem/@promptDisplayItemRef"/>' +'<Property name="queryItem/@promptUseItemRef"/>' +'<Property name="queryItem/@promptCascadeOnRef"/>' +'<Property name="queryItem/@unSortable"/>' +'<Property name="queryItem/@displayType"/>' +'<Property name="./calculation"/>' +'<Property name="calculation/@currency"/>' +'<Property name="calculation/@usage"/>' +'<Property name="calculation/@regularAggregate"/>' +'<Property name="calculation/@promptType"/>' +'<Property name="calculation/@promptFilterItemRef"/>' +'<Property name="calculation/@promptDisplayItemRef"/>' +'<Property name="calculation/@promptUseItemRef"/>' +'<Property name="calculation/@promptCascadeOnRef"/>' +'<Property name="calculation/@unSortable"/>' +'<Property name="calculation/@displayType"/>' +'<Property name="calculation/@calcType"/>' +'<Property name="calculation/@datatype"/>' +'<Property name="calculation/@hierarchies"/>' +'<Property name="calculation/@dimensions"/>' +'<Property name="./measure"/>' +'<Property name="measure/@datatype"/>' +'<Property name="measure/@currency"/>' +'<Property name="measure/@isHierarchical"/>' +'<Property name="measure/@regularAggregate"/>' +'<Property name="./folder"/>' +'<Property name="./measureFolder"/>' +'<Property name="./querySubject"/>' +'<Property name="./queryItemFolder"/>' +'<Property name="./queryItemFolder/@datatype"/>' +'<Property name="./filter"/>' +'<Property name="./hierarchy"/>' +'<Property name="./hierarchyFolder"/>' +'<Property name="./level"/>' +'</Properties>'+'</Metadata>';function C_ModelRootRequest(_c221, _cCB1){this._c621=_c221;var _cRG1=C_ModelRootRequest.M_sRequest;_cRG1=_cRG1.replace(/@MODEL@/g, this._c621.F_GetModelPath().replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace( "@MODELPATH@", "" );_cRG1=_cRG1.replace(/@AUTHORING_LOCALE@/g, this._c621.F_GetModelLocale().F_XMLEncode());_cRG1=_cRG1.replace( "@DEPTH@", "2" );this.F_ConstructBaseClass(_cCB1, _cRG1);};C_ModelRootRequest.F_Extends(C_MetadataRequest);C_ModelRootRequest.prototype.F_ProcessResponse=function(){C_ModelRootRequest.superClass.F_ProcessResponse.call(this);this._cV8=this.F_GetMetadataResponses();if(this._cV8){var _cW8=this._cV8[C_ModelRootRequest.K_eResponse_MemberTreeMetadata];if(_cW8){var d=_cW8.ownerDocument;var _c6X=_cW8.selectNodes(".//dimension");var _cID=_c6X.length;this._c621._c9N=true;for(var _cTT1=0;_cTT1<_cID;_cTT1++){var _cL71=_c6X.item(_cTT1);var _cUT1=_cL71.getAttribute("_ref");var nl=_cL71.selectNodes( ".//hierarchy[@multiRoot='0' and @rootCaption and @rootCaption!='' and @rootMUN and @rootMUN!='']" );var _cFK1=nl.length;for(var i=0;i<_cFK1;i++){var _cJ71=nl.item(i);var _c7X=_cJ71.getAttribute("rootCaption");var _cGH1=_cJ71.getAttribute("rootMUN");var _cDL1=_cJ71.appendChild(d.createElement("member"));_cDL1.setAttribute("memberCaption", _c7X);_cDL1.setAttribute("memberUniqueName", _cGH1);_cDL1.setAttribute("_path", _cGH1);_cDL1.setAttribute("_ref", _cGH1);_cDL1.setAttribute("dimensionUniqueName", _cUT1);_cDL1.setAttribute( "hierarchyUniqueName", _cJ71.getAttribute( "_ref" ) );var _cM71=_cJ71.selectSingleNode("level");if(_cM71){_cDL1.setAttribute( "levelUniqueName", _cM71.getAttribute( "_ref" ) );}this._c621.F_CacheMembersResponse(_cJ71, Number.POSITIVE_INFINITY);}}this._c621._c9N=false;this._c621._cE2();}}this._c621.F_CacheModelRootResponse(this._cV8);};C_ModelRootRequest.prototype.F_GetModelRootResponses=function(){return this._cV8;};C_ModelRootRequest._cX8 ='<Metadata authoringLocale="@AUTHORING_LOCALE@" xml:lang="" Depth="" start_atPath="" no_collections="1" _enumLabels="1">' +'<Properties>'+'<Property name="/@modelSearchPath"/>' +'<Property name="*/@name"/>' +'<Property name="*/@isNamespace"/>' +'<Property name="*/@screenTip"/>' +'<Property name="*/@hierarchies"/>' +'<Property name="*/@dimensions"/>' +'<Property name="*/@_ref"/>' +'<Property name="*/@_path"/>' +'<Property name="*/@usage"/>' +'<Property name="*/@description"/>' +'<Property name="./dataSource"/>' +'<Property name="dataSource/@cubeDescription"/>' +'<Property name="dataSource/@cubePath"/>' +'<Property name="dataSource/@cubeCreatedOn"/>' +'<Property name="dataSource/@cubeDataUpdatedOn"/>' +'<Property name="dataSource/@cubeSchemaUpdatedOn"/>' +'<Property name="dataSource/@cubeIsOptimized"/>' +'<Property name="dataSource/@cubeDefaultMeasure"/>' +'<Property name="dataSource/@cubeCurrentPeriod"/>' +'<Property name="./dimension"/>' +'<Property name="dimension/@type"/>' +'<Property name="dimension/@membersRollup"/>' +'<Property name="./hierarchy"/>' +'<Property name="hierarchy/@parentChild"/>' +'<Property name="hierarchy/@multiRoot"/>' +'<Property name="hierarchy/@rootCaption"/>' +'<Property name="hierarchy/@rootMUN"/>' +'<Property name="./level"/>' +'<Property name="./calculation"/>' +'<Property name="calculation/@currency"/>' +'<Property name="calculation/@usage"/>' +'<Property name="calculation/@regularAggregate"/>' +'<Property name="calculation/@promptType"/>' +'<Property name="calculation/@promptFilterItemRef"/>' +'<Property name="calculation/@promptDisplayItemRef"/>' +'<Property name="calculation/@promptUseItemRef"/>' +'<Property name="calculation/@promptCascadeOnRef"/>' +'<Property name="calculation/@unSortable"/>' +'<Property name="calculation/@displayType"/>' +'<Property name="calculation/@calcType"/>' +'<Property name="./folder"/>' +'<Property name="./hierarchyFolder"/>' +'<Property name="./package"/>' +'<Property name="package/@isAccessToNullSuppressionOptionsAllowed"/>' +'<Property name="package/@isMultiEdgeNullSuppressionAllowed"/>' +'<Property name="package/@isNullSuppressionAllowed"/>' +'</Properties>'+'</Metadata>';C_ModelCache._cIJ ='<Functions authoringLocale="@AUTHORING_LOCALE@">' +'<Properties>'+'<Property name="./group"/>' +'<Property name="group/@id"/>' +'<Property name="group/@name"/>' +'<Property name="group/@qosLevel"/>' +'<Property name="./function"/>' +'<Property name="function/@id"/>' +'<Property name="function/@name"/>' +'<Property name="function/@tip"/>' +'<Property name="function/@syntax"/>' +'<Property name="function/@example.1"/>' +'<Property name="function/@result.1"/>' +'<Property name="function/@resultdata.1"/>' +'<Property name="function/@example.2"/>' +'<Property name="function/@result.2"/>' +'<Property name="function/@resultdata.2"/>' +'<Property name="function/@example.3"/>' +'<Property name="function/@result.3"/>' +'<Property name="function/@resultdata.3"/>' +'<Property name="function/@example.4"/>' +'<Property name="function/@result.4"/>' +'<Property name="function/@resultdata.4"/>' +'<Property name="function/@example.5"/>' +'<Property name="function/@result.5"/>' +'<Property name="function/@resultdata.5"/>' +'<Property name="function/@dropText"/>' +'<Property name="function/@type"/>' +'<Property name="function/@qosLevel"/>' +'<Property name="function/@datasourceQueryType"/>' +'</Properties>'+'<Constraints>'+'<Constraint Condition="FDS[@context=\'macro\']"/>' +'</Constraints>'+'</Functions>';C_ModelCache._cO5 ='<Metadata authoringLocale="@AUTHORING_LOCALE@" xml:lang="" Depth="2" start_atPath="" no_collections="1" _enumLabels="1">' +'<Properties>'+'<Property name="*/@name"/>' +'<Property name="*/@hidden"/>' +'<Property name="parameterMapEntry/@key"/>' +'<Property name="parameterMapEntry/@value"/>' +'<Property name="./folder"/>' + '<Property name="./queryItemMap"/>' +'<Property name="./parameterMap"/>' +'<Property name="./parameterMapEntry"/>' + '</Properties>'+'</Metadata>';C_ModelRootRequest.M_sRequest ='<metadataRequest connection="@MODEL@">' +C_ModelRootRequest._cX8+C_ModelCache._c521+C_ModelCache._cHD+C_ModelCache._cHJ+C_ModelCache._cEG+C_ModelCache._cIJ+C_ModelCache._cO5+'</metadataRequest>';C_ModelRootRequest.K_eResponse_MemberTreeMetadata=0;C_ModelRootRequest.K_eResponse_Operations=1;C_ModelRootRequest.K_eResponse_MetadataRoot=2;C_ModelRootRequest.K_eResponse_QueryFunctions=3;C_ModelRootRequest.K_eResponse_ReportFunctions=4;C_ModelRootRequest.K_eResponse_MacroFunctions=5;C_ModelRootRequest.K_eResponse_MetadataParameterMap=6;function C_MembersRequest(_c221, _cCB1, _cRT1, _c321, _cH71){this._c621=_c221;if(!_cH71){_cH71=this._c621.F_GetPackagePath();}if(!_c321){alert( "C_MembersRequest requires a max members parameter" );return;}this._c721=_c321;this._c8X=null;var _cRG1=C_MembersRequest.M_sRequest.replace(/@MODEL@/g, _cH71.replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace(/@MODELPATH@/g, _cRT1.replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace("@AUTHORING_LOCALE@", this._c621.F_GetModelLocale().F_XMLEncode());_cRG1=_cRG1.replace("@RESULTCOUNT@", this._c721);this.F_ConstructBaseClass(_cCB1, _cRG1);};C_MembersRequest.F_Extends(C_MetadataRequest);C_MembersRequest.prototype.F_ProcessResponse=function(){C_MembersRequest.superClass.F_ProcessResponse.call(this);var _cJD=this.F_GetMetadataResponse();if(_cJD){var _cZW=_cJD.selectSingleNode( "member | level | hierarchy | dimension" );if(_cZW){this._c8X=this._c621.F_CacheMembersResponse(_cZW, this._c721);}}};C_MembersRequest.prototype.F_GetMembersResponse=function(){return this._c8X;};C_MembersRequest.M_sRequest ='<metadataRequest connection="@MODEL@">' +'<Metadata authoringLocale="@AUTHORING_LOCALE@" xml:lang="" Depth="2" start_atRef="@MODELPATH@" ResultStart="0" ResultCount="@RESULTCOUNT@">' +'<Properties>'+'<Property name="./@_RootMembers"/>' +'<Property name="*/@name"/>' +'<Property name="*/@_path"/>' +'<Property name="*/@_ref"/>' +'<Property name="*/@dimensionUniqueName"/>' +'<Property name="*/@hierarchyUniqueName"/>' +'<Property name="*/@levelUniqueName"/>' +'<Property name="*/@memberUniqueName"/>' +'<Property name="*/@memberCaption"/>' +'<Property name="*/@levelNumber"/>' +'<Property name="*/@levelLabel"/>' +'<Property name="*/@parentUniqueName"/>' +'<Property name="*/@currencyCode"/>' +'<Property name="*/@_IntrinsicPropertiesOff"/>' +'<Property name="*/@parentChild"/>' +'<Property name="./folder"/>' +'<Property name="./dimension"/>' +'<Property name="./hierarchy"/>' +'<Property name="./hierarchyFolder"/>' +'<Property name="./level"/>' +'<Property name="./member"/>' +'</Properties>'+'</Metadata>'+'</metadataRequest>';function C_ChildrenMetadataRequest(_c221, _cCB1, _cQQ1, _cH71){this._c621=_c221;this._cKD=null;if(!_cH71){_cH71=this._c621.F_GetPackagePath();}var _cRG1=C_ChildrenMetadataRequest.M_sRequest;_cRG1=_cRG1.replace(/@MODEL@/g, _cH71.replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace("@AUTHORING_LOCALE@", this._c621.F_GetModelLocale().F_XMLEncode());_cRG1=_cRG1.replace(/@MODELPATH@/g, _cQQ1.replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace( "@DEPTH@", "2" );this.F_ConstructBaseClass(_cCB1, _cRG1);};C_ChildrenMetadataRequest.F_Extends(C_MetadataRequest);C_ChildrenMetadataRequest.prototype.F_ProcessResponse=function(){C_ChildrenMetadataRequest.superClass.F_ProcessResponse.call(this);var _cCD=this.F_GetMetadataResponse();if(_cCD){this._cKD=this._c621.F_CacheChildrenResponse(_cCD);}};C_ChildrenMetadataRequest.prototype.F_GetChildrenResponse=function(){return this._cKD;};function C_AllChildrenMetadataRequest(_c221, _cCB1, _cQQ1){this._c621=_c221;this._cKD=null;var _cRG1=C_ChildrenMetadataRequest.M_sRequest;_cRG1=_cRG1.replace(/@MODEL@/g, this._c621.F_GetModelPath().replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace(/@MODELPATH@/g, _cQQ1.replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace("@AUTHORING_LOCALE@", this._c621.F_GetModelLocale().F_XMLEncode());_cRG1=_cRG1.replace( "@DEPTH@", "" );this.F_ConstructBaseClass(_cCB1, _cRG1);};C_AllChildrenMetadataRequest.F_Extends(C_MetadataRequest);C_AllChildrenMetadataRequest.prototype.F_ProcessResponse=function(){C_AllChildrenMetadataRequest.superClass.F_ProcessResponse.call(this);this._cKD=this.F_GetMetadataResponse();};C_AllChildrenMetadataRequest.prototype.F_GetChildrenResponse=function(){return this._cKD;};C_ChildrenMetadataRequest.M_sRequest ='<metadataRequest connection="@MODEL@">' +C_ModelCache._cHD+'</metadataRequest>';function C_LevelMetadataRequest(_c221, _cCB1, _cQQ1, _cH71){this._c621=_c221;this._cKD=null;if(!_cH71){_cH71=this._c621.F_GetPackagePath();}var _cRG1=C_LevelMetadataRequest.M_sRequest;_cRG1=_cRG1.replace(/@MODEL@/g, _cH71.replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace(/@MODELPATH@/g, _cQQ1.replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace("@AUTHORING_LOCALE@", this._c621.F_GetModelLocale().F_XMLEncode());this.F_ConstructBaseClass(_cCB1, _cRG1);};C_LevelMetadataRequest.F_Extends(C_MetadataRequest);C_LevelMetadataRequest.prototype.F_ProcessResponse=function(){C_LevelMetadataRequest.superClass.F_ProcessResponse.call(this);var _cCD=this.F_GetMetadataResponse();if(_cCD){this._cKD=this._c621.F_CacheChildrenResponse(_cCD);}};C_LevelMetadataRequest.prototype.F_GetChildrenResponse=function(){return this._cKD;};C_LevelMetadataRequest.M_sRequest ='<metadataRequest connection="@MODEL@">' +'<Metadata authoringLocale="@AUTHORING_LOCALE@" xml:lang="" Depth="2" start_atPath="@MODELPATH@" no_collections="1" _enumLabels="1">' +'<Properties>'+'<Property name="*/@name"/>' +'<Property name="*/@_path"/>' +'<Property name="*/@_ref"/>' +'<Property name="*/@isNamespace"/>' +'<Property name="*/@screenTip"/>' +'<Property name="*/@description"/>' +'<Property name="*/@calcType"/>' +'<Property name="*/@parentChild"/>' +'<Property name="*/@_IntrinsicPropertiesOff"/>' +'<Property name="./queryItem"/>' +'<Property name="queryItem/@datatype"/>' +'<Property name="queryItem/@currency"/>' +'<Property name="queryItem/@usage"/>' +'<Property name="queryItem/@regularAggregate"/>' +'<Property name="queryItem/@promptType"/>' +'<Property name="queryItem/@promptFilterItemRef"/>' +'<Property name="queryItem/@promptDisplayItemRef"/>' +'<Property name="queryItem/@promptUseItemRef"/>' +'<Property name="queryItem/@promptCascadeOnRef"/>' +'<Property name="queryItem/@unSortable"/>' +'<Property name="queryItem/@displayType"/>' +'<Property name="./calculation"/>' +'<Property name="calculation/@currency"/>' +'<Property name="calculation/@usage"/>' +'<Property name="calculation/@regularAggregate"/>' +'<Property name="calculation/@promptType"/>' +'<Property name="calculation/@promptFilterItemRef"/>' +'<Property name="calculation/@promptDisplayItemRef"/>' +'<Property name="calculation/@promptUseItemRef"/>' +'<Property name="calculation/@promptCascadeOnRef"/>' +'<Property name="calculation/@unSortable"/>' +'<Property name="calculation/@displayType"/>' +'<Property name="calculation/@calcType"/>' +'<Property name="./measure"/>' +'<Property name="measure/@isHierarchical"/>' +'<Property name="./dimension"/>' +'<Property name="dimension/@type"/>' +'<Property name="./folder"/>' +'<Property name="./measureFolder"/>' +'<Property name="./querySubject"/>' +'<Property name="./queryItemFolder"/>' +'<Property name="./queryItemFolder/@datatype"/>' +'<Property name="./filter"/>' +'<Property name="./hierarchy"/>' +'<Property name="./hierarchyFolder"/>' +'<Property name="./level"/>' +'</Properties>'+'</Metadata>'+'</metadataRequest>';function C_MembersSearchRequest(_c221, _cCB1, _cQQ1, _c321, _c0X, _c1X){this._c621=_c221;if(!_c321){alert( "C_MembersSearchRequest requires a max members parameter" );return;}this._c721=_c321;this._c9X=Boolean(_c0X);this._cAX=_c1X;var _cRG1=C_MembersSearchRequest.M_sRequest.replace(/@MODEL@/g, _c221.F_GetModelPath().replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace(/@MODELPATH@/g, _cQQ1.replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace("@AUTHORING_LOCALE@", _c221.F_GetModelLocale().F_XMLEncode());_cRG1=_cRG1.replace("@RESULTCOUNT@", this._c721);_cRG1=_cRG1.replace( "@CONSTRAINTS@", _c1X?_c1X:"" );_cRG1=_cRG1.replace( "@DEPTH@", _c0X?"":"2" );if(_c0X){_cRG1=_cRG1.replace( '<Property name="./@_RootMembers"/>', "" );}this._cJJ=null;this.F_ConstructBaseClass(_cCB1, _cRG1);};C_MembersSearchRequest.F_Extends(C_MetadataRequest);C_MembersSearchRequest.prototype.F_ProcessResponse=function(){C_MembersSearchRequest.superClass.F_ProcessResponse.call(this);var _cJD=this.F_GetMetadataResponse();if(_cJD){var _cKJ=_cJD.selectSingleNode( "member | level | hierarchy | dimension" );if(_cKJ){this._cJJ=this._c621.F_CacheSearchMembersResponse(_cKJ, this._c721, this._c9X, this._cAX);}}};C_MembersSearchRequest.prototype.F_GetSearchResponse=function(){return this._cJJ;};C_MembersSearchRequest.M_sRequest ='<metadataRequest connection="@MODEL@">' +'<Metadata authoringLocale="@AUTHORING_LOCALE@" xml:lang="" Depth="@DEPTH@" start_atPath="@MODELPATH@" ResultStart="0" ResultCount="@RESULTCOUNT@">' +'<Properties>'+'<Property name="./@_RootMembers"/>' +'<Property name="*/@name"/>' +'<Property name="*/@_path"/>' +'<Property name="*/@_ref"/>' +'<Property name="*/@dimensionUniqueName"/>' +'<Property name="*/@hierarchyUniqueName"/>' +'<Property name="*/@levelUniqueName"/>' +'<Property name="*/@memberUniqueName"/>' +'<Property name="*/@memberCaption"/>' +'<Property name="*/@levelNumber"/>' +'<Property name="*/@levelLabel"/>' +'<Property name="*/@parentUniqueName"/>' +'<Property name="*/@currencyCode"/>' +'<Property name="*/@_IntrinsicPropertiesOff"/>' +'<Property name="*/@parentChild"/>' +'<Property name="./folder"/>' +'<Property name="./dimension"/>' +'<Property name="./hierarchy"/>' +'<Property name="./hierarchyFolder"/>' +'<Property name="./level"/>' +'<Property name="./member"/>' +'</Properties>'+'@CONSTRAINTS@'+'</Metadata>'+'</metadataRequest>';function C_MeasuresSearchRequest(_c221, _cCB1, _cQQ1, _cBX, _c0X, _c1X){if(!_cBX){alert( "C_MembersSearchRequest requires a max members parameter" );return;}this._c9X=Boolean(_c0X);var _cRG1=C_MeasuresSearchRequest.M_sRequest.replace(/@MODEL@/g, _c221.F_GetModelPath().replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace(/@MODELPATH@/g, _cQQ1.replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace("@AUTHORING_LOCALE@", _c221.F_GetModelLocale().F_XMLEncode());_cRG1=_cRG1.replace("@RESULTCOUNT@", this._cCX);_cRG1=_cRG1.replace( "@CONSTRAINTS@", _c1X?_c1X:"" );_cRG1=_cRG1.replace( "@DEPTH@", _c0X?"":"2" );this.F_ConstructBaseClass(_cCB1, _cRG1);};C_MeasuresSearchRequest.F_Extends(C_MetadataRequest);C_MeasuresSearchRequest.prototype.F_ProcessResponse=function(){C_MeasuresSearchRequest.superClass.F_ProcessResponse.call(this);this._cJJ=null;var _c7S=this.F_GetMetadataResponse();if(_c7S){this._cJJ=_c7S.cloneNode(false);var _cST1=_c7S.selectSingleNode("dimension");if(_cST1){var _cIC1=this._cJJ.appendChild(_cST1.cloneNode(false));var _cN71=_c7S.selectNodes(".//measure");for(var i=0;i<_cN71.length;i++){_cIC1.appendChild(_cN71.item(i).cloneNode(false));}}}};C_MeasuresSearchRequest.prototype.F_GetSearchResponse=function(){return this._cJJ;};C_MeasuresSearchRequest.M_sRequest ='<metadataRequest connection="@MODEL@">' +'<Metadata authoringLocale="@AUTHORING_LOCALE@" xml:lang="" Depth="@DEPTH@" start_atPath="@MODELPATH@" no_collections="1" _enumLabels="1">' +'<Properties>'+'<Property name="*/@name"/>' +'<Property name="*/@_path"/>' +'<Property name="*/@_ref"/>' +'<Property name="*/@isNamespace"/>' +'<Property name="*/@screenTip"/>' +'<Property name="*/@description"/>' +'<Property name="*/@parentChild"/>' +'<Property name="*/@_IntrinsicPropertiesOff"/>' +'<Property name="./dimension"/>' +'<Property name="dimension/@type"/>' +'<Property name="./queryItem"/>' +'<Property name="queryItem/@datatype"/>' +'<Property name="queryItem/@currency"/>' +'<Property name="queryItem/@usage"/>' +'<Property name="queryItem/@regularAggregate"/>' +'<Property name="queryItem/@promptType"/>' +'<Property name="queryItem/@promptFilterItemRef"/>' +'<Property name="queryItem/@promptDisplayItemRef"/>' +'<Property name="queryItem/@promptUseItemRef"/>' +'<Property name="queryItem/@promptCascadeOnRef"/>' +'<Property name="queryItem/@unSortable"/>' +'<Property name="queryItem/@displayType"/>' +'<Property name="./calculation"/>' +'<Property name="calculation/@currency"/>' +'<Property name="calculation/@usage"/>' +'<Property name="calculation/@regularAggregate"/>' +'<Property name="calculation/@promptType"/>' +'<Property name="calculation/@promptFilterItemRef"/>' +'<Property name="calculation/@promptDisplayItemRef"/>' +'<Property name="calculation/@promptUseItemRef"/>' +'<Property name="calculation/@promptCascadeOnRef"/>' +'<Property name="calculation/@unSortable"/>' +'<Property name="calculation/@displayType"/>' +'<Property name="calculation/@calcType"/>' +'<Property name="./measure"/>' +'<Property name="measure/@isHierarchical"/>' +'<Property name="measure/@datatype"/>' +'<Property name="measure/@currency"/>' +'<Property name="measure/@regularAggregate"/>' +'<Property name="./folder"/>' +'<Property name="./measureFolder"/>' +'<Property name="./querySubject"/>' +'<Property name="./queryItemFolder"/>' +'<Property name="./queryItemFolder/@datatype"/>' +'<Property name="./filter"/>' +'<Property name="./hierarchy"/>' +'<Property name="./hierarchyFolder"/>' +'<Property name="./level"/>' +'</Properties>'+'@CONSTRAINTS@'+'</Metadata>'+'</metadataRequest>';function C_QueryItemParameterMapMetadataRequest(_c221, _cCB1, _cDD){this._c621=_c221;this._cR=null;var _cRG1=C_QueryItemParameterMapMetadataRequest.M_sRequest;_cRG1=_cRG1.replace(/@MODEL@/g, this._c621.F_GetModelPath().replace(/\$/g, "$$$$").F_XMLEncode());_cRG1=_cRG1.replace("@QUERYITEM_PARAMETER_MAP@", _cDD.F_XMLEncode());_cRG1=_cRG1.replace("@AUTHORING_LOCALE@", this._c621.F_GetModelLocale().F_XMLEncode());this.F_ConstructBaseClass(_cCB1, _cRG1);};C_QueryItemParameterMapMetadataRequest.F_Extends(C_MetadataRequest);C_QueryItemParameterMapMetadataRequest.prototype.F_ProcessResponse=function(){C_QueryItemParameterMapMetadataRequest.superClass.F_ProcessResponse.call(this);var _cQ=this.F_GetMetadataResponse();if(_cQ){this._cR=this._c621.F_CacheQueryItemParameterMapResponse(_cQ);}};C_QueryItemParameterMapMetadataRequest.prototype.F_GetQueryItemParameterMapResponse=function(){return this._cR;};C_QueryItemParameterMapMetadataRequest.M_sRequest ='<metadataRequest connection="@MODEL@">' +'<Metadata authoringLocale="@AUTHORING_LOCALE@" Depth="2" start_atPath="">' +'<Properties>'+'<Property name="queryItemMapEntry/@key"/>' +'<Property name="queryItemMapEntry/@value"/>' +'<Property name="./queryItemMapEntry"/>' + '</Properties>'+'<Constraints>'+'<Constraint Condition="[@name=\'@QUERYITEM_PARAMETER_MAP@\']"/>' +'</Constraints>'+'</Metadata>'+'</metadataRequest>';C_ModelCache.prototype.F_GetAncestorInfo=function(_cVT1,_cJC1){return this._cSA[_cVT1+" " + _cJC1];};C_ModelCache.prototype._cLD=function(_cVT1,_cJC1,_cDX,_cFG){var _c8S={};_c8S.M_sMUN=_cDX;_c8S.M_sMemberCaption=_cFG;this._cSA[_cVT1+" " + _cJC1] = _c8S;return _c8S;};function C_MemberAncestorRequest(_c221, _cCB1, _cVT1, _cWT1, _cJC1, _cPO1, _cBN){this._c621=_c221;this._cXT1=_cVT1;this._cKC1=_cJC1;var _c9S=_cVT1;for(var i=0; i<_cJC1;++i){_c9S="parent(" + _c9S + ")";}var _cCN=G_ResManager.F_GetResource("CCHL_ReportAncestor").text;_cCN=_cCN.replace("@XMLNS@", G_CCHL.M_sRSPECNamespaceOut);_cCN=_cCN.replace(/@MODEL@/g, this._c621.F_GetModelPath().replace(/\$/g, "$$$$").F_XMLEncode());_cCN=_cCN.replace("@ANCESTOREXPR@", _c9S.F_XMLEncode());var d=G_ReportSpec.F_LoadReportXML(_cCN);var _cDN=d.documentElement;var _cQO1=_cDN.selectSingleNode(".//query");var _cXA=_cQO1.getAttribute("name");if(_cXA!=_cPO1){_cQO1.setAttribute("name", _cPO1);U_XML.F_SetAttributeValues( _cDN.selectNodes(".//*[@refQuery=" + _cXA.F_ToXPathString() + "]/@refQuery"), _cPO1 ); }var _cLC1=_cQO1.selectSingleNode("selection/*[@name='ancestor']");U_QuerySpec.F_AddHierarchyMetadata(_cLC1, _cWT1);this.F_ConstructBaseClass(_cCB1, U_Report.F_GetXML(_cDN), null, "XHTML", undefined, _cBN);};C_MemberAncestorRequest.F_Extends(C_RunReportRequest);C_MemberAncestorRequest.prototype._cAS=function(){return 'V5html_viewer.xsl';};C_MemberAncestorRequest.prototype._cLJ=function(){return '<item xsi:type="bus:genericOptionBoolean">' +'<bus:name xsi:type="xsd:string">http://developer.cognos.com/ceba/constants/runOptionEnum#optimizedOutputContextData</bus:name>' +'<bus:value xsi:type="xsd:boolean">true</bus:value>' +'</item>';};C_MemberAncestorRequest.prototype.F_ProcessResponse=function(){C_MemberAncestorRequest.superClass.F_ProcessResponse.call(this);var _cNT1=this.F_GetReportOutput();if(_cNT1){var d=U_XML.F_LoadString(null, _cNT1);if(!d){this.F_SetNewErrorRes("IDS_CCHL_BAD_ANCESTOR_RESPONSE", _cNT1);return;}d.setProperty( "SelectionNamespaces", "xmlns:xx='http://developer.cognos.com/schemas/xmldata/1/'" );var _cGR1=d.documentElement;var _cRO1=_cGR1.selectSingleNode(".//table/tr/td/span[@ctx]");if(_cRO1){var _cYT1=_cRO1.getAttribute("ctx");var _cMC1=U_XML.F_GetNodeText(_cGR1.selectSingleNode("head/metaData"));var _cHH1=U_XML.F_GetNodeText(_cGR1.selectSingleNode("head/ctxData"));var _cIH1=_cHH1?new C_ReportOutputContext(_cHH1, new C_ReportOutputMetadataContext(_cMC1)):null;var _cDX=_cIH1.F_GetMemberUniqueName(_cYT1);var _cFG=_cIH1.F_GetUseValue(_cYT1);this._cBS=this._c621._cLD(this._cXT1, this._cKC1, _cDX, _cFG);}else{this._cBS=this._c621._cLD(this._cXT1, this._cKC1, null, null);}}};C_MemberAncestorRequest.prototype.F_GetAncestorInfo=function(){return this._cBS;};
|