/* *+------------------------------------------------------------------------+ *| Licensed Materials - Property of IBM *| *| IBM Cognos Products: PS *| *| (C) Copyright IBM Corp. 2011 *| *| US Government Users Restricted Rights - Use, duplication or *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *| *+------------------------------------------------------------------------+ */ function C_XmlSerializer(n){ this.m_nRoot=n; }; C_XmlSerializer.prototype.F_ToString=function(){ var d=this.m_nRoot.nodeType==U_XML.K_iNODE_DOCUMENT?this.m_nRoot:this.m_nRoot.ownerDocument; if(d.m_oHALDefaultAttributeLookup){ this.m_oElements=d.m_oHALDefaultAttributeLookup; }else{ this.m_oElements=C_XmlSerializer.F_ParseDefaultAttributes(d); d.m_oHALDefaultAttributeLookup=this.m_oElements; } this.m_oStringStream=new C_StringStream(); this.f_serialize(this.m_nRoot); return this.m_oStringStream.F_ToString(); }; C_XmlSerializer.prototype.f_serializeElement=function(n){ var _1=n.nodeName; var _2=this.m_oElements[_1]; this.m_oStringStream.F_Write("<"); this.m_oStringStream.F_Write(_1); var nl=n.attributes; var _3=nl.length; for(var i=0;i<_3;i++){ var _4=nl.item(i); var _5=_4.name; var _6=_4.value; if(_2&&_2[_5]&&(_2[_5]===_6)){ continue; } this.m_oStringStream.F_Write(" "); this.m_oStringStream.F_Write(_5); this.m_oStringStream.F_Write("=\""); this.m_oStringStream.F_Write(this.f_encodeAttributeValue(_6)); this.m_oStringStream.F_Write("\""); } var nl=n.selectNodes("* | text() | comment()"); var _3=nl.length; this.f_writeOpeningTagCloseBracket(_1,_3); for(var i=0;i<_3;i++){ var _7=nl.item(i); this.f_serialize(_7); } this.f_writeClosingTag(_1,_3); }; C_XmlSerializer.prototype.f_serialize=function(n){ switch(n.nodeType){ case U_XML.K_iNODE_TEXT: this.m_oStringStream.F_Write(this.f_encode(n.nodeValue)); break; case U_XML.K_iNODE_COMMENT: this.m_oStringStream.F_Write(""); break; case U_XML.K_iNODE_CDATA_SECTION: this.m_oStringStream.F_Write("<"+"![CDATA["); this.m_oStringStream.F_Write(n.nodeValue); this.m_oStringStream.F_Write("]"+"]>"); break; default: this.f_serializeElement(n); } }; C_XmlSerializer.prototype.f_encode=function(s){ return s.F_XMLEncode(); }; C_XmlSerializer.prototype.f_encodeAttributeValue=function(s){ return s.F_XMLEncode(); }; C_XmlSerializer.prototype.f_writeOpeningTagCloseBracket=function(_8,_9){ this.m_oStringStream.F_Write((_9>0)?">":"/>"); }; C_XmlSerializer.prototype.f_writeClosingTag=function(_a,_b){ if(_b>0){ this.m_oStringStream.F_Write(""); } }; C_XmlSerializer.F_ParseDefaultAttributes=function(d){ var _c={}; if(!d.doctype){ return _c; } var _d=d.doctype.xml.split(""); var a3=a2[0].split(/\r?\n/); if(a3.length>1){ var _f=a3[0]; var o={}; for(var j=0;j"+""+""; for(var i=0;i<_1e;++i){ var _20=new C_BusRequest(null,C_BusRequest.K_sSOAPAction_reportService_control,_1f); _20.m_bAsync=false; _20.F_Send(); } }; C_BusRequest.prototype.F_GetResponse=function(){ return this.m_docResponse; }; C_BusRequest.prototype.F_IsPrompting=function(){ return this.m_bIsPrompting; }; C_BusRequest.prototype.F_IsLoggingOn=function(){ return this.m_bIsLoggingOn; }; C_BusRequest.prototype.F_SetLocale=function(_21,_22){ this.m_sProductLocale=_21; this.m_sContentLocale=_22; }; C_BusRequest.prototype.F_SetNoResponseProcessing=function(){ this.m_bProcessResponse=false; }; C_BusRequest.prototype.F_SetNoServerPrompting=function(){ this.m_bServerPrompting=false; }; C_BusRequest.prototype.F_SetRoutingServerGroup=function(_23){ this.m_sRoutingServerGroup=_23; }; C_BusRequest.prototype.F_SetUseDefaultRoutingServerGroup=function(_24){ this.m_bUseDefaultRoutingServerGroup=_24; }; C_BusRequest.prototype.F_SetAsyncBusRequest=function(_25,_26,_27,_28,_29){ this.m_bAsyncBusRequest=true; this.m_sWaitMethod=_25; this.m_sCancelMethod=_26; this.m_sGetOutputMethod=_27; this.m_sFollowOnRequestSOAPAction=_28?_28:this.m_sFollowOnRequestSOAPAction; this.m_sCancelRequestSOAPAction=_29?_29:this.m_sCancelRequestSOAPAction; }; C_BusRequest.prototype.F_SetPromptReport=function(_2a){ this.m_sPromptReport=_2a; }; C_BusRequest.F_CreateContext=function(_2b){ var _2c={}; _2c.m_eType=_2b; return _2c; }; C_BusRequest.K_sSOAPAction_reportService="http://developer.cognos.com/schemas/reportService/1"; C_BusRequest.K_sSOAPAction_reportService_high="http://developer.cognos.com/schemas/reportService/1.high"; C_BusRequest.K_sSOAPAction_reportService_absolute="http://developer.cognos.com/schemas/reportService/1.absolute"; C_BusRequest.K_sSOAPAction_reportService_session="http://developer.cognos.com/schemas/reportService/1.session"; C_BusRequest.K_sSOAPAction_reportService_control="http://developer.cognos.com/schemas/reportService/1.session"; C_BusRequest.K_sSOAPAction_contentManagerService="http://developer.cognos.com/schemas/bibus/3#contentManagerService"; C_BusRequest.K_sSOAPAction_systemService="http://developer.cognos.com/schemas/bibus/3#systemService"; C_BusRequest.k_sBIBusNamespace="http://developer.cognos.com/schemas/bibus/3"; C_BusRequest.k_sBIBusNamespaceDecl="xmlns:bus='"+C_BusRequest.k_sBIBusNamespace+"/'"; C_BusRequest.k_sBIBusRNSNamespaceDecl="xmlns:rns1='http://developer.cognos.com/schemas/reportService/1'"; C_BusRequest.prototype.F_AddNamespace=function(_2d){ this.m_aNamespaces.push(_2d); }; C_BusRequest.prototype.F_Send=function(){ this.f_sendSoapRequest(this.f_createSoapRequest(this.m_sRequest,this.m_sProductLocale,this.m_sContentLocale),this.m_sRequestSoapAction); }; C_BusRequest.prototype.f_sendSoapRequest=function(_2e,_2f){ C_BusRequest.m_sLastRequest=_2e; C_BusRequest.m_sLastResponse=""; this.F_SetSoapAction(_2f); this.F_SetRequestBody(_2e); C_BusRequest.superClass.F_Send.call(this); }; C_BusRequest.prototype.F_IsReadyToProcess=function(){ if(!C_BusRequest.superClass.F_IsReadyToProcess.call(this)){ return false; } delete this.m_oFollowOnState; if(this.F_GetError()){ return !this.m_bPendingAbort; } var _30=this.F_GetResponseText(); var _31=U_XML.F_LoadString(null,_30,false,true); this.m_docResponse=_31; if(!_31||!_31.documentElement){ return !this.m_bPendingAbort; } this.m_docResponse.setProperty("SelectionNamespaces","xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' "+this.m_aNamespaces.join(" ")); C_BusRequest.m_sLastResponse=_31.xml; var _32=_31.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/SOAP-ENV:Fault"); if(_32&&!this.m_bPendingAbort){ if(this.m_bServerPrompting&&this.m_oListener&&G_BusServer.F_AuthenticationRequired(_31)){ this.m_bLoggingOn=true; if(G_BusServer.F_Logon(this,_31)){ delete this.m_docResponse; return false; } this.m_bLoggingOn=false; this.F_SetNewErrorRes("IDS_CCHL_INITIATE_LOGON_FAILED"); } return true; } var _33=_31.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Header/bus:biBusHeader/bus:tracking"); if(_33){ var _34=_33.xml; if(this.m_bPendingAbort){ this.m_bPendingAbort=false; var _35=(_31.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result[bus:status='working' or bus:status='stillWorking']")!=null); this.m_oFollowOnState=this.f_createFollowOnState(_31,_34,_35); this.F_Abort(); return false; } C_BusRequest.m_aBusTracking.push(_34); if(this.m_bAsyncBusRequest){ if(_31.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result[bus:status='complete'][bus:details/item/bus:status='responseReady']")){ delete this.m_docResponse; this.f_sendFollowOnRequest(this.m_sGetOutputMethod,_31,_34,false); return false; }else{ if(_31.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result[bus:status='working' or bus:status='stillWorking']")){ delete this.m_docResponse; this.f_sendFollowOnRequest(this.m_sWaitMethod,_31,_34,true); return false; } } } } if(this.m_bPendingAbort){ this.f_forcePendingAbortOnClient(); return false; } if(this.m_bServerPrompting&&this.m_oListener&&G_BusServer.F_RequiresServerPrompting(_31)){ this.m_bIsPrompting=true; if(G_BusServer.F_DoPrompting(this,_31,this.m_sPromptReport)){ delete this.m_docResponse; return false; } this.m_bIsPrompting=false; this.F_SetNewErrorRes("IDS_CCHL_INITIATE_SERVERPROMTING_FAILED"); return true; } return true; }; C_BusRequest.prototype.F_ProcessResponse=function(){ C_BusRequest.superClass.F_ProcessResponse.call(this); if(this.F_GetError()){ this.m_docResponse=null; return; } if(this.m_docResponse&&this.m_docResponse.documentElement){ var _36=this.m_docResponse.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/SOAP-ENV:Fault"); if(_36){ this.F_SetError(new C_BusSoapFault(this.m_docResponse)); this.m_docResponse=null; } }else{ var _37=[]; var _38=this.F_GetResponseText(); if(_38){ _37.push(_38); }else{ _37.push(G_ResManager.F_GetString("IDS_CCHL_HTTP_UNKNOWN_RESPONSE")); _37.push("\r\n"); _37.push("Gateway URL: "+G_CCHL.M_sGatewayURL); _37.push("Document URL: "+document.URL); var _39=this.F_GetStatusText(); if(_39){ _37.push("HTTP Status Text: "+_39); } } this.m_docResponse=null; this.F_SetNewErrorRes("IDS_CCHL_XMLHTTPERROR",_37.join("\r\n")); } }; C_BusRequest.prototype.f_sendFollowOnRequest=function(_3a,_3b,_3c,_3d){ G_Debug.F_Print("C_BusRequest.f_sendFollowOnRequest : "+_3a); this.m_oFollowOnState=this.f_createFollowOnState(_3b,_3c,_3d); var _3e="<"+_3a+">"+""+this.m_oFollowOnState.m_sConversation+""+""+""+""; this.f_sendSoapRequest(this.f_createSoapRequest(_3e,this.m_sProductLocale,this.m_sContentLocale),this.m_sFollowOnRequestSOAPAction); }; C_BusRequest.prototype.F_Abort=function(){ if(this.m_bAsyncBusRequest&&!this.m_oFollowOnState&&!this.m_bCompleted){ G_Debug.F_Print("C_BusRequest pending abort"); this.m_bPendingAbort=true; var _3f=this; setTimeout(function(){ _3f.f_forcePendingAbortOnClient(); },10000); if(this.m_oListener&&this.m_oListener.F_Request_OnAborted){ this.m_oListener.F_Request_OnAborted(this); } return; } C_BusRequest.superClass.F_Abort.call(this); if(this.m_oFollowOnState&&this.m_oFollowOnState.m_bCancellable){ this.f_cancelRequest(); } }; C_BusRequest.prototype.f_forcePendingAbortOnClient=function(){ if(this.m_bPendingAbort){ G_Debug.F_Print("C_BusRequest pending abort forced on client"); this.m_bCompleted=true; this.m_bPendingAbort=false; C_BusRequest.superClass.F_Abort.call(this); } }; C_BusRequest.prototype.f_createFollowOnState=function(_40,_41,_42){ var _43=[]; var nl=_40.selectNodes("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:primaryRequest/*"); for(var i=0;i"+""+_46+""+""; var _49=new C_BusRequest(null,this.m_sCancelRequestSOAPAction,_48); _49.F_Send(); }; C_BusRequest.prototype.F_OnServerLogonComplete=function(_4a){ this.m_bIsLoggingOn=false; if(_4a){ this.F_Send(); return; } this.F_SetNewErrorRes("IDS_CCHL_REQUEST_CANCELLED_LOGON"); this.m_docResponse=null; this.m_oListener.F_Request_OnComplete(this); }; C_BusRequest.prototype.F_OnServerPromptingComplete=function(){ this.m_bIsPrompting=false; if(G_BusServer.F_HasParameterValues()){ var _4b=this.m_sRequest; var _4c=_4b.indexOf(""); if(_4c!=-1&&_4d!=-1){ _4b=_4b.substring(0,_4c)+G_BusServer.F_GetParameterValues()+_4b.substring(_4d+22); }else{ if(_4c!=-1&&_4d==-1){ v_sParamsStart=_4b.slice(_4c); _4d=v_sParamsStart.indexOf("/>"); _4b=_4b.substring(0,_4c)+G_BusServer.F_GetParameterValues()+_4b.substring(_4c+_4d+2); }else{ G_Debug.F_Alert("Could not replace params in request"); } } this.m_sRequest=_4b; this.F_Send(); return; } this.F_SetNewErrorRes("IDS_CCHL_REQUEST_CANCELLED_PROMPTING"); this.m_docResponse=null; this.m_oListener.F_Request_OnComplete(this); }; C_BusRequest.prototype.f_createSoapRequest=function(_4e,_4f,_50){ var _51=G_BusServer.F_GetAuthenticityToken(); var _52=false; var _53=null; if(this.m_bUseDefaultRoutingServerGroup){ _53=""; _52=true; }else{ _53=(this.m_sRoutingServerGroup===null)?G_BusServer.F_GetRoutingServerGroup():this.m_sRoutingServerGroup; _52=Boolean(_53); } var _54=G_BusServer.F_GetCafContextId(); var _55=(C_BusRequest.m_aBusTracking.length>0)?C_BusRequest.m_aBusTracking.pop():""; var _56=""+""+""+(_51?(""+""+G_BusServer.F_GetAuthenticityToken()+""+""):"")+(_54?(""+""+_54+""+""):"")+""+""+"productLocale"+""+(_4f?_4f:G_CCHL.M_sProductLocale)+""+""+""+"contentLocale"+""+(_50?_50:G_CCHL.M_sContentLocale)+""+""+""+""+""+"rs"+"true"+""+""+_55+(_52?(""+""+_53.F_XMLEncode()+""+""):"")+""+""+""+_4e+""+""; return _56; }; function C_BusSoapFault(_57){ this.m_sErrorSummary=""; this.m_sErrorDetails=""; this.m_sErrorCode=""; _57.setProperty("SelectionNamespaces","xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' "+C_BusRequest.k_sBIBusNamespaceDecl); var _58=_57.selectSingleNode("//SOAP-ENV:Fault"); var nl=_58.selectNodes(".//bus:messageString | .//messageString | .//bus:message[not(*)] | .//message[not(*)]"); if(nl.length>0){ var _59=nl.item(0).text; var i=_59.indexOf(" "); this.m_sErrorSummary=(i>0)?_59.substring(i+1):_59; this.m_sErrorCode=(i>0)?_59.substring(0,i):""; var _5a=[]; for(var j=1;j"+_5e.F_XMLEncode()+"/*[permission('read') or permission('write') or permission('traverse') or permission('execute')]"+""+""+"usage"+"ascending"+""+""+"displaySequence"+"descending"+""+""+"defaultName"+"ascending"+""+""+""+"defaultName"+"searchPath"+"permissions"+"userInterfaces"+"shown"+"storeID"+""+""; this.F_ConstructBaseClass(_5d,C_BusRequest.K_sSOAPAction_contentManagerService,_5f); }; C_FolderContentsRequest.F_Extends(C_BusRequest); var G_BusServer={}; G_BusServer.k_iPollPromptWindow=1000; G_BusServer.m_aLogonListeners=[]; G_BusServer.m_oPromptListeners={}; G_BusServer.m_oPromptWindows={}; G_BusServer.m_iPromptId=0; G_BusServer.m_iLastPromptTimeoutId=-1; G_BusServer.f_setNoParameterValues=function(){ this.m_sParameterValues=""+""; }; G_BusServer.f_setNoParameterValues(); G_BusServer.m_aParametersListeners=[]; G_BusServer.F_AddParametersListener=function(_60){ this.m_aParametersListeners.push(_60); }; G_BusServer.f_getPromptId=function(){ return ++this.m_iPromptId; }; G_BusServer.F_SetCafContextId=function(_61){ this.m_sCafContextId=_61; }; G_BusServer.F_GetCafContextId=function(){ return this.m_sCafContextId; }; G_BusServer.m_sRoutingServerGroup=""; G_BusServer.F_SetRoutingServerGroup=function(_62){ this.m_sRoutingServerGroup=_62?_62:""; }; G_BusServer.F_GetRoutingServerGroup=function(){ return this.m_sRoutingServerGroup; }; G_BusServer.F_Logon=function(_63,_64){ this.m_aLogonListeners.push(_63); var _65=G_CCHL.M_sGatewayURL+"?b_action=xts.run&m=portal/close.xts"; if(_64){ _64.setProperty("SelectionNamespaces",C_BusRequest.k_sBIBusNamespaceDecl); var _66=_64.selectNodes(".//*[self::bus:biBusHeader | self::biBusHeader]//*[self::bus:displayObjects | self::displayObjects]/item[(type | bus:type) ='hidden']"); for(var i=0;i<_66.length;i++){ var _67=_66.item(i).selectSingleNode("bus:name | name").text; var _68=_66.item(i).selectSingleNode("bus:value | value").text; _65=_65+"&"+_67+"="+_68; } _65+="&md.callBack=data"; }else{ var _65=G_CCHL.M_sGatewayURL+"?b_action=xts.run&m=portal/close.xts&h_CAM_action=logonAs&md.callBack=data"; } if(this.m_aLogonListeners.length>1){ return true; } var _69=U_DOM.F_ShowEventBlocker(10000); _69.onmousedown=G_BusServer.F_OnLogonBlockerMouseDown; this.m_oLogonWindow=window.open(_65,"_blank","directories=no,location=no,status=no,toolbar=no,resizable=yes,scrollbars=yes,top=100,left=100,height=480,width=640"); if(U_DOM.F_WindowOpenWasBlocked(this.m_oLogonWindow)){ return false; } setTimeout("G_BusServer.f_checkLogonWindowState()",G_BusServer.k_iPollPromptWindow); return true; }; function ccModalCallBack(_6a){ var _6b=false; if(_6a=="ok"){ _6b=true; } G_BusServer.f_onLogonComplete(_6b); }; G_BusServer.F_OnLogonBlockerMouseDown=function(){ if(G_BusServer.m_oLogonWindow&&!G_BusServer.m_oLogonWindow.closed){ G_BusServer.m_oLogonWindow.focus(); return; } U_DOM.F_HideEventBlocker(); G_Debug.F_Print("G_BusServer.F_OnLogonBlockerMouseDown: blocker was up, yet no logon window"); }; G_BusServer.f_onLogonComplete=function(_6c){ U_DOM.F_HideEventBlocker(); setTimeout("G_BusServer.f_onAfterLogonComplete("+_6c+")",0); if(G_BusServer.m_oLogonWindow&&!G_BusServer.m_oLogonWindow.closed){ G_BusServer.m_oLogonWindow.close(); } delete G_BusServer.m_oLogonWindow; G_BusServer.m_oLogonWindow=null; }; G_BusServer.f_onAfterLogonComplete=function(_6d){ for(var i=0;i"); _6e.F_Send(); U_CookieJar.F_DeleteCookie("cam_passport",U_DOM.F_GetBasePath()); }; G_BusServer.F_AuthenticationRequired=function(_6f){ var _70=_6f.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Header/bus:biBusHeader"); if(_70&&_70.selectSingleNode(".//bus:errorCodeString[text() = 'camAuthUserRecoverable'] | .//errorCodeString[text() = 'camAuthUserRecoverable']")){ return _70.selectSingleNode(".//bus:promptInfo | .//promptInfo")!=null; } return false; }; G_BusServer.F_RequiresServerPrompting=function(_71){ return (_71&&_71.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:details/item[bus:status='prompting']")); }; G_BusServer.F_DoPrompting=function(_72,_73,_74){ G_HAL.F_VerifyDependencies("G_ResManager"); var _75=document; var _76=_75.getElementById("CCHL_formServerPrompting"); if(!_76){ var _77=G_ResManager.F_GetResource("CCHL_formServerPrompting").text; var div=_75.body.appendChild(_75.createElement("DIV")); div.innerHTML=_77; _76=_75.getElementById("CCHL_formServerPrompting"); } var _78=_73.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:primaryRequest"); var _79=_73.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:details/item/bus:outputPages/item"); var _7a=_73.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Header/bus:biBusHeader/bus:tracking/bus:conversationContext"); if(!(_78&&_79&&_7a)){ return false; } _76.action=G_CCHL.M_sGatewayURL; _76.conversation.value=(_78&&!_74)?_78.xml:""; _76.htmlFragment.value=(_79&&!_74)?_79.text:""; _76.specification.value=_74?_74:""; _76.method.value=_74?"collectParameterValuesSpecification":""; _76.tracking.value=(_7a&&!_74)?_7a.xml:""; var _7b=this.f_getPromptId(); _76.clientContext.value=_7b; var _7c=this.F_GetCafContextId(); if(_7c){ _76.cafcontextid.value=_7c; } _76.target="winPrompt_"+(new Date()).getTime(); this.f_setNoParameterValues(); if(D_Progress.F_IsActiveDialog()){ D_Progress.F_DisableCancel(); } var _7d=U_DOM.F_ShowEventBlocker(10000); _7d.onmousedown=G_BusServer.F_OnPromptBlockerMouseDown; this.m_oPromptListeners[_7b]=_72; this.m_oPromptWindows[_7b]=window.open(G_HAL.F_GetFileURL("hal/blank.htm"),_76.target,"directories=no,location=no,status=no,toolbar=no,resizable=yes,scrollbars=yes,top=100,left=100,height=400,width=630"); if(U_DOM.F_WindowOpenWasBlocked(this.m_oPromptWindows[_7b])){ return false; } this.m_oPromptWindows[_7b].focus(); _76.submit(); this.m_iLastPromptTimeoutId=setTimeout("G_BusServer.f_checkPromptingWindowState('"+_7b+"')",G_BusServer.k_iPollPromptWindow); return true; }; G_BusServer.F_OnPromptBlockerMouseDown=function(){ for(var s in G_BusServer.m_oPromptWindows){ G_BusServer.m_oPromptWindows[s].focus(); return; } U_DOM.F_HideEventBlocker(); G_Debug.F_Print("G_BusServer.F_OnPromptBlockerMouseDown: blocker was up, yet no prompt window"); }; G_BusServer.f_checkPromptingWindowState=function(_7e){ if(this.m_oPromptWindows[_7e]){ var _7f=false; try{ _7f=this.m_oPromptWindows[_7e].closed; } catch(e){ _7f=true; } if(_7f){ delete this.m_oPromptWindows[_7e]; if(U_Object.F_IsEmpty(this.m_oPromptWindows)){ U_DOM.F_HideEventBlocker(); }else{ for(var s in this.m_oPromptWindows){ this.m_oPromptWindows[s].focus(); break; } } setTimeout("G_BusServer.f_fireOnPromptingComplete('"+_7e+"')",0); }else{ this.m_iLastPromptTimeoutId=setTimeout("G_BusServer.f_checkPromptingWindowState('"+_7e+"')",G_BusServer.k_iPollPromptWindow); } } }; G_BusServer.F_GetParameterValues=function(){ return this.m_sParameterValues; }; G_BusServer.F_SetParameterValues=function(_80){ var _81=_80.replace(/bus:parameters(\W)/g,"bus:parameterValues$1"); var _82=U_XML.F_LoadString(null,_81); var _83=U_XML.F_LoadString(null,this.m_sParameterValues); if(_82&&_83&&_82.documentElement.xml!=_83.documentElement.xml){ this.m_sParameterValues=_81; this.f_fireOnParametersChange(); return true; } return false; }; G_BusServer.F_HasParameterValues=function(){ var _84=U_XML.F_LoadString(D_XmlError,this.m_sParameterValues); return (_84.documentElement.text!=""); }; G_BusServer.F_ClearParameterValues=function(){ this.f_setNoParameterValues(); this.f_fireOnParametersChange(); }; G_BusServer.F_ClearNonCredentialParameterValues=function(){ if(this.F_HasParameterValues()){ var _85=this.F_GetParameterValues(); var _86=U_XML.F_LoadString(D_XmlError,_85,false); _86.setProperty("SelectionNamespaces",C_BusRequest.k_sBIBusNamespaceDecl); var _87=false; var _88=_86.documentElement.selectNodes("item[not(starts-with(./bus:name,'credential'))]"); for(var i=0;i<_88.length;i++){ _86.documentElement.removeChild(_88.item(i)); _87=true; } if(_87){ this.m_sParameterValues=U_XML.F_SerializeNode(_86.documentElement); this.f_fireOnParametersChange(); } } }; G_BusServer.f_fireOnParametersChange=function(){ for(var i=0;i"+(_8a.parameters?_8a.parameters.join(""):"")+""; setTimeout("G_BusServer.f_fireOnParametersChange()",0); } var _8b=_8a.v_sClientContext; if(!_8b){ G_Debug.F_Print("Error: Prompting returned with no client context. Will attempt to inform any listener that can be found"); for(var s in G_BusServer.m_oPromptWindows){ _8b=s; } } if(G_BusServer.m_iLastPromptTimeoutId!=-1){ window.clearTimeout(G_BusServer.m_iLastPromptTimeoutId); G_BusServer.m_iLastPromptTimeoutId=-1; } setTimeout("G_BusServer.f_fireOnPromptingComplete('"+_8b+"')",0); delete G_BusServer.m_oPromptWindows[_8b]; if(U_Object.F_IsEmpty(G_BusServer.m_oPromptWindows)){ U_DOM.F_HideEventBlocker(); }else{ for(var s in G_BusServer.m_oPromptWindows){ G_BusServer.m_oPromptWindows[s].focus(); break; } } }; G_BusServer.F_GetAuthenticityToken=function(){ if(!this.m_sAuthenticityToken){ try{ this.m_sAuthenticityToken=(new CAMAuthenticityTokenSession()).generate(); } catch(e){ alert("Exception thrown by CAMAuthenticityTokenSession"+"\n\n Make sure you've included the camcrypto javascript files:"+"\n camcrypto/base64.js"+"\n camcrypto/camcryptoutil.js"+"\n camcrypto/sha1.js"+"\n camcrypto/authtoken.js"); } } return this.m_sAuthenticityToken; }; function C_RunReportRequest(_8c,_8d,_8e,_8f,_90){ var _91=""; if(_8e&&_8e!=""){ _91=""+"data"+""+_8e+""+""; } var _92=""+"outputLocation"+"http://developer.cognos.com/ceba/constants/temporaryObjectLocationEnum#serverFileSystem"+""; if(_90){ _92=""; } var _93=""+""+""+_8d.F_XMLEncode()+""+""+G_BusServer.F_GetParameterValues()+""+""+"primaryWaitThreshold"+""+C_BusRequest.K_sPrimaryWaitThreshold+""+""+""+"secondaryWaitThreshold"+""+C_BusRequest.K_sSecondaryWaitThreshold+""+""+""+"outputFormat"+""+""+(_8f?_8f:"XHTML")+""+""+""+""+"xslURL"+"null.xsl"+""+""+"promptFormat"+"HTMLFragment"+""+""+"prompt"+"false"+""+_91+_92+""+""; C_RunReportRequest.m_sLastRequest=_93; C_RunReportRequest.m_sLastResponse=""; this.m_nReportProperties=null; this.F_ConstructBaseClass(_8c,C_BusRequest.K_sSOAPAction_reportService,_93); this.F_SetContext(this.e_RequestOutput); this.F_SetAsyncBusRequest("rns1:wait","rns1:cancel","rns1:getOutput"); }; C_RunReportRequest.F_Extends(C_BusRequest); C_RunReportRequest.prototype.F_ProcessResponse=function(){ C_RunReportRequest.superClass.F_ProcessResponse.call(this); var _94=this.F_GetResponse(); if(!_94){ return; } C_RunReportRequest.m_sLastResponse=this.F_GetResponseText(); var n=_94.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*//bus:outputPages/item"); this.m_sReportOutput=U_XML.F_GetNodeText(n); }; C_RunReportRequest.prototype.F_GetReportOutput=function(){ return this.m_sReportOutput; }; function C_MetadataRequest(_95,_96){ C_MetadataRequest.m_sLastRequest=_96; C_MetadataRequest.m_sLastResponse=""; this.m_aMetadataResponses=null; var _97=""+""+""+_96.F_XMLEncode()+""+""+G_BusServer.F_GetParameterValues()+""+""+"primaryWaitThreshold"+""+C_BusRequest.K_sPrimaryWaitThreshold+""+""+""+"secondaryWaitThreshold"+""+C_BusRequest.K_sSecondaryWaitThreshold+""+""+""+"prompt"+"false"+""+""+""; this.F_ConstructBaseClass(_95,C_BusRequest.K_sSOAPAction_reportService_session,_97); this.F_SetAsyncBusRequest("rns1:wait","rns1:cancel","rns1:getOutput"); }; C_MetadataRequest.F_Extends(C_BusRequest); C_MetadataRequest.F_GetLastRequest=function(){ return this.m_sLastRequest?this.m_sLastRequest:""; }; C_MetadataRequest.F_GetLastResponse=function(){ return this.m_sLastResponse?this.m_sLastResponse:""; }; C_MetadataRequest.prototype.F_ProcessResponse=function(){ C_MetadataRequest.superClass.F_ProcessResponse.call(this); var _98=this.F_GetResponse(); if(!_98){ return; } var nl=_98.selectNodes("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:details/item/bus:metadata"); if(nl.length==0){ this.F_SetNewErrorRes("IDS_CCHL_BAD_MA_RESPONSE"); return; } var _99=[]; var _9a=[]; _9a.push(""); for(var i=0;i"); var _9b=nl.item(i).text; var d=U_XML.F_LoadString(null,_9b); if(!d){ this.F_SetNewErrorRes("IDS_CCHL_BAD_MA_RESPONSE",_9b); return; } _99.push(d.documentElement); _9a.push(d.documentElement.xml); _9a.push(""); } _9a.push(""); C_MetadataRequest.m_sLastResponse=_9a.join(""); this.m_aMetadataResponses=_99; }; C_MetadataRequest.prototype.F_GetMetadataResponses=function(){ return this.m_aMetadataResponses; }; C_MetadataRequest.prototype.F_GetMetadataResponse=function(){ var a=this.F_GetMetadataResponses(); return a?a[0]:null; }; function C_ModelCache(){ this.m_sModelPath=""; this.m_sModelLocale=""; this.m_sPackageName=""; this.m_sPackagePath=""; this.m_sModificationTime=""; this.m_sRoutingServerGroup=""; this.m_iMemberDisplayCountLimit=NaN; this.m_aListeners=[]; this.m_bModelEnabled=false; this.f_initCache(); }; C_ModelCache.prototype.f_initCache=function(){ this.m_oFunctionProperty={}; this.m_oSupportsOperation={}; this.m_oSupportsSuppression={}; this.m_bContainsHierarchies=false; this.m_docModelCache=U_XML.F_CreateDocument(); var _9c=this.m_docModelCache.appendChild(this.m_docModelCache.createElement("modelCache")); this.m_nModelRootCache=_9c.appendChild(this.m_docModelCache.createElement("modelRootCache")); this.m_nRootMembersCache=_9c.appendChild(this.m_docModelCache.createElement("rootMembersCache")); this.m_nChildrenCache=_9c.appendChild(this.m_docModelCache.createElement("childrenCache")); this.m_nMembersCache=_9c.appendChild(this.m_docModelCache.createElement("membersCache")); this.m_oAncestorInfoCache={}; }; C_ModelCache.prototype.F_SetModel=function(_9d,_9e,_9f,_a0,_a1,_a2,_a3){ var _a4=!this.m_bModelEnabled; var _a5=(this.m_sModelPath!=_9d)||(this.m_sModelLocale!=_9e); this.m_sModelPath=_9d; this.m_sModelLocale=_9e; this.m_sPackageName=_9f; this.m_sPackagePath=_a0; this.m_sModificationTime=_a1; this.m_sRoutingServerGroup=_a3; this.m_iMemberDisplayCountLimit=_a2; if(_a5){ this.F_ClearModelCache(); }else{ if(this.m_bModelEnabled){ return; } } this.m_bModelEnabled=true; this.f_fireEvent("F_ModelCache_OnModelChanged"); if(_a4&&!_a5&&this.F_GetModelRootResponses()){ this.f_fireEvent("F_ModelCache_OnModelRootLoaded"); } }; C_ModelCache.prototype.F_DisableModel=function(){ this.m_bModelEnabled=false; this.f_fireEvent("F_ModelCache_OnCacheCleared"); this.f_fireEvent("F_ModelCache_OnModelChanged"); this.f_fireEvent("F_ModelCache_OnModelRootLoaded"); }; C_ModelCache.prototype.F_ToString=function(){ var _a6=this.m_docModelCache.documentElement; _a6.setAttribute("modelPath",this.m_sModelPath); _a6.setAttribute("modelLocale",this.m_sModelLocale); _a6.setAttribute("packageName",this.m_sPackageName); _a6.setAttribute("packagePath",this.m_sPackagePath); _a6.setAttribute("modificationTime",this.m_sModificationTime); _a6.setAttribute("memberDisplayCountLimit",this.m_iMemberDisplayCountLimit.toString()); return _a6.xml; }; C_ModelCache.prototype.F_IsCurrentModel=function(_a7,_a8){ return ((_a7==this.m_sModelPath)&&(_a8==this.m_sModelLocale)); }; C_ModelCache.prototype.F_AddModelLoadedListener=function(_a9){ this.m_aListeners.F_PushUnique(_a9); }; C_ModelCache.prototype.F_RemoveModelLoadedListener=function(_aa){ this.m_aListeners.F_RemoveItem(_aa); }; C_ModelCache.prototype.F_LoadXML=function(_ab){ this.F_ClearModelCache(); this.m_docModelCache=U_XML.F_LoadString(null,_ab,false,false); if(!this.m_docModelCache){ return; } var _ac=this.m_docModelCache.documentElement; this.m_nModelRootCache=_ac.selectSingleNode("modelRootCache"); this.m_nRootMembersCache=_ac.selectSingleNode("rootMembersCache"); this.m_nChildrenCache=_ac.selectSingleNode("childrenCache"); this.m_nMembersCache=_ac.selectSingleNode("membersCache"); this.m_sModelPath=_ac.getAttribute("modelPath"); this.m_sModelLocale=_ac.getAttribute("modelLocale"); this.m_sPackageName=_ac.getAttribute("packageName"); this.m_sPackagePath=_ac.getAttribute("packagePath"); this.m_sModificationTime=_ac.getAttribute("modificationTime"); this.m_iMemberDisplayCountLimit=_ac.getAttribute("memberDisplayCountLimit"); this.m_bModelEnabled=true; this.f_fireEvent("F_ModelCache_OnModelChanged"); this.f_fireEvent("F_ModelCache_OnModelRootLoaded"); }; C_ModelCache.prototype.F_IsMultiDimensionalSource=function(){ return Boolean(this.m_nModelRootCache.selectSingleNode(".//*[self::dimension | self::hierarchy | self::member]")); }; C_ModelCache.prototype.F_ClearModelCache=function(){ this.f_initCache(); this.f_fireEvent("F_ModelCache_OnCacheCleared"); }; C_ModelCache.prototype.f_fireEvent=function(_ad){ this.m_aListeners.F_CallEach(_ad,this); }; C_ModelCache.prototype.F_GetMember=function(_ae){ return this.m_nMembersCache.selectSingleNode(".//*[not(self::searchResult) and @_ref="+_ae.F_ToXPathString()+"]"); }; C_ModelCache.prototype.F_GetMembers=function(_af,_b0){ if(!_b0){ alert("F_GetMembers requires a max members parameter"); return null; } var _b1=this.m_nMembersCache.selectSingleNode("*[not(self::searchResult) and @_ref="+_af.F_ToXPathString()+"]"); if(_b1){ var _b2=_b1.selectNodes("member").length; var _b3=_b1.getAttribute("maxMembers"); var _b4=_b3?parseInt(_b3,10):Number.POSITIVE_INFINITY; if(_b0<=_b4||_b2<_b4){ return _b1; } } return null; }; C_ModelCache.prototype.F_CacheMembersResponse=function(_b5,_b6){ if(_b6!=Number.POSITIVE_INFINITY){ _b5.setAttribute("maxMembers",_b6); } var n=U_XML.F_ImportNode(this.m_docModelCache,_b5,true); this.m_nMembersCache.appendChild(n); this.f_flagMembersWithNoChildren(); return n; }; C_ModelCache.prototype.f_flagMembersWithNoChildren=function(){ if(!this.m_bUpdatingCache){ U_XML.F_SetNodeAttributeValues(this.m_nMembersCache.selectNodes("*/member[not(@hasChildren) and ../../member[not(member)]/@_path = @_path]"),"hasChildren","false"); } }; C_ModelCache.prototype.F_GetSearchMembers=function(_b7,_b8,_b9,_ba){ if(!_b8){ alert("F_GetMembers requires a max members parameter"); return; } var _bb=this.m_nMembersCache.selectSingleNode("searchResult[@_path="+_b7.F_ToXPathString()+" and @descendants='"+(_b9?"true":"false")+"' and @constraints="+(_ba?_ba.F_ToXPathString():"''")+"]"); if(_bb){ var _bc=_bb.selectNodes("member").length; var _bd=parseInt(_bb.getAttribute("maxMembers")); if(_b8<=_bd||_bc<_bd){ return _bb; } } return null; }; C_ModelCache.prototype.F_CacheSearchMembersResponse=function(_be,_bf,_c0,_c1){ _be.setAttribute("maxMembers",_bf); _be.setAttribute("descendants",(_c0?"true":"false")); _be.setAttribute("constraints",_c1); var n=U_XML.F_ImportNode(this.m_docModelCache,_be,true); this.m_nMembersCache.appendChild(n); n=U_XML.F_SetNodeName(n,"searchResult"); this.f_flagMembersWithNoChildren(); return n; }; C_ModelCache.prototype.F_GetChildren=function(_c2){ return this.m_nChildrenCache.selectSingleNode("*[*[@_path="+_c2.F_ToXPathString()+"]]"); }; C_ModelCache.prototype.F_CacheChildrenResponse=function(_c3){ var n=U_XML.F_ImportNode(this.m_docModelCache,_c3,true); this.m_nChildrenCache.appendChild(n); return n; }; C_ModelCache.prototype.F_GetModelRootResponses=function(){ var nl=this.m_nModelRootCache.selectNodes("*"); var _c4=nl.length; if(_c4==0){ return null; } var _c5=[]; for(var i=0;i<_c4;i++){ _c5.push(nl.item(i).cloneNode(true)); } return _c5; }; C_ModelCache.prototype.F_GetDimensionalMetadataRoot=function(){ return this.m_nModelRootCache.selectSingleNode("*[1]"); }; C_ModelCache.prototype.F_IsMeasureDimension=function(_c6){ return (_c6&&_c6.nodeName=="dimension"&&_c6.getAttribute("type")=="measure"); }; C_ModelCache.prototype.F_GetDimensionalMetadata=function(_c7){ return this.m_nModelRootCache.selectSingleNode("*[1]//*[@_ref="+_c7.F_ToXPathString()+"]"); }; C_ModelCache.prototype.F_CacheModelRootResponse=function(_c8){ U_XML.F_RemoveNodes(this.m_nModelRootCache,"*"); var _c9=_c8?_c8.length:0; if(_c9>0){ for(var i=0;i<_c9;i++){ var n=U_XML.F_ImportNode(this.m_docModelCache,_c8[i],true); this.m_nModelRootCache.appendChild(n); } this.m_bContainsHierarchies=Boolean(_c8[C_ModelRootRequest.K_eResponse_MemberTreeMetadata].selectSingleNode(".//hierarchy/@_ref")); } this.f_fireEvent("F_ModelCache_OnModelRootLoaded"); }; C_ModelCache.prototype.F_GetMemberMetadata=function(_ca){ var _cb=this.F_GetModelRootResponses()[C_ModelRootRequest.K_eResponse_MemberTreeMetadata]; return _cb?_cb.selectSingleNode(".//*[@_ref="+_ca.F_ToXPathString()+"]"):null; }; C_ModelCache.prototype.F_GetSiblingHierarchyRootMembers=function(_cc){ var _cd=this.m_nModelRootCache.selectSingleNode(".//hierarchy[@_ref="+_cc.F_ToXPathString()+"]"); return _cd.selectNodes("../hierarchy/member"); }; C_ModelCache.prototype.F_GetRootMembersResponses=function(){ var nl=this.m_nRootMembersCache.selectNodes("*"); var _ce=nl.length; if(_ce==0){ return null; } var _cf=[]; for(var i=0;i<_ce;i++){ _cf.push(nl.item(i).cloneNode(true)); } return _cf; }; C_ModelCache.prototype.F_CacheRootMembersResponse=function(_d0){ var _d1=[]; U_XML.F_RemoveNodes(this.m_nRootMembersCache,"*"); var _d2=_d0?_d0.length:0; for(var i=0;i<_d2;i++){ var n=U_XML.F_ImportNode(this.m_docModelCache,_d0[i],true); this.m_nRootMembersCache.appendChild(n); _d1.push(n); } return _d1; }; C_ModelCache.prototype.F_GetFunctionProperty=function(_d3){ var _d4=this.m_oFunctionProperty[_d3]; if(_d4!=undefined){ return _d4; } var _d5=this.F_GetModelRootResponses(); if(!_d5){ G_Debug.F_Print("F_GetFunctionProperty("+_d3+") is undefined. Metadata is required."); return; } var _d6=_d5[C_ModelRootRequest.K_eResponse_Operations]; var _d7=_d6.selectSingleNode(_d3+"/@value"); var _d4=_d7?_d7.value:""; this.m_oFunctionProperty[_d3]=_d4; return _d4; }; C_ModelCache.prototype.F_SupportsSuppression=function(_d8){ var _d9=this.m_oSupportsSuppression[_d8]; if(_d9!=undefined){ return _d9; } var _da=this.F_GetModelRootResponses(); if(!_da){ G_Debug.F_Print("F_SupportsSuppression("+_d8+") is undefined. Metadata is required."); return; } var _db=_da[C_ModelRootRequest.K_eResponse_MemberTreeMetadata]; var _dc=Boolean(_db.selectSingleNode(".//package[@"+_d8+"='false']")); this.m_oSupportsSuppression[_d8]=!_dc; return !_dc; }; C_ModelCache.prototype.F_SupportsOperation=function(_dd){ var _de=this.m_oSupportsOperation[_dd]; if(_de!=undefined){ return _de; } var _df=this.F_GetModelRootResponses(); if(!_df){ G_Debug.F_Print("F_SupportsOperation("+_dd+") is undefined. Metadata is required."); return; } var _e0=_df[C_ModelRootRequest.K_eResponse_Operations]; var _de=Boolean(_e0.selectSingleNode(".//function[@id='"+_dd+"' and (@qosLevel='OK' or @qosLevel='limited' or @qosLevel='restricted')]")); this.m_oSupportsOperation[_dd]=_de; return _de; }; C_ModelCache.prototype.F_GetModelPath=function(){ return this.m_sModelPath; }; C_ModelCache.prototype.F_GetModelLocale=function(){ return this.m_sModelLocale; }; C_ModelCache.prototype.F_GetPackageName=function(){ return this.m_sPackageName; }; C_ModelCache.prototype.F_GetPackagePath=function(){ return this.m_sPackagePath; }; C_ModelCache.prototype.F_GetModificationTime=function(){ return this.m_sModificationTime; }; C_ModelCache.prototype.F_GetRoutingServerGroup=function(){ return this.m_sRoutingServerGroup; }; C_ModelCache.prototype.F_GetMemberDisplayCountLimit=function(){ return this.m_iMemberDisplayCountLimit; }; C_ModelCache.prototype.F_ModelEnabled=function(){ return this.m_bModelEnabled; }; C_ModelCache.prototype.F_ContainsHierarchies=function(){ return this.m_bContainsHierarchies; }; C_ModelCache.m_sOperations=""+""+""+""+""+""+""+""+""+""+""+""+""; C_ModelCache.m_sQueryFunctions=""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""; C_ModelCache.m_sReportFunctions=""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""; C_ModelCache.m_sMetadataChildren=""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""; function C_ModelRootRequest(_e1,_e2){ this.m_oModelCache=_e1; var _e3=C_ModelRootRequest.M_sRequest; _e3=_e3.replace(/@MODEL@/g,this.m_oModelCache.F_GetModelPath().replace(/\$/g,"$$$$").F_XMLEncode()); _e3=_e3.replace("@MODELPATH@",""); _e3=_e3.replace(/@AUTHORING_LOCALE@/g,this.m_oModelCache.F_GetModelLocale().F_XMLEncode()); _e3=_e3.replace("@DEPTH@","2"); this.F_ConstructBaseClass(_e2,_e3); }; C_ModelRootRequest.F_Extends(C_MetadataRequest); C_ModelRootRequest.prototype.F_ProcessResponse=function(){ C_ModelRootRequest.superClass.F_ProcessResponse.call(this); this.m_aModelRootResponses=this.F_GetMetadataResponses(); if(this.m_aModelRootResponses){ var _e4=this.m_aModelRootResponses[C_ModelRootRequest.K_eResponse_MemberTreeMetadata]; if(_e4){ var d=_e4.ownerDocument; var _e5=_e4.selectNodes(".//dimension"); var _e6=_e5.length; this.m_oModelCache.m_bUpdatingCache=true; for(var _e7=0;_e7<_e6;_e7++){ var _e8=_e5.item(_e7); var _e9=_e8.getAttribute("_ref"); var nl=_e8.selectNodes(".//hierarchy[@multiRoot='0' and @rootCaption and @rootCaption!='' and @rootMUN and @rootMUN!='']"); var _ea=nl.length; for(var i=0;i<_ea;i++){ var _eb=nl.item(i); var _ec=_eb.getAttribute("rootCaption"); var _ed=_eb.getAttribute("rootMUN"); var _ee=_eb.appendChild(d.createElement("member")); _ee.setAttribute("memberCaption",_ec); _ee.setAttribute("memberUniqueName",_ed); _ee.setAttribute("_path",_ed); _ee.setAttribute("_ref",_ed); _ee.setAttribute("dimensionUniqueName",_e9); _ee.setAttribute("hierarchyUniqueName",_eb.getAttribute("_ref")); var _ef=_eb.selectSingleNode("level"); if(_ef){ _ee.setAttribute("levelUniqueName",_ef.getAttribute("_ref")); } this.m_oModelCache.F_CacheMembersResponse(_eb,Number.POSITIVE_INFINITY); } } this.m_oModelCache.m_bUpdatingCache=false; this.m_oModelCache.f_flagMembersWithNoChildren(); } } this.m_oModelCache.F_CacheModelRootResponse(this.m_aModelRootResponses); }; C_ModelRootRequest.prototype.F_GetModelRootResponses=function(){ return this.m_aModelRootResponses; }; C_ModelRootRequest.m_sMemberTreeMetadata=""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""; C_ModelRootRequest.M_sRequest=""+C_ModelRootRequest.m_sMemberTreeMetadata+C_ModelCache.m_sOperations+C_ModelCache.m_sMetadataChildren+C_ModelCache.m_sQueryFunctions+C_ModelCache.m_sReportFunctions+""; 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; function C_MembersRequest(_f0,_f1,_f2,_f3){ this.m_oModelCache=_f0; if(!_f3){ alert("C_MembersRequest requires a max members parameter"); return; } this.m_iMaxMembers=_f3; this.m_nMembersRoot=null; var _f4=C_MembersRequest.M_sRequest.replace(/@MODEL@/g,this.m_oModelCache.F_GetModelPath().replace(/\$/g,"$$$$").F_XMLEncode()); _f4=_f4.replace(/@MODELPATH@/g,_f2.replace(/\$/g,"$$$$").F_XMLEncode()); _f4=_f4.replace("@AUTHORING_LOCALE@",this.m_oModelCache.F_GetModelLocale().F_XMLEncode()); _f4=_f4.replace("@RESULTCOUNT@",this.m_iMaxMembers); this.F_ConstructBaseClass(_f1,_f4); }; C_MembersRequest.F_Extends(C_MetadataRequest); C_MembersRequest.prototype.F_ProcessResponse=function(){ C_MembersRequest.superClass.F_ProcessResponse.call(this); var _f5=this.F_GetMetadataResponse(); if(_f5){ var _f6=_f5.selectSingleNode("member | level | hierarchy | dimension"); if(_f6){ this.m_nMembersRoot=this.m_oModelCache.F_CacheMembersResponse(_f6,this.m_iMaxMembers); } } }; C_MembersRequest.prototype.F_GetMembersResponse=function(){ return this.m_nMembersRoot; }; C_MembersRequest.M_sRequest=""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""; function C_ChildrenMetadataRequest(_f7,_f8,_f9){ this.m_oModelCache=_f7; this.m_nChildrenResponse=null; var _fa=C_ChildrenMetadataRequest.M_sRequest; _fa=_fa.replace(/@MODEL@/g,this.m_oModelCache.F_GetModelPath().replace(/\$/g,"$$$$").F_XMLEncode()); _fa=_fa.replace(/@MODELPATH@/g,_f9.replace(/\$/g,"$$$$").F_XMLEncode()); _fa=_fa.replace("@AUTHORING_LOCALE@",this.m_oModelCache.F_GetModelLocale().F_XMLEncode()); _fa=_fa.replace("@DEPTH@","2"); this.F_ConstructBaseClass(_f8,_fa); }; C_ChildrenMetadataRequest.F_Extends(C_MetadataRequest); C_ChildrenMetadataRequest.prototype.F_ProcessResponse=function(){ C_ChildrenMetadataRequest.superClass.F_ProcessResponse.call(this); var _fb=this.F_GetMetadataResponse(); if(_fb){ this.m_nChildrenResponse=this.m_oModelCache.F_CacheChildrenResponse(_fb); } }; C_ChildrenMetadataRequest.prototype.F_GetChildrenResponse=function(){ return this.m_nChildrenResponse; }; function C_AllChildrenMetadataRequest(_fc,_fd,_fe){ this.m_oModelCache=_fc; this.m_nChildrenResponse=null; var _ff=C_ChildrenMetadataRequest.M_sRequest; _ff=_ff.replace(/@MODEL@/g,this.m_oModelCache.F_GetModelPath().replace(/\$/g,"$$$$").F_XMLEncode()); _ff=_ff.replace(/@MODELPATH@/g,_fe.replace(/\$/g,"$$$$").F_XMLEncode()); _ff=_ff.replace("@AUTHORING_LOCALE@",this.m_oModelCache.F_GetModelLocale().F_XMLEncode()); _ff=_ff.replace("@DEPTH@",""); this.F_ConstructBaseClass(_fd,_ff); }; C_AllChildrenMetadataRequest.F_Extends(C_MetadataRequest); C_AllChildrenMetadataRequest.prototype.F_ProcessResponse=function(){ C_AllChildrenMetadataRequest.superClass.F_ProcessResponse.call(this); this.m_nChildrenResponse=this.F_GetMetadataResponse(); }; C_AllChildrenMetadataRequest.prototype.F_GetChildrenResponse=function(){ return this.m_nChildrenResponse; }; C_ChildrenMetadataRequest.M_sRequest=""+C_ModelCache.m_sMetadataChildren+""; function C_LevelMetadataRequest(_100,_101,_102){ this.m_oModelCache=_100; this.m_nChildrenResponse=null; var _103=C_LevelMetadataRequest.M_sRequest; _103=_103.replace(/@MODEL@/g,this.m_oModelCache.F_GetModelPath().replace(/\$/g,"$$$$").F_XMLEncode()); _103=_103.replace(/@MODELPATH@/g,_102.replace(/\$/g,"$$$$").F_XMLEncode()); _103=_103.replace("@AUTHORING_LOCALE@",this.m_oModelCache.F_GetModelLocale().F_XMLEncode()); this.F_ConstructBaseClass(_101,_103); }; C_LevelMetadataRequest.F_Extends(C_MetadataRequest); C_LevelMetadataRequest.prototype.F_ProcessResponse=function(){ C_LevelMetadataRequest.superClass.F_ProcessResponse.call(this); var _104=this.F_GetMetadataResponse(); if(_104){ this.m_nChildrenResponse=this.m_oModelCache.F_CacheChildrenResponse(_104); } }; C_LevelMetadataRequest.prototype.F_GetChildrenResponse=function(){ return this.m_nChildrenResponse; }; C_LevelMetadataRequest.M_sRequest=""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""; function C_MembersSearchRequest(_105,_106,_107,_108,_109,_10a){ this.m_oModelCache=_105; if(!_108){ alert("C_MembersSearchRequest requires a max members parameter"); return; } this.m_iMaxMembers=_108; this.m_bDescendants=Boolean(_109); this.m_sConstraints=_10a; var _10b=C_MembersSearchRequest.M_sRequest.replace(/@MODEL@/g,_105.F_GetModelPath().replace(/\$/g,"$$$$").F_XMLEncode()); _10b=_10b.replace(/@MODELPATH@/g,_107.replace(/\$/g,"$$$$").F_XMLEncode()); _10b=_10b.replace("@AUTHORING_LOCALE@",_105.F_GetModelLocale().F_XMLEncode()); _10b=_10b.replace("@RESULTCOUNT@",this.m_iMaxMembers); _10b=_10b.replace("@CONSTRAINTS@",_10a?_10a:""); _10b=_10b.replace("@DEPTH@",_109?"":"2"); if(_109){ _10b=_10b.replace("",""); } this.m_nSearchResponse=null; this.F_ConstructBaseClass(_106,_10b); }; C_MembersSearchRequest.F_Extends(C_MetadataRequest); C_MembersSearchRequest.prototype.F_ProcessResponse=function(){ C_MembersSearchRequest.superClass.F_ProcessResponse.call(this); var _10c=this.F_GetMetadataResponse(); if(_10c){ var _10d=_10c.selectSingleNode("member | level | hierarchy | dimension"); if(_10d){ this.m_nSearchResponse=this.m_oModelCache.F_CacheSearchMembersResponse(_10d,this.m_iMaxMembers,this.m_bDescendants,this.m_sConstraints); } } }; C_MembersSearchRequest.prototype.F_GetSearchResponse=function(){ return this.m_nSearchResponse; }; C_MembersSearchRequest.M_sRequest=""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+"@CONSTRAINTS@"+""+""; function C_MeasuresSearchRequest(_10e,_10f,_110,_111,_112,_113){ if(!_111){ alert("C_MembersSearchRequest requires a max members parameter"); return; } this.m_bDescendants=Boolean(_112); var _114=C_MeasuresSearchRequest.M_sRequest.replace(/@MODEL@/g,_10e.F_GetModelPath().replace(/\$/g,"$$$$").F_XMLEncode()); _114=_114.replace(/@MODELPATH@/g,_110.replace(/\$/g,"$$$$").F_XMLEncode()); _114=_114.replace("@AUTHORING_LOCALE@",_10e.F_GetModelLocale().F_XMLEncode()); _114=_114.replace("@RESULTCOUNT@",this.m_iMaxMeasures); _114=_114.replace("@CONSTRAINTS@",_113?_113:""); _114=_114.replace("@DEPTH@",_112?"":"2"); this.F_ConstructBaseClass(_10f,_114); }; C_MeasuresSearchRequest.F_Extends(C_MetadataRequest); C_MeasuresSearchRequest.prototype.F_ProcessResponse=function(){ C_MeasuresSearchRequest.superClass.F_ProcessResponse.call(this); this.m_nSearchResponse=null; var _115=this.F_GetMetadataResponse(); if(_115){ this.m_nSearchResponse=_115.cloneNode(false); var _116=_115.selectSingleNode("dimension"); if(_116){ var _117=this.m_nSearchResponse.appendChild(_116.cloneNode(false)); var _118=_115.selectNodes(".//measure"); for(var i=0;i<_118.length;i++){ _117.appendChild(_118.item(i).cloneNode(false)); } } } }; C_MeasuresSearchRequest.prototype.F_GetSearchResponse=function(){ return this.m_nSearchResponse; }; C_MeasuresSearchRequest.M_sRequest=""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+""+"@CONSTRAINTS@"+""+""; C_ModelCache.prototype.F_GetAncestorInfo=function(_119,_11a){ return this.m_oAncestorInfoCache[_119+" "+_11a]; }; C_ModelCache.prototype.f_cacheAncestorInfo=function(_11b,_11c,_11d,_11e){ var _11f={}; _11f.M_sMUN=_11d; _11f.M_sMemberCaption=_11e; this.m_oAncestorInfoCache[_11b+" "+_11c]=_11f; return _11f; }; function C_MemberAncestorRequest(_120,_121,_122,_123){ this.m_oModelCache=_120; this.m_sMUN=_122; this.m_iDistance=_123; var _124=_122; for(var i=0;i<_123;++i){ _124="parent("+_124+")"; } var _125=G_ResManager.F_GetResource("CCHL_ReportAncestor").text; _125=_125.replace("@XMLNS@",G_ReportSpec.F_GetServerSupportedReportSpecNamespace()); _125=_125.replace(/@MODEL@/g,this.m_oModelCache.F_GetModelPath().replace(/\$/g,"$$$$").F_XMLEncode()); _125=_125.replace("@ANCESTOREXPR@",_124.F_XMLEncode()); this.F_ConstructBaseClass(_121,_125,null,"XML"); }; C_MemberAncestorRequest.F_Extends(C_RunReportRequest); C_MemberAncestorRequest.prototype.F_ProcessResponse=function(){ C_MemberAncestorRequest.superClass.F_ProcessResponse.call(this); var _126=this.F_GetReportOutput(); if(_126){ var d=U_XML.F_LoadString(null,_126); if(!d){ this.F_SetNewErrorRes("IDS_CCHL_BAD_ANCESTOR_RESPONSE",_126); return; } d.setProperty("SelectionNamespaces","xmlns:xx='http://developer.cognos.com/schemas/xmldata/1/'"); var nl=d.documentElement.selectNodes(".//xx:value"); if(nl.length==2){ this.m_oAncestorInfo=this.m_oModelCache.f_cacheAncestorInfo(this.m_sMUN,this.m_iDistance,nl.item(0).text,nl.item(1).text); }else{ this.m_oAncestorInfo=this.m_oModelCache.f_cacheAncestorInfo(this.m_sMUN,this.m_iDistance,null,null); } } }; C_MemberAncestorRequest.prototype.F_GetAncestorInfo=function(){ return this.m_oAncestorInfo; }; var D_ManagePersonalData={}; D_ManagePersonalData.F_Show=function(_127,_128,_129){ this.m_oExternalListener=_129; this.m_sModelPath=_128; this.m_iMaxExtFiles=0; var _12a=G_ResManager.F_GetString("IDS_TITLE_MANAGE_PERSONALDATA"); this.M_fnSuper_Show(_127,this,_12a); }; D_ManagePersonalData.F_Dialog_OnBeforeVisible=function(){ this.m_oAvailable=new C_ListView(this.F_GetDlgItem("divAvailable"),G_ResManager.F_GetResource("EmptyMultiSelectList"),this); this.m_oToolbar=new C_Toolbar(this.F_GetDlgItem("divToolbar"),this.F_GetResource("ToolbarManagePersonalData"),this); this.m_oAvailable.F_SelectByIndex(0); this.f_setButtonState(); this.m_bPackageNameChanged=false; }; D_ManagePersonalData.F_Dialog_OnAfterVisible=function(){ this.f_getPersonalData(); }; D_ManagePersonalData.F_Request_OnComplete=function(_12b){ if(this.pdWorkingDialog){ this.pdWorkingDialog.hide(); } var _12c=_12b.F_GetError(); if(_12c){ pd.messageBox(pd.statics.MB_ERROR,PDMSG.ERR.IDS_ERR_PACKAGE_PUBLISH,_12c.m_sErrorCode+" "+_12c.m_sErrorSummary,_12c.m_sErrorDetails?_12c.m_sErrorDetails:null); return; } if(_12b.constructor==C_PersonalDataRequest||_12b.constructor==C_PersonalDataSyncRequest){ var _12d=_12b.F_GetResponseXMLString(); this.m_oOuputXML=_12b.F_GetResponseXML(); switch(_12b.F_GetRequestType()){ case "getPersonalData": if(_12c){ this.m_docInputXML=U_XML.F_LoadString(null,""+this.m_sModelPath+""); }else{ G_Debug.F_Print("getPersonalData response = "+_12d); var _12e=_12d.replace(//g,"").replace(/<\/output>/g,"").replace(//g,"").replace(/<\/targetPackageSearchPath>/g,""); this.m_docInputXML=U_XML.F_LoadString(null,_12e); var _12f=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/baseModelSearchPath").item(0); if(_12f.text==""){ _12f.text=this.m_sModelPath; } var _130=_12f.text; var i=_130.lastIndexOf("/model"); var _131=(i>=0)?_130.substr(0,i):_130; var _132=_131+"/model[last()]"; _12f.text=_132; this.f_getGovernorSettings(); var _133=this.f_populateAvailable(); this.f_setButtonState(); if(_133==0&&(this.m_nMaxExtFiles>0)){ this.m_bEditingPublishedPackage=false; this.m_sBasePackageName=G_Model.F_GetPackageName(); D_AddPersonalWizard.F_Show(this,this.m_bEditingPublishedPackage,this.m_sModelPath); }else{ this.m_bEditingPublishedPackage=true; this.m_sBasePackageName=this.f_extractPackageNameFromXPath(this.m_docInputXML.selectSingleNode("/addPersonalData/input/pdCollection/baseModelSearchPath")); } if(this.m_bEditingPublishedPackage){ this.m_sTargetPath=G_Model.F_GetPackagePath().replace("/package[@name='"+G_Model.F_GetPackageName()+"']",""); this.m_sTargetName=G_Model.F_GetPackageName(); }else{ this.m_sTargetPath="~/folder"; this.m_sTargetName=G_Model.F_GetPackageName()+G_ResManager.F_GetString("IDS_EXTERNAL_DATA_FILE_ADDITION"); } this.f_updatePackageName(); } break; case "addPersonalData": this.F_Hide(); var _134=this.m_oOuputXML.selectNodes("/output/personalPackagePath").item(0); G_App.F_ResetModel(_134.text,this.f_displayExternalDataAvailableMessage.F_CreateMethodCallback(this)); break; case "addLOBData": location.href=g_pd_backURL; break; } }else{ if(_12b.constructor==C_FolderContentsRequest){ var _135=_12b.F_GetResponse(); this.f_checkPackageNameBeforePublishing(_135); } } }; D_ManagePersonalData.f_extractPackageNameFromXPath=function(_136){ var _137=""; if(_136){ var _138=_136.text.lastIndexOf("package[@name='"); _137=_136.text.substring(_138+15); var _139=_137.indexOf("']"); _137=_137.substring(0,_139); } return _137; }; D_ManagePersonalData.f_displayExternalDataAvailableMessage=function(){ G_Toolbox.F_DisplayMessagePopup("manage_external_data.gif",null,"IDS_TOOLTIP_MANAGE_EXTERNAL_DATA",null,"IDS_TOOLTIPDESC_EXTERNAL_DATA_READY"); }; D_ManagePersonalData.F_Dialog_OnAfterHide=function(){ this.m_oAvailable.F_Detach(); this.m_oToolbar.F_Detach(); delete this.m_oToolbar; delete this.m_oAvailable; delete this.m_aAllowedExisting; }; D_ManagePersonalData.F_OnOK=function(){ if(this.m_bPackageNameChanged||!this.m_bEditingPublishedPackage){ G_Debug.F_Print("Package name needs to be checked for uniqueness"); this.f_checkPackageNameOnOK(); return; }else{ G_Debug.F_Print("Package just edited"); this.f_performOnOK(); } }; D_ManagePersonalData.f_performOnOK=function(){ if(G_Model.F_IsMultiDimensionalSource()){ var fn=D_ManagePersonalData.f_publishPackage.F_CreateMethodCallback(this); var _13a=this.m_sTargetName?this.m_sTargetName:""; var _13b=this.f_getSafeExternalFileName(); var _13c=this.f_getSafeReportName(); var _13d=this.m_sBasePackageName?this.m_sBasePackageName:""; var _13e=G_ResManager.F_GetString("IDS_MSG_OLAPEXTDATA_WARNING",_13a,_13b,_13c,_13d); D_MsgBox.F_Show(null,_13e,null,D_MsgBox.K_iWarning,D_MsgBox.K_iOKOnly,fn,null,null,"dlgPackagesPersonalData"); return; }else{ if(this.F_hasReportData()){ var fn=D_ManagePersonalData.f_publishPackage.F_CreateMethodCallback(this); var _13a=this.m_sTargetName?this.m_sTargetName:""; var _13b=this.f_getSafeExternalFileName(); var _13c=this.f_getSafeReportName(); var _13d=this.m_sBasePackageName?this.m_sBasePackageName:""; var _13e=G_ResManager.F_GetString("IDS_MSG_REPORTEXTDATA_WARNING",_13a,_13b,_13c,_13d); D_MsgBox.F_Show(null,_13e,null,D_MsgBox.K_iWarning,D_MsgBox.K_iOKOnly,fn,null,null,"dlgPackagesPersonalData"); return; } } if(this.m_docInputXML){ this.f_publishPackage(); return; } this.M_fnSuper_OnOK(); }; D_ManagePersonalData.f_checkPackageNameOnOK=function(){ var _13f=new C_FolderContentsRequest(this,this.m_sTargetPath); _13f.F_Send(); }; D_ManagePersonalData.f_checkPackageNameBeforePublishing=function(_140){ var _141=[]; var _142=G_ContentManager.F_ProcessCmResponse(_140); if(_142){ var nl=_142.selectNodes("item"); var _143=nl.length; for(var i=0;i<_143;i++){ var _144=nl.item(i); var _145=_144.selectSingleNode("defaultName/value").text; _141.push(_145.toLowerCase()); } } if(_141.indexOf(this.m_sTargetName.toLowerCase())!=-1){ D_ManagePersonalData.pd_packageOverwriteConfirm(); }else{ this.f_publishPackage(); } }; D_ManagePersonalData.f_getSafeExternalFileName=function(){ var _146=""; var _147=this.m_docInputXML.selectSingleNode("/addPersonalData/input/pdCollection/pdSpec/dataSet/sourcePath"); if(_147){ _146=_147.text; } return _146; }; D_ManagePersonalData.f_getSafeReportName=function(){ var _148=G_ResManager.F_GetString("IDS_MSG_EXTDATA_NO_REPORT_PARAM"); var _149=this.m_docInputXML.selectSingleNode("/addPersonalData/input/pdCollection/pdSpec/reportExtract/reportSubject/@name"); if(_149){ _148=_149.value; } return _148; }; D_ManagePersonalData.F_hasReportData=function(){ return Boolean(this.m_docInputXML&&this.m_docInputXML.selectSingleNode("//reportExtract")); }; D_ManagePersonalData.f_publishPackage=function(_14a){ this.pdWorkingDialog=pd.workingDialog(PDMSG.IPT.IDS_IPT_CREATING_PACKAGE); var _14a=_14a||"addLOBData"; var _14b=this.m_docInputXML.selectSingleNode("/"+_14a+"/input/pdCollection/targetPath"); if(!_14b){ var _14c=this.m_docInputXML.selectSingleNode("/"+_14a+"/input/pdCollection"); _14b=U_XML.F_AppendChild(_14c,"targetPath"); } _14b.text=this.m_sTargetPath; var _14d=this.m_docInputXML.selectSingleNode("/"+_14a+"/input/pdCollection/targetName"); if(!_14d){ var _14c=this.m_docInputXML.selectSingleNode("/"+_14a+"/input/pdCollection"); _14d=U_XML.F_AppendChild(_14c,"targetName"); } _14d.text=this.m_sTargetName; G_Debug.F_Print("publish request XML = "+U_XML.F_SerializeNode(this.m_docInputXML.documentElement)); var _14e=new C_PersonalDataRequest(this,U_XML.F_SerializeNode(this.m_docInputXML.documentElement),_14a); C_BusRequest.F_ReleaseAllTracking(); _14e.F_Send(); }; D_ManagePersonalData.F_OnCancel=function(){ this.M_fnSuper_OnCancel(); }; D_ManagePersonalData.F_ListView_OnItemClick=function(_14f,_150,_151){ this.f_setButtonState(); }; D_ManagePersonalData.F_OnDeleteClick=function(){ var _152=this.F_GetPersonalDataItemName(); var _153=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/pdSpec/personalData"); if(_153){ for(var i=0;i<_153.length;i++){ var _154=_153.item(i).getAttribute("name").F_XMLDecode(); if(_152==_154){ var _155=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/pdSpec").item(i); _155.parentNode.removeChild(_155); break; } } } this.f_populateAvailable(); this.f_setButtonState(); }; D_ManagePersonalData.F_OnAddPersonalData=function(){ D_AddPersonalWizard.F_Show(this,this.m_bEditingPublishedPackage,this.m_sModelPath); }; D_ManagePersonalData.F_OnEditClick=function(){ this.f_modifyPersonalData(this.m_oAvailable.F_GetSelectedListItem().getAttribute("label")); }; D_ManagePersonalData.F_Dialog_OnCommit=function(_156){ if(_156==this){ if(this.m_oExternalListener){ this.m_oExternalListener.F_Dialog_OnCommit(this); } }else{ if(_156==D_ContentManager){ if(this.m_sTargetPath!=D_ContentManager.F_GetSaveDirectory()){ this.m_sTargetPath=D_ContentManager.F_GetSaveDirectory(); this.m_bPackageNameChanged=true; } if(this.m_sTargetName!=D_ContentManager.F_GetSaveFileName()){ this.m_sTargetName=D_ContentManager.F_GetSaveFileName(); this.m_bPackageNameChanged=true; } this.f_updatePackageName(); G_Debug.F_Print("Package chosen: path '"+this.m_sTargetPath+"', name '"+this.m_sTargetName+"'"); }else{ this.f_populateAvailable(); this.f_setButtonState(); } } }; D_ManagePersonalData.F_GetPersonalDataItemName=function(){ return this.m_oAvailable.F_GetSelectedListItem().getAttribute("label"); }; D_ManagePersonalData.F_OnKeyDown=function(e){ e=e||window.event; if(e.keyCode==U_DOM.K_iKeyDelete&&this.m_oAvailable.F_GetSelectedListItems().length>0){ this.F_OnDeleteClick(); } this.M_fnSuper_OnKeyDown(e); }; D_ManagePersonalData.f_updatePackageName=function(){ this.F_GetDlgItem("txtPackageName").value=this.m_sTargetName; }; D_ManagePersonalData.f_pickPackagePath=function(){ var _157={"package":true,"folder":true}; D_ContentManager.F_ShowSave(this,_157,this.m_sTargetPath,this.m_sTargetName); }; D_ManagePersonalData.f_setButtonState=function(){ var _158=0; if(this.m_docInputXML){ var _159=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/pdSpec/personalData"); if(_159){ _158=_159.length; } } this.m_oToolbar.F_SetButtonEnabled("btnManagePersonalDataAdd",_1580); this.m_oToolbar.F_SetButtonEnabled("btnManagePersonalDataEdit",_15a.length==1); }; D_ManagePersonalData.f_getPersonalData=function(){ var _15b=""+this.m_sModelPath.F_XMLEncode()+""; var _15c=new C_PersonalDataSyncRequest(this,_15b,"getPersonalData"); D_Progress.F_SendRequest(_15c,this.F_GetDialogWindow(),G_ResManager.F_GetString("IDS_MSG_GET_EXTERNAL_DATA")); }; D_ManagePersonalData.f_addPersonalData=function(_15d,_15e){ this.m_oPDSpecsXML=_15d; var _15f=_15d.selectNodes("/pdSpec").item(0); if(_15e){ var _160=this.F_GetPersonalDataItemName(); var _161=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/pdSpec/personalData"); if(_161){ for(var i=0;i<_161.length;i++){ var _162=_161.item(i).getAttribute("name").F_XMLDecode(); if(_160==_162){ var _163=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/pdSpec").item(i); _163.parentNode.removeChild(_163); break; } } } } var _164=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection").item(0); _164.appendChild(U_XML.F_ImportNode(this.m_docInputXML,_15f,true)); G_Debug.F_Print("this.m_docInputXML = "+this.m_docInputXML.xml); this.f_populateAvailable(); this.f_setButtonState(); }; D_ManagePersonalData.f_populateAvailable=function(){ this.m_oAvailable.F_Clear(); var _165; if(this.m_docInputXML){ _165=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/pdSpec/personalData"); if(_165){ for(var i=0;i<_165.length;i++){ var _166=_165.item(i).getAttribute("name").F_XMLDecode(); var _167=this.m_oAvailable.F_AppendNewListItem(); _167.setAttribute("label",_166); _167.setAttribute("value",_166); } } } this.m_oAvailable.F_Draw(); this.m_oAvailable.F_SelectByIndex(0); if(_165){ return _165.length; } }; D_ManagePersonalData.f_modifyPersonalData=function(_168){ var _169=""; if(this.m_docInputXML){ var _16a=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/pdSpec/personalData"); if(_16a){ for(var i=0;i<_16a.length;i++){ var _16b=_16a.item(i).getAttribute("name").F_XMLDecode(); if(_168==_16b){ _169=this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/pdSpec").item(i); var _16c=U_XML.F_SerializeNode(this.m_docInputXML.selectNodes("/addPersonalData/input/pdCollection/pdSpec").item(i)); var _16d=U_XML.F_LoadString(null,_16c); D_AddPersonalWizard.F_Show(this,this.m_bEditingPublishedPackage,this.m_sModelPath,_16d); break; } } } } }; D_ManagePersonalData.f_getGovernorSettings=function(){ this.m_nMaxExtFiles=0; if(this.m_docInputXML){ var _16e=this.m_docInputXML.selectNodes("/addPersonalData/input/governors/governor"); if(_16e){ for(var i=0;i<_16e.length;i++){ var _16f=_16e.item(i).getAttribute("name"); if(_16f=="maxPersonalDataSources"){ var _170=_16e.item(i).childNodes[0].nodeValue; this.m_nMaxExtFiles=parseInt(_170); } } var x=this.m_docInputXML.getElementsByTagName("governors")[0]; if(x){ x.parentNode.removeChild(x); } } } }; function C_PersonalDataRequest(_171,_172,_173){ C_PersonalDataRequest.m_sLastRequest=_172; C_PersonalDataRequest.m_sLastResponse=""; this.m_aMetadataResponses=null; this.m_sPDResponseXMLString=""; this.m_nPDResponse=null; this.m_sRequestType=_173; var _174=this.f_buildBusRequest(_172); this.F_ConstructBaseClass(_171,C_PersonalDataRequest.K_sSOAPAction_metadataService,_174); this.f_setupAsync(); this.F_AddNamespace(C_PersonalDataRequest.k_sBIBusMDNamespaceDecl); }; C_PersonalDataRequest.F_Extends(C_BusRequest); C_PersonalDataRequest.K_sPrimaryWaitThreshold=30; C_PersonalDataRequest.K_sSecondaryWaitThreshold=30; C_PersonalDataRequest.K_sSOAPAction_metadataService_high="http://www.ibm.com/xmlns/prod/cognos/metadataService/201610/.high"; C_PersonalDataRequest.K_sSOAPAction_metadataService_absolute="http://www.ibm.com/xmlns/prod/cognos/metadataService/201610/.absolute"; C_PersonalDataRequest.K_sSOAPAction_metadataService_control="http://www.ibm.com/xmlns/prod/cognos/metadataService/201610/.session"; C_PersonalDataRequest.K_sSOAPAction_metadataService="http://www.ibm.com/xmlns/prod/cognos/metadataService/201610/"; C_PersonalDataRequest.k_sBIBusMDNamespaceDecl="xmlns:md1='http://developer.cognos.com/schemas/metadataService/3'"; C_PersonalDataRequest.prototype.f_buildBusRequest=function(_175){ var _176=""+""+""+_175.F_XMLEncode()+""+""+G_BusServer.F_GetParameterValues()+""+""+"primaryWaitThreshold"+""+C_PersonalDataRequest.K_sPrimaryWaitThreshold+""+""+""+"secondaryWaitThreshold"+""+C_PersonalDataRequest.K_sSecondaryWaitThreshold+""+""+""+"prompt"+"false"+""+""+""; return _176; }; C_PersonalDataRequest.prototype.f_setupAsync=function(){ this.F_SetAsyncBusRequest("md1:wait","md1:cancel","md1:getOutput",C_PersonalDataRequest.K_sSOAPAction_metadataService_absolute,C_PersonalDataRequest.K_sSOAPAction_metadataService_control); }; C_PersonalDataRequest.F_GetLastRequest=function(){ return this.m_sLastRequest?this.m_sLastRequest:""; }; C_PersonalDataRequest.F_GetLastResponse=function(){ return this.m_sLastResponse?this.m_sLastResponse:""; }; C_PersonalDataRequest.prototype.F_ProcessResponse=function(){ C_PersonalDataRequest.superClass.F_ProcessResponse.call(this); var _177=this.F_GetResponse(); this.m_aMetadataResponses=this.F_GetResponse(); if(!_177){ return; } var _178=_177.selectNodes("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/details/item/data"); if(_178.length>0){ var _179=new Base64(); this.m_sPDResponseXMLString=this.f_utf8ByteStringToString(_179.decode64(_178.item(0).text)); this.m_nPDResponse=U_XML.F_LoadString(null,this.m_sPDResponseXMLString); } }; C_PersonalDataRequest.prototype.f_utf8ByteStringToString=function(_17a){ var _17b=[]; var _17c=_17a.length; for(var i=0;i<_17c;){ var _17d=_17a.charCodeAt(i++); if(_17d<128){ _17b.push(String.fromCharCode(_17d)); continue; } var _17e=_17a.charCodeAt(i++); if((_17d>191)&&(_17d<224)){ _17b.push(String.fromCharCode(((_17d&31)<<6)|(_17e&63))); continue; } var _17f=_17a.charCodeAt(i++); _17b.push(String.fromCharCode(((_17d&15)<<12)|((_17e&63)<<6)|(_17f&63))); } return _17b.join(""); }; C_PersonalDataRequest.prototype.F_GetRequestType=function(){ return this.m_sRequestType?this.m_sRequestType:""; }; C_PersonalDataRequest.prototype.F_GetResponseXMLString=function(){ return this.m_sPDResponseXMLString?this.m_sPDResponseXMLString:""; }; C_PersonalDataRequest.prototype.F_GetResponseXML=function(){ return this.m_nPDResponse?this.m_nPDResponse:null; }; C_PersonalDataRequest.prototype.F_GetMetadataResponses=function(){ return this.m_aMetadataResponses; }; C_PersonalDataRequest.prototype.F_GetMetadataResponse=function(){ var a=this.F_GetMetadataResponses(); return a?a[0]:null; }; function C_PersonalDataSyncRequest(_180,_181,_182){ this.F_ConstructBaseClass(_180,_181,_182); }; C_PersonalDataSyncRequest.F_Extends(C_PersonalDataRequest); C_PersonalDataSyncRequest.prototype.f_buildBusRequest=function(_183){ var _184=_183; return _184; }; C_PersonalDataSyncRequest.prototype.f_setupAsync=function(){ }; C_PersonalDataSyncRequest.prototype.F_ProcessResponse=function(){ C_PersonalDataRequest.superClass.F_ProcessResponse.call(this); var _185=this.F_GetResponse(); if(!_185){ return; } var _186=_185.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/output"); if(_186){ this.m_sPDResponseXMLString=U_XML.F_SerializeNode(_186); this.m_nPDResponse=_186; }else{ this.m_sPDResponseXMLString=""; this.m_nPDResponse=null; } }; var D_AddPersonalWizard={}; D_AddPersonalWizard.F_Show=function(_187,_188,_189,_18a){ if(G_BrowserInfo.M_bIsIE&&!U_DOM.F_IsVmlSupported()){ F_MsgBoxRes("IDS_MSG_NO_VML"); return; } this.m_oDocUploadResponse=null; this.m_sModelPath=_189; this.m_oPecXML=_18a; this.m_bIsModify=_18a!=null; this.m_bEditingPublishedPackage=_188; this.m_sQueryName=""; this.m_sProcessResponse=""; this.M_fnSuper_Show(null,_187,G_ResManager.F_GetString("IDS_TITLE_ADDPERSONAL_DATA")); }; D_AddPersonalWizard.K_iSelectDataPage=0; D_AddPersonalWizard.K_iLinksPage=1; D_AddPersonalWizard.K_iDataAttribPage=2; D_AddPersonalWizard.K_iLinkAttribPage=3; D_AddPersonalWizard.K_iOneToMany=0; D_AddPersonalWizard.K_iOneToOne=1; D_AddPersonalWizard.K_iOptToMany=2; D_AddPersonalWizard.K_iOptToOne=3; D_AddPersonalWizard.F_Dialog_OnInit=function(){ this.m_divExternalQSItems=this.F_GetDlgItem("divExternalItems"); this.m_divLeft=this.m_divExternalQSItems; this.m_divLinks=this.F_GetDlgItem("divLinks"); this.m_divLinks.onmousedown=new Function("D_AddPersonalWizard.f_selectLink(-1)"); this.m_divExistingQSItems=this.F_GetDlgItem("divExistingItems"); this.m_divRight=this.m_divExistingQSItems; if(!G_BrowserInfo.M_bIsIE){ this.m_elSvg=this.m_divLinks.appendChild(document.createElementNS("http://www.w3.org/2000/svg","svg")); this.m_elSvg.style.height="180px"; this.m_elSvg.style.width="150px"; } this.m_nlCardinalityLabels=G_ResManager.F_GetResource("cardinality").selectNodes("listItems/listItem"); this.m_radAllValUniqueExternal=this.F_GetDlgItem("radAllValueUniqueExternal"); this.m_radMorethanOnceExternal=this.F_GetDlgItem("radValueMoreThanOnceExternal"); this.m_radAllValUniqueExisting=this.F_GetDlgItem("radAllValueUniqueExisting"); this.m_radMorethanOnceExisting=this.F_GetDlgItem("radValueMoreThanOnceExisting"); this.m_radExternalExcludeMissingValues=this.F_GetDlgItem("radExternalExcludeMissingValues"); this.m_radExternalIncludeMissingValues=this.F_GetDlgItem("radExternalIncludeMissingValues"); this.m_radExistingExcludeMissingValues=this.F_GetDlgItem("radExistingExcludeMissingValues"); this.m_radExistingIncludeMissingValues=this.F_GetDlgItem("radExistingIncludeMissingValues"); this.m_spanExternalCardinality=this.F_GetDlgItem("spanExternalCardinality"); this.m_spanExistingCardinality=this.F_GetDlgItem("spanExistingCardinality"); this.m_aTipText=[]; this.m_aTipText[D_AddPersonalWizard.K_iSelectDataPage]="IDS_WIZ_ADDPERSONAL_SUBTITLE_SELECT_FILE"; this.m_aTipText[D_AddPersonalWizard.K_iLinksPage]="IDS_WIZ_ADDPERSONAL_SUBTITLE_SELECT_MAPPINGITEMS"; this.m_aTipText[D_AddPersonalWizard.K_iDataAttribPage]="IDS_WIZ_ADDPERSONAL_SUBTITLE_SPECIFY_ATTRIBUTE"; this.m_aTipText[D_AddPersonalWizard.K_iLinkAttribPage]="IDS_WIZ_ADDPERSONAL_SUBTITLE_DISABLED_MAPPINGOPTIONS"; this.m_nCurrentCard=D_AddPersonalWizard.K_iSelectDataPage; }; D_AddPersonalWizard.F_Dialog_OnBeforeVisible=function(){ this.m_bReadIncomingMappings=true; this.m_bReadIncomingMappingOptions=true; this.m_bExternalSourceChanged=true; var _18b="NavigationListNew"; if(this.m_bIsModify){ _18b="NavigationList"; } this.m_oNavigationList=new C_ListView(this.F_GetDlgItem("divNavigationList"),this.F_GetResource(_18b),this); var _18c=this.m_oNavigationList.F_FindListItemByIndex(0); _18c.setAttribute("html","1. "+G_ResManager.F_GetString("IDS_LBL_SELECTDATA")); _18c=this.m_oNavigationList.F_FindListItemByIndex(1); _18c.setAttribute("html","2. "+G_ResManager.F_GetString("IDS_LBL_DATAMAPPING")); _18c=this.m_oNavigationList.F_FindListItemByIndex(2); _18c.setAttribute("html","3. "+G_ResManager.F_GetString("IDS_LBL_DATAATTRIBUTE")); _18c=this.m_oNavigationList.F_FindListItemByIndex(3); _18c.setAttribute("html","4. "+G_ResManager.F_GetString("IDS_LBL_MAPPINGOPTIONS")); this.m_oNavigationList.F_Draw(); var _18d=this.m_oNavigationList.F_GetContainer(); var _18e=_18d.getElementsByTagName("TD"); var _18f=_18e.length; for(var i=0;i<_18f;i++){ var _190=_18e.item(i); _190.style.whiteSpace="normal"; } this.m_oDeck=new C_Deck(this.F_GetDlgItem("deckMain"),this); this.F_GetDlgItem("btnBack").style.display=this.m_bIsModify?"none":""; this.F_GetDlgItem("btnNext").style.display=this.m_bIsModify?"none":""; this.F_GetDlgItem("btnFinish").style.display=this.m_bIsModify?"none":""; this.F_GetDlgItem("btnOK").style.display=this.m_bIsModify?"":"none"; this.f_updateButtonStates(); this.m_oLvColumns=new C_ListView(this.F_GetDlgItem("divListViewColumns"),this.F_GetResource("Choose_Column_List"),this); this.F_GetDlgItem("inFileName").value=""; this.F_GetDlgItem("pdmForm").reset(); this.m_oComboDataType=new C_ComboBox(this.F_GetDlgItem("tblDataType"),G_ResManager.F_GetResource("ComboBox_DataType"),null,this); this.m_oComboAggration=new C_ComboBox(this.F_GetDlgItem("tblAggration"),G_ResManager.F_GetResource("ComboBox_Aggration"),null,this); this.m_oComboScale=new C_ComboBox(this.F_GetDlgItem("tblDecimal"),G_ResManager.F_GetResource("ComboBox_Decimal"),null,this); this.m_oComboJoinFilterType=new C_ComboBox(this.F_GetDlgItem("tblComboJoinFilterType"),G_ResManager.F_GetResource("ComboBox_JoinFilterType"),null,this); this.m_oComboJoinFilterType.F_SetValue("in","IDS_LBL_JOINFILTERTYPE"); this.m_oComboJoinFilterType.F_SetTooltip(null,"IDS_LBL_JOINFILTERTYPE"); this.F_SetEnableDataItemAttribute(false); this.m_iCurrentSelectItemAttribute=-1; this.m_sFolderName=""; this.m_oExistingQSList=new C_ListView(this.m_divExistingQSItems,null,this); this.m_nExistingQSListItems=this.m_oExistingQSList.F_GetListItemsNode(); this.m_oExternalQSList=new C_ListView(this.m_divExternalQSItems,null,this); this.m_nExternalQSListItems=this.m_oExternalQSList.F_GetListItemsNode(); this.m_oNavigationList.F_SelectByIndex(0,true); this.m_nCurrentCard=D_AddPersonalWizard.K_iSelectDataPage; this.f_updateTipText(D_AddPersonalWizard.K_iSelectDataPage); }; D_AddPersonalWizard.F_Dialog_OnAfterVisible=function(){ if(this.m_oPecXML){ this.F_SetColumnList(this.m_oPecXML,true); } }; D_AddPersonalWizard.F_Deck_OnBeforeCardVisible=function(_191,_192,_193,_194){ switch(_194){ case D_AddPersonalWizard.K_iDataAttribPage: if(!this.m_oLvColumnsDataItem){ U_Utils.F_ShowLoadingMessage(this.F_GetDlgItem("divListViewColumnDataitem")); } break; case D_AddPersonalWizard.K_iLinksPage: if(this.m_oExistingQSList&&this.m_oExistingQSList.F_GetListItems().length==0){ var _195=G_Model.F_IsMultiDimensionalSource(); if(_195){ this.F_GetDlgItem("lblExistingQuerySubject").innerText=G_ResManager.F_GetString("IDS_LBL_EXISTING_REPORT"); }else{ this.F_GetDlgItem("lblExistingQuerySubject").innerText=G_ResManager.F_GetString("IDS_LBL_EXISTING_QS_OR_REP"); } } this.f_updateLinkButtons(); break; } this.f_updateTipText(_194); }; D_AddPersonalWizard.f_EnsureValidLinks=function(){ if(this.m_bReadIncomingMappings){ this.f_restoreExistingQSOrReport(this.m_oPecXML); this.f_setupLinkAttributesPage(); this.m_bReadIncomingMappings=false; return; } if(this.m_aLinks&&(this.m_aLinks.length)&&(this.m_aLinks.length>0)){ var nl=this.m_oLvColumns.F_GetCheckedListItems(); for(var i=0;i=0){ _1bf=_1bf.substr(8); } var _1c0=G_Model.F_GetChildren(_1bf); if(_1c0){ _1bb=_1c0.selectSingleNode("querySubject"); }else{ var _1c1=new C_AllChildrenMetadataRequest(G_Model,new C_RequestListenerRedirect(this,"f_onExistingQSMetadataRequestComplete"),_1bf); _1c1.F_Send(); } }else{ var _1bc=_1ba.selectSingleNode("/pdSpec/reportExtract/reportSearchPath"); } } if(_1bb){ var _1c2=_1bb.getAttribute("_path"); var _1c3=_1bb.getAttribute("name"); this.f_setExistingQuerySubject(_1c2,_1c3); }else{ if(_1bc){ var _1c4=_1bc.text; var _1c5=_1ba.selectSingleNode("/pdSpec/reportExtract/reportSubject/@name").value; this.f_setExistingReport(_1c4,_1c5); } } }; D_AddPersonalWizard.f_onExistingQSMetadataRequestComplete=function(_1c6){ var _1c7=_1c6.F_GetError(); if(_1c7){ F_ShowError(_1c7); return; } var _1c8=_1c6.F_GetMetadataResponse(); var _1c9=_1c8.selectSingleNode("querySubject"); if(_1c9){ var _1ca=_1c9.getAttribute("_path"); var _1cb=_1c9.getAttribute("name"); this.f_setExistingQuerySubject(_1ca,_1cb); } }; D_AddPersonalWizard.f_pickReport=function(){ var _1cc={}; _1cc["report"]=true; _1cc["reportView"]=true; _1cc["query"]=false; _1cc["reportTemplate"]=false; _1cc["analysis"]=false; D_ContentManager.F_ShowOpen(this,_1cc); }; D_AddPersonalWizard.F_Dialog_OnCommit=function(){ var _1cd=D_ContentManager.F_GetOpenFilePath(); var _1ce=D_ContentManager.F_GetOpenFileName(); this.f_setExistingReport(_1cd,_1ce); }; D_AddPersonalWizard.f_onExistingQuerySubjectPicked=function(){ var _1cf=D_ChooseModelItem.F_GetQueryItemPath(); var _1d0=D_ChooseModelItem.F_GetQueryItemLabel(); this.f_setExistingQuerySubject(_1cf,_1d0); }; D_AddPersonalWizard.f_clearExistingItemsList=function(){ this.m_oExistingQSList.F_Clear(); this.m_nExistingQSListItems=this.m_oExistingQSList.F_GetListItemsNode(); this.F_GetDlgItem("txtExistingQuerySubject").value=""; this.F_GetDlgItem("txtExistingQuerySubject").title=""; this.m_sExistingQuerySubjectPath=null; this.m_sExistingReportPath=null; this.m_nExistingReportExtract=null; }; D_AddPersonalWizard.f_setExistingQuerySubject=function(_1d1,_1d2){ this.f_clearExistingItemsList(); if(_1d1&&_1d2){ this.m_sExistingQuerySubjectPath=_1d1; this.F_GetDlgItem("txtExistingQuerySubject").value=_1d2; this.F_GetDlgItem("txtExistingQuerySubject").title=this.m_sExistingQuerySubjectPath; this.F_GetDlgItem("lblExistingQuerySubject").innerText=G_ResManager.F_GetString("IDS_LBL_EXISTING_QUERY_SUBJECT"); var _1d3=this.m_sExistingQuerySubjectPath; var _1d4=new C_AllChildrenMetadataRequest(G_Model,this,_1d3); _1d4.F_Send(); U_Utils.F_ShowLoadingMessage(this.m_divExistingQSItems); } }; D_AddPersonalWizard.f_setExistingReport=function(_1d5,_1d6){ this.f_clearExistingItemsList(); if(_1d5&&_1d6){ this.m_sExistingReportPath=_1d5; this.F_GetDlgItem("txtExistingQuerySubject").value=_1d6; this.F_GetDlgItem("txtExistingQuerySubject").title=_1d5; this.F_GetDlgItem("lblExistingQuerySubject").innerText=G_ResManager.F_GetString("IDS_LBL_EXISTING_REPORT"); var _1d7=""+this.m_sExistingReportPath.F_XMLEncode()+""; var _1d8=new C_PersonalDataSyncRequest(this,_1d7,"processExtractReport"); _1d8.F_Send(); U_Utils.F_ShowLoadingMessage(this.m_divExistingQSItems); } }; D_AddPersonalWizard.f_populateExistingReportItems=function(_1d9){ if(!_1d9){ this.m_divExistingQSItems.innerHTML=""; return false; } this.m_nExistingReportExtract=_1d9; var nl=this.m_nExistingReportExtract.selectNodes("reportSubject/item"); var d=this.m_nExistingQSListItems.ownerDocument; var _1da=nl.length; for(var i=0;i<_1da;i++){ var n=nl.item(i); var _1db=this.f_appendReportNode(d,this.m_nExistingQSListItems,n); } this.m_oExistingQSList.F_Draw(); this.f_updateLinkButtons(); }; D_AddPersonalWizard.f_filterExistingQSMembers=function(_1dc){ if(!_1dc){ this.m_divExistingQSItems.innerHTML=""; return false; } var _1dd=_1dc.selectSingleNode("querySubject"); var _1de=""+this.m_sModelPath.F_XMLEncode()+""+U_XML.F_SerializeNode(_1dd)+""; var _1df=new C_PersonalDataSyncRequest(this,_1de,"getQuerySubjectData"); _1df.F_Send(); U_Utils.F_ShowLoadingMessage(this.m_divExistingQSItems); U_Utils.F_ShowLoadingMessage(this.F_GetDlgItem("divListViewColumnExternalDataitem")); U_Utils.F_ShowLoadingMessage(this.F_GetDlgItem("divListViewColumnExistingDataitem")); }; D_AddPersonalWizard.f_populateExistingQSMembers=function(_1e0){ if(!_1e0){ this.m_divExistingQSItems.innerHTML=""; return false; } var nl=_1e0.selectNodes(".//queryItem | .//calculation"); var d=this.m_nExistingQSListItems.ownerDocument; var _1e1=nl.length; for(var i=0;i<_1e1;i++){ var n=nl.item(i); var _1e2=this.f_appendMetadataNode(d,this.m_nExistingQSListItems,n); } this.m_oExistingQSList.F_Draw(); this.f_updateLinkButtons(); return true; }; D_AddPersonalWizard.f_appendReportNode=function(d,_1e3,_1e4){ var n=_1e3.appendChild(d.createElement("listItem")); var _1e5=_1e4.getAttribute("name"); if(_1e5){ n.setAttribute("name",_1e5); n.setAttribute("label",_1e5); } var _1e6=_1e4.getAttribute("ID"); if(_1e6){ n.setAttribute("_ref",_1e6); n.setAttribute("_path",_1e6); } n.setAttribute("nodeName","modelItem"); switch(_1e4.getAttribute("usage")){ case "identifier": n.setAttribute("smallIcon","queryItem_identifier.gif"); break; case "fact": n.setAttribute("smallIcon","queryItem_fact.gif"); n.setAttribute("isMeasure","true"); n.setAttribute("isOLAPMeasure","false"); var _1e7=_1e4.getAttribute("regularAggregate"); switch(_1e7){ case "sum": _1e7="total"; break; case "min": _1e7="minimum"; break; case "max": _1e7="maximum"; break; case "avg": _1e7="average"; break; case "count": case "calculated": case "countDistinct": case "standardDeviation": case "variance": case "median": case "automatic": break; default: _1e7=""; break; } if(_1e7){ n.setAttribute("modelAggregate",_1e7); } break; default: n.setAttribute("smallIcon","metadata_attribute.gif"); break; } U_XML.F_CopyAttributes(n,_1e4,["usage","datatype"]); return n; }; D_AddPersonalWizard.f_appendMetadataNode=function(d,_1e8,_1e9){ var n=_1e8.appendChild(d.createElement("listItem")); var _1ea=_1e9.getAttribute("name"); if(_1ea){ n.setAttribute("name",_1ea); n.setAttribute("label",_1ea); } U_XML.F_CopyAttributes(n,_1e9,["_ref","_path","description"]); var _1eb=_1e9.getAttribute("screenTip"); if(_1eb||_1ea){ n.setAttribute("tooltip",_1eb?(_1ea+" - "+_1eb):_1ea); } var _1ec=_1e9.getAttribute("linkable"); if(_1ec!=null){ if(_1ec=="false"){ n.setAttribute("selectable","false"); n.setAttribute("smallIcon","bad_item.gif"); return n; } } var _1ed=_1e9.nodeName; switch(_1ed){ case "queryItem": case "calculation": var _1ee=n.parentNode; var _1ef=_1ee.getAttribute("nodeName"); var _1f0=G_App.F_getPackageTreeSettingsFull(); if((_1ef=="level")&&!_1f0.F_GetValue(C_PackageTreeSettings.K_iMemberProperties)){ n.parentNode.removeChild(n); break; } var _1f1=(_1ed=="calculation"); n.setAttribute("nodeName","modelItem"); switch(_1ef){ case "hierarchy": case "level": n.setAttribute("nodeName","memberProperty"); var _1f2=_1ee.getAttribute("name"); if(_1ef=="level"){ n.setAttribute("LUN",_1ee.getAttribute("_ref")); n.setAttribute("HUN",_1ee.parentNode.getAttribute("_ref")); }else{ n.setAttribute("HUN",_1ee.getAttribute("_ref")); } n.setAttribute("parentName",_1f2); n.setAttribute("parentLabel",_1f2); break; } switch(_1e9.getAttribute("usage")){ case "identifier": n.setAttribute("smallIcon",_1f1?"calculation_identifier.gif":"queryItem_identifier.gif"); break; case "fact": n.setAttribute("selectable","false"); n.setAttribute("smallIcon","fact_bad.gif"); n.setAttribute("isMeasure","true"); n.setAttribute("isOLAPMeasure","false"); var _1f3=_1e9.getAttribute("regularAggregate"); switch(_1f3){ case "sum": _1f3="total"; break; case "min": _1f3="minimum"; break; case "max": _1f3="maximum"; break; case "avg": _1f3="average"; break; case "count": case "calculated": case "countDistinct": case "standardDeviation": case "variance": case "median": case "automatic": break; default: _1f3=""; break; } if(_1f3){ n.setAttribute("modelAggregate",_1f3); } break; default: n.setAttribute("smallIcon",_1f1?"calculation_attribute.gif":"metadata_attribute.gif"); break; } if(_1f1){ var _1f4=_1e9.getAttribute("calcType"); switch(_1f4){ case "namedSet": n.setAttribute("nodeName","namedSet"); n.setAttribute("smallIcon","calcType_"+_1f4+".gif"); U_XML.F_CopyAttributes(n,_1e9,["hierarchies","dimensions"]); break; case "macros": n.setAttribute("smallIcon","calcType_"+_1f4+".gif"); break; } } U_XML.F_CopyAttributes(n,_1e9,["currency","usage","datatype","displayType","unSortable","promptType","promptDisplayItemRef","promptUseItemRef","promptFilterItemRef","promptCascadeOnRef","regularAggregate","calcType"]); break; } return n; }; D_AddPersonalWizard.f_appendExternalDataNode=function(d,_1f5,_1f6){ var n=this.m_nExternalQSListItems.appendChild(d.createElement("listItem")); var _1f7=_1f6.getAttribute("name"); if(_1f7){ n.setAttribute("name",_1f7); n.setAttribute("label",_1f7); } U_XML.F_CopyAttributes(n,_1f6,["ID","usage"]); var _1f8=_1f6.getAttribute("screenTip"); if(_1f8||_1f7){ n.setAttribute("tooltip",_1f8?(_1f7+" - "+_1f8):_1f7); } switch(_1f6.getAttribute("usage")){ case "identifier": case "Identifier": n.setAttribute("smallIcon","queryItem_identifier.gif"); break; case "fact": case "Fact": n.setAttribute("smallIcon","queryItem_fact.gif"); n.setAttribute("isMeasure","true"); n.setAttribute("isOLAPMeasure","false"); var _1f9=_1f6.getAttribute("regularAggregate"); switch(_1f9){ case "sum": _1f9="total"; break; case "min": _1f9="minimum"; break; case "max": _1f9="maximum"; break; case "avg": _1f9="average"; break; case "count": case "calculated": case "countDistinct": case "standardDeviation": case "variance": case "median": case "automatic": break; default: _1f9=""; break; } if(_1f9){ n.setAttribute("modelAggregate",_1f9); } break; default: n.setAttribute("smallIcon","metadata_attribute.gif"); break; } return n; }; D_AddPersonalWizard.f_updateButtonStates=function(){ }; D_AddPersonalWizard.F_OnBack=function(){ if(this.m_oDeck.F_HasBack()){ this.m_oNavigationList.F_SelectByIndex(this.m_oDeck.F_GetIndex()-1,true); } }; D_AddPersonalWizard.F_OnNext=function(){ if(this.m_oDeck.F_HasNext()){ this.m_oNavigationList.F_SelectByIndex(this.m_oDeck.F_GetIndex()+1,true); } }; D_AddPersonalWizard.F_OnFinish=function(){ if(!this.m_oPecXML){ return; } this.f_buildpdSpecitem(this.m_oPecXML); D_ManagePersonalData.f_addPersonalData(this.m_oPecXML,this.m_bIsModify); this.F_Hide(); }; D_AddPersonalWizard.f_localEditLinksOnly=function(_1fa){ var _1fb=_1fa.selectSingleNode("/pdSpec/relationship"); if(_1fb){ var nl=this.m_oLvColumns.F_GetCheckedListItems(); var _1fc=_1fb.selectNodes("expression/relPart"); var _1fd=_1fc.length; var nl=this.m_oLvColumns.F_GetCheckedListItems(); for(var i=0;i<_1fd;i++){ var _1fe=_1fc.item(i); var _1ff=_1fe.selectNodes("itemRef"); if(!_1ff||_1ff.length!=2){ _1fe.parentNode.removeChild(_1fe); continue; } var _200=_1ff.item(0).selectSingleNode("text()").nodeValue; var j; for(j=0;j0)){ var _21b=U_XML.F_AppendChild(_202.selectNodes("/pdSpec").item(0),"relationship"); if(this.m_sExistingQuerySubjectPath){ _21b.setAttribute("target","baseModel"); var _21c=U_XML.F_AppendChild(_21b,"targetModelPath"); var _21d=this.m_sExistingQuerySubjectPath; if(_21d.indexOf("[Model].")!=0){ _21d="[Model]."+_21d; } _21c.text=_21d; }else{ _21b.setAttribute("target","reportExtract"); } var _21e=U_XML.F_AppendChild(_21b,"sourceCardinality"); if(this.m_radAllValUniqueExternal.checked==true){ U_XML.F_AppendChild(_21e,"maxCard").text="one"; }else{ U_XML.F_AppendChild(_21e,"maxCard").text="many"; } if(this.m_radExternalExcludeMissingValues.checked==true){ U_XML.F_AppendChild(_21e,"minCard").text="one"; }else{ U_XML.F_AppendChild(_21e,"minCard").text="zero"; } var _21f=U_XML.F_AppendChild(_21b,"targetCardinality"); if(this.m_radAllValUniqueExisting.checked==true){ U_XML.F_AppendChild(_21f,"maxCard").text="one"; }else{ U_XML.F_AppendChild(_21f,"maxCard").text="many"; } if(this.m_radExistingExcludeMissingValues.checked==true){ U_XML.F_AppendChild(_21f,"minCard").text="one"; }else{ U_XML.F_AppendChild(_21f,"minCard").text="zero"; } var _220=U_XML.F_AppendChild(_21b,"expression"); if(this.m_aLinks&&this.m_aLinks.length){ for(var i=0;i"+this.m_sModelPath+""); }else{ var _22b=_229.replace(//g,"").replace(/<\/output>/g,"").replace(//g,"").replace(/<\/targetPackageSearchPath>/g,""); this.m_oInputXML=U_XML.F_LoadString(null,_22b); var _22c=this.m_oInputXML.selectNodes("/addPersonalData/input/pdCollection/baseModelSearchPath").item(0); if(_22c.text==""){ _22c.text=this.m_sModelPath; } } break; case "processExtractReport": var _22d=_22a.selectSingleNode("reportExtract"); this.f_populateExistingReportItems(_22d); this.m_aLinks=this.f_restoreExistingLinks(this.m_oPecXML); this.f_refreshLinksControl(); this.m_bReadIncomingMappingOptions=true; this.f_setupLinkAttributesPage(); break; case "getQuerySubjectData": var _22e=_22a.selectSingleNode("querySubject"); this.f_populateExistingQSMembers(_22e); if(this.m_aLinks&&(this.m_aLinks.length)&&(this.m_aLinks.length>0)){ this.F_eraseLinks(true); }else{ this.m_aLinks=this.f_restoreExistingLinks(this.m_oPecXML); } this.f_refreshLinksControl(); this.m_bReadIncomingMappingOptions=true; this.f_setupLinkAttributesPage(); break; } }else{ if(_226.constructor==C_LevelMetadataRequest||_226.constructor==C_AllChildrenMetadataRequest){ this.f_filterExistingQSMembers(_226.F_GetMetadataResponse()); } } }; D_AddPersonalWizard.F_Request_OnAborted=function(_22f){ }; D_AddPersonalWizard.F_FindSelectItemInProcessResponse=function(_230){ this.m_iCurrentSelectItemAttribute=-1; var _231=_230.getAttribute("label"); var _232=_230.selectNodes("subItem").item(0).getAttribute("serverDatatype"); var _233=this.m_oPecXML.selectNodes("/pdSpec/personalData/item"); for(var i=0;i<_233.length;i++){ var _234=_233.item(i); if((_234.getAttribute("name")==_231)&&(_234.getAttribute("datatype")==_232)){ this.m_iCurrentSelectItemAttribute=i; } } }; D_AddPersonalWizard.F_SetEnableDataItemAttribute=function(_235){ this.m_oComboDataType.F_SetEnabled(_235); this.m_oComboAggration.F_SetEnabled(_235); this.m_oComboScale.F_SetEnabled(_235); }; D_AddPersonalWizard.F_SetEnableDecimalDataItemAttribute=function(_236){ this.m_oComboScale.F_SetEnabled(_236); }; D_AddPersonalWizard.F_UpdataDataItemAttributeCombox=function(_237){ if(_237<0||_237>this.m_oPecXML.selectNodes("/pdSpec/personalData/item").length){ return; } var _238=this.m_oPecXML.selectNodes("/pdSpec/personalData/item").item(_237); var _239=this.F_GetItemDataType(_238); this.m_oComboDataType.F_SelectByValue(_239,true); if((_239=="Integer")||(_239=="Decimal")){ if(null!=_238.getAttribute("regularAggregate")){ this.m_oComboAggration.F_SelectByValue(_238.getAttribute("regularAggregate"),true); } }else{ this.m_oComboAggration.F_SetEnabled(false); } if(this.F_GetItemDataType(_238)!="Decimal"){ this.m_oComboScale.F_SetEnabled(false); } if(this.F_GetItemScale(_238)!=null){ var _23a=this.F_GetItemScale(_238); if((_23a>=0)&&(_23a<8)){ this.m_oComboScale.F_SelectByValue(_23a,true); } } }; D_AddPersonalWizard.F_ComboBox_OnChange=function(_23b,_23c){ if(_23b==this.m_oComboJoinFilterType){ this.m_oComboJoinFilterType.F_SetTooltip(null,"IDS_LBL_JOINFILTERTYPE"); return; } if(this.m_iCurrentSelectItemAttribute<0){ return; } var _23d=this.m_oPecXML.selectNodes("/pdSpec/personalData/item"); switch(_23b){ case this.m_oComboDataType: this.F_SetItemDataType(this.m_iCurrentSelectItemAttribute,_23c.getAttribute("value")); break; case this.m_oComboAggration: this.F_SetItemAggregate(this.m_iCurrentSelectItemAttribute,_23c.getAttribute("value")); break; case this.m_oComboScale: if(_23c.getAttribute("scale")!=""){ _23d.item(this.m_iCurrentSelectItemAttribute).setAttribute("scale",_23c.getAttribute("value")); } break; } var _23e=-1; var _23f=this.m_oLvColumnsDataItem.F_GetSingleSelectedListItem(); if(_23f){ var nl=this.m_oLvColumnsDataItem.F_GetListItems(); var _240=nl.length; for(var i=0;i<_240;i++){ if(_23f==nl.item(i)){ _23e=i; } } } this.F_SetDataItemAttributesList(); if(_23e>=0){ this.m_oLvColumnsDataItem.F_SelectByIndex(_23e,true); } }; D_AddPersonalWizard.F_ListView_OnItemClick=function(_241,_242,_243){ switch(_241.F_GetId()){ case "D_AddPersonalWizard_divListViewColumnDataitem": this.F_SetEnableDataItemAttribute(true); var _244=_241.F_GetSelectedListItem(); this.F_FindSelectItemInProcessResponse(_244); this.F_UpdataDataItemAttributeCombox(this.m_iCurrentSelectItemAttribute); break; case "D_AddPersonalWizard_divNavigationList": var _245=_242.getAttribute("value"); var _246=G_ResManager.F_GetString(_242.getAttribute("idsLabel")); var _247=_241.F_GetListViewNode().selectSingleNode("listItems/listItem[@value='"+_245+"']"); this.F_GetDlgItem("divTitle").innerText=_246; this.m_oDeck.F_SetIndex(U_XML.F_GetIndex(_247)); break; case "D_AddPersonalWizard_divExternalItems": case "D_AddPersonalWizard_divExistingItems": this.f_LinkedList_OnItemClick(_241,_242,_243); break; } }; D_AddPersonalWizard.F_Dialog_OnAfterHide=function(){ this.m_oLvColumns.F_Detach(); delete this.m_oLvColumns; if(this.m_oLvColumnsDataItem){ this.m_oLvColumnsDataItem.F_Detach(); delete this.m_oLvColumnsDataItem; } this.m_oDeck.F_Detach(); delete this.m_oDeck; this.m_oComboDataType.F_Detach(); delete this.m_oComboDataType; this.m_oComboAggration.F_Detach(); delete this.m_oComboAggration; this.m_oComboScale.F_Detach(); delete this.m_oComboScale; this.m_oComboJoinFilterType.F_Detach(); delete this.m_oComboJoinFilterType; if(this.m_oNavigationList){ this.m_oNavigationList.F_Detach(); delete this.m_oNavigationList; } if(this.m_oExistingQSList){ this.m_oExistingQSList.F_Detach(); delete this.m_oExistingQSList; } if(G_BrowserInfo.M_bIsIE){ this.m_divLinks.innerHTML=""; }else{ U_DOM.F_RemoveAllChildren(this.m_elSvg); } if(this.m_oExternalQSList){ this.m_oExternalQSList.F_Detach(); delete this.m_oExternalQSList; } if(this.m_oColExternalLink){ this.m_oColExternalLink.F_Detach(); delete this.m_oColExternalLink; } if(this.m_oColExistingLink){ this.m_oColExistingLink.F_Detach(); delete this.m_oColExistingLink; } if(this.m_oMenuPopupSet){ this.m_oMenuPopupSet.F_Detach(); delete this.m_oMenuPopupSet; } D_ChooseModelItem.F_ClearModelTree(); this.m_aLinks=[]; }; D_AddPersonalWizard.f_cleanupCanvases=function(){ if(this.m_oCanvas){ this.m_oCanvas.F_Detach(); delete this.m_oCanvas; this.m_oCanvas=null; } if(this.m_aLinks&&this.m_aLinks.length){ for(var i=0;i1)||(_24c.split("/").length>1))); }; D_AddPersonalWizard.f_SelectFileChange=function(){ this.m_bExternalSourceChanged=true; var _24d=this.f_GetFilePath(); var _24e=this.F_GetDlgItem("chkAlwaysTryToLoad"); if(this.f_IsGoodFilePath(_24d)){ _24e.disabled=false; }else{ _24e.disabled=true; _24e.checked=false; } var _24f=_24d.split("."); var _250=""; if((_24f[_24f.length-1]=="xml")||(_24f[_24f.length-1]=="XML")){ _250="XML"; }else{ if((_24f[_24f.length-1]=="xls")||(_24f[_24f.length-1]=="XLS")){ _250="Excel2003"; }else{ if((_24f[_24f.length-1]=="xlsx")||(_24f[_24f.length-1]=="XLSX")){ _250="Excel2003"; }else{ if((_24f[_24f.length-1]=="csv")||(_24f[_24f.length-1]=="CSV")){ _250="CSV"; }else{ _250="CSV"; } } } } this.m_sQueryNameItem="yyy"; var _251=this.F_GetDlgItem("pdmForm"); var _252=""; _252+=""+this.F_GetDlgItem("txtText").value.F_XMLEncode()+""; _252+=""+_24d.F_XMLEncode()+""; _252+=""+this.m_sModelPath.F_XMLEncode()+""; _251.inSpec.value=_252+""; F_SubmitUpload(_251); this.m_sFolderName=""; _251.action=G_CCHL.M_sGatewayURL+"/metadataUIService?pid=pdm_process&c=processPersonalData"; _251.submit(); D_Progress.F_Show(null,G_ResManager.F_GetString("IDS_LBL_PROCESSEXTERNALDATA")); }; D_AddPersonalWizard.F_ProcessResponse=function(_253){ if(_253){ this.m_sProcessResponse=_253; } this.m_oPecXML=U_XML.F_LoadString(null,this.m_sProcessResponse); if(this.m_oPecXML){ var _254=this.m_oPecXML.selectNodes("/pdSpec/dataSet/name").item(0); _254.text=_254.text.F_XMLDecode(); this.m_sFolderName=_254.text; } this.f_updateButtonStates(); return this.m_oPecXML; }; D_AddPersonalWizard.F_GetItemDataType=function(_255){ var _256=_255.getAttribute("datatype"); if(_256=="int32"){ return "Integer"; } if(_256=="characterLength16"){ return "Text"; } if(_256=="date"){ return "Date"; } if(_256=="dateTime"){ return "DateTime"; } if(_256=="decimal"){ return "Decimal"; } if(_256=="float32"){ return "Decimal"; } if(_256=="float64"){ return "Decimal"; } if(_256=="boolean"){ return "Boolean"; } if(_256=="int16"){ return "Integer"; } if(_256=="int64"){ return "Integer"; } return "unknown"; }; D_AddPersonalWizard.F_GetItemDataTypeLabel=function(_257){ return G_ResManager.F_GetString("IDS_PDA_DTYPE_"+this.F_GetItemDataType(_257)); }; D_AddPersonalWizard.F_SetItemAsIdentifier=function(_258){ var _259=this.m_oPecXML.selectNodes("/pdSpec/personalData/item"); var _25a=-1; for(var i=0;i<_259.length;i++){ var _25b=_259.item(i).getAttribute("ID"); if(_25b==_258){ _25a=i; break; } } if(_25a==-1){ return; } _259.item(_25a).setAttribute("regularAggregate","unsupported"); _259.item(_25a).setAttribute("semiAggregate","unsupported"); _259.item(_25a).setAttribute("usage","identifier"); this.m_oComboAggration.F_SelectByValue("unsupported",true); this.m_oComboAggration.F_SetEnabled(false); }; D_AddPersonalWizard.f_resetItemData=function(_25c){ var _25d=this.m_oPecXML.selectNodes("/pdSpec/personalData/item"); var _25e=null; var _25f=-1; for(var i=0;i<_25d.length;i++){ var _260=_25d.item(i).getAttribute("ID"); if(_260==_25c){ _25f=i; _25e=_25d.item(i); break; } } if(_25f==-1){ return; } var _261=this.F_GetItemDataType(_25e); this.F_SetItemDataType(_25f,_261); }; D_AddPersonalWizard.F_SetItemDataType=function(i,_262){ var _263=this.m_oPecXML.selectNodes("/pdSpec/personalData/item"); this.F_SetEnableDecimalDataItemAttribute(false); if(_262=="Integer"){ _263.item(i).setAttribute("datatype","int32"); _263.item(i).setAttribute("regularAggregate","unsupported"); _263.item(i).setAttribute("semiAggregate","unsupported"); _263.item(i).setAttribute("usage","attribute"); _263.item(i).setAttribute("length","4"); _263.item(i).removeAttribute("scale"); _263.item(i).removeAttribute("precision"); this.m_oComboAggration.F_SelectByValue("unsupported",true); this.m_oComboAggration.F_SetEnabled(true); return; } if(_262=="Text"){ _263.item(i).setAttribute("datatype","characterLength16"); _263.item(i).setAttribute("regularAggregate","unsupported"); _263.item(i).setAttribute("semiAggregate","unsupported"); _263.item(i).setAttribute("usage","attribute"); _263.item(i).setAttribute("length","-1"); _263.item(i).removeAttribute("scale"); _263.item(i).removeAttribute("precision"); this.m_oComboAggration.F_SelectByValue("unsupported",true); return; } if(_262=="Decimal"){ _263.item(i).setAttribute("datatype","decimal"); _263.item(i).setAttribute("regularAggregate","unsupported"); _263.item(i).setAttribute("semiAggregate","unsupported"); _263.item(i).setAttribute("usage","attribute"); _263.item(i).setAttribute("scale","2"); this.m_oComboAggration.F_SelectByValue("unsupported",true); this.m_oComboScale.F_SelectByValue("2",true); this.F_SetEnableDecimalDataItemAttribute(true); return; } if(_262=="Date"){ _263.item(i).setAttribute("datatype","date"); _263.item(i).setAttribute("regularAggregate","unsupported"); _263.item(i).setAttribute("semiAggregate","unsupported"); _263.item(i).setAttribute("usage","attribute"); this.m_oComboAggration.F_SelectByValue("unsupported",true); return; } if(_262=="DateTime"){ _263.item(i).setAttribute("datatype","dateTime"); _263.item(i).setAttribute("regularAggregate","unsupported"); _263.item(i).setAttribute("semiAggregate","unsupported"); _263.item(i).setAttribute("usage","attribute"); this.m_oComboAggration.F_SelectByValue("unsupported",true); return; } }; D_AddPersonalWizard.F_GetItemAggregate=function(_264){ var vAgg=_264.getAttribute("regularAggregate"); if(vAgg!="unsupported"){ switch(vAgg){ case "sum": return G_ResManager.F_GetString("IDS_TOPBOTTOM_SUM"); case "average": return G_ResManager.F_GetString("IDS_SUMMARY_average"); case "automatic": return G_ResManager.F_GetString("IDS_PROPVAL_AGGR_AUTO"); case "count": return G_ResManager.F_GetString("IDS_PROPVAL_AGGR_COUNT"); case "maximum": return G_ResManager.F_GetString("IDS_PROPVAL_AGGR_MAX"); case "minimum": return G_ResManager.F_GetString("IDS_PROPVAL_AGGR_MIN"); case "median": return G_ResManager.F_GetString("IDS_PROPVAL_AGGR_median"); case "countDistinct": return G_ResManager.F_GetString("IDS_PROPVAL_AGGR_countDistinct"); case "countNoZero": return G_ResManager.F_GetString("IDS_PROPVAL_AGGR_countNoZero"); case "variance": return G_ResManager.F_GetString("IDS_PROPVAL_AGGR_variance"); case "standardDeviation": return G_ResManager.F_GetString("IDS_PROPVAL_AGGR_standardDeviation"); } } return ""; }; D_AddPersonalWizard.F_SetItemAggregate=function(i,_265){ var _266=this.m_oPecXML.selectNodes("/pdSpec/personalData/item"); var _267=_266.item(i).getAttribute("usage"); if(_267!="identifier"){ if(_265=="unsupported"){ _266.item(i).setAttribute("usage","attribute"); }else{ _266.item(i).setAttribute("usage","fact"); } } _266.item(i).setAttribute("regularAggregate",_265); _266.item(i).setAttribute("semiAggregate",_265); }; D_AddPersonalWizard.F_GetItemScale=function(_268){ if(this.F_GetItemDataType(_268)=="Decimal"){ var _269=_268.getAttribute("scale"); if(_269){ return _269; } } return ""; }; D_AddPersonalWizard.F_GetItemPrecision=function(_26a){ if(this.F_GetItemDataType(_26a)=="Decimal"){ var _26b=_26a.getAttribute("precision"); if(_26b){ return _26b; } } return ""; }; D_AddPersonalWizard.F_SetDataItemAttributesList=function(){ if(this.m_sProcessResponse==""&&(!this.m_oPecXML)){ this.m_oLvColumnsDataItem.F_Clear(); this.m_oLvColumnsDataItem.F_Draw(); return; } var _26c=0; var _26d=this.m_oLvColumns.F_GetCheckedListItems(); this.m_oLvColumnsDataItem.F_Clear(); var _26e=this.m_oPecXML.selectNodes("/pdSpec/personalData/item"); var _26f=null; for(var i=0;i<_26e.length;i++){ var _270=_26e.item(i); var _271=_270.getAttribute("name"); if(_26c>=_26d.length){ break; } if(_271==_26d.item(_26c).getAttribute("label")){ var _272; _272=this.m_oLvColumnsDataItem.F_AppendNewListItem(); if(_26f==null){ _26f=_272; } _272.setAttribute("label",_271); var _273=U_XML.F_AppendChild(_272,"subItem"); _273.setAttribute("label",this.F_GetItemDataTypeLabel(_270)); _273.setAttribute("serverDatatype",_270.getAttribute("datatype")); U_XML.F_AppendChild(_272,"subItem").setAttribute("label",this.F_GetItemAggregate(_270)); if(this.F_GetItemScale(_270)!=null){ U_XML.F_AppendChild(_272,"subItem").setAttribute("label",this.F_GetItemScale(_270)); }else{ U_XML.F_AppendChild(_272,"subItem").setAttribute("label",""); } _26c++; } } this.m_oLvColumnsDataItem.F_Draw(); if(_26f){ this.m_oLvColumnsDataItem.F_SelectListItem(_26f,true); } }; D_AddPersonalWizard.F_SetColumnList=function(_274,_275){ var _276=this.m_bIsModify?_274:U_XML.F_LoadString(null,this.m_sProcessResponse); this.m_aColumnsList=[]; var _277=_276.selectNodes("/pdSpec/personalData/item"); if(_275){ var _278=_276.selectNodes("/pdSpec/dataSet/accessDirectly").item(0); if(_278){ this.F_GetDlgItem("chkAlwaysTryToLoad").checked=_278.text=="true"; }else{ this.F_GetDlgItem("chkAlwaysTryToLoad").checked=false; } } var _279=_276.selectNodes("/pdSpec/dataSet/name").item(0); if(_279){ this.F_GetDlgItem("txtText").value=_279.text.replace(/[#&"'\[\]]/g,""); } for(var i=0;i<_277.length;i++){ this.m_aColumnsList[i]=[]; var _27a=_277.item(i).getAttribute("name"); var _27b=_277.item(i).getAttribute("ID"); var _27c=_277.item(i).getAttribute("hidden"); this.m_aColumnsList[i].m_sLabel=_27a; this.m_aColumnsList[i].m_sName=_27b; if(_27c&&(_27c=="true")){ this.m_aColumnsList[i].m_sSelected="false"; }else{ this.m_aColumnsList[i].m_sSelected="true"; } } this.m_oLvColumns.F_Clear(); for(var i=0;i(this.m_divLeft.offsetTop+this.m_divLeft.offsetHeight)){ _296=this.m_divLeft.offsetTop+this.m_divLeft.offsetHeight+_293; } _296-=this.m_divLinks.offsetTop; var _297=this.m_divRight.offsetTop+_295+_293-this.m_divRight.scrollTop; if(_297(this.m_divRight.offsetTop+this.m_divRight.offsetHeight)){ _297=this.m_divRight.offsetTop+this.m_divRight.offsetHeight+_293; } _297-=this.m_divLinks.offsetTop; if(!_28d.M_elPolyLine){ var fn=this.f_asyncSelectLink.F_CreateMethodCallback(this,i); if(G_BrowserInfo.M_bIsIE){ _28d.M_elPolyLine=this.m_divLinks.appendChild(d.createElement("")); _28d.M_elPolyLine.onmousedown=fn; var _298=""; _28d.M_elLeftRect=this.m_divLinks.appendChild(d.createElement(_298)); _28d.M_elLeftRect.onmousedown=fn; _28d.M_elRightRect=this.m_divLinks.appendChild(d.createElement(_298)); _28d.M_elRightRect.onmousedown=fn; _28d.M_elRightRect.style.left=(_292-8)+"px"; }else{ _28d.M_elPolyLine=this.m_elSvg.appendChild(d.createElementNS("http://www.w3.org/2000/svg","polyline")); _28d.M_elPolyLine.setAttribute("points","0,0 10,10 20,20 30,30"); _28d.M_elPolyLine.setAttribute("fill","none"); _28d.M_elPolyLine.setAttribute("stroke","#C0C0C0"); _28d.M_elPolyLine.setAttribute("stroke-width","1px"); _28d.M_elPolyLine.onmousedown=fn; _28d.M_elLeftRect=this.m_elSvg.appendChild(d.createElementNS("http://www.w3.org/2000/svg","rect")); _28d.M_elLeftRect.setAttribute("stroke","#C0C0C0"); _28d.M_elLeftRect.setAttribute("stroke-width","0px"); _28d.M_elLeftRect.setAttribute("fill","#C0C0C0"); _28d.M_elLeftRect.setAttribute("width","8px"); _28d.M_elLeftRect.setAttribute("height","8px"); _28d.M_elLeftRect.setAttribute("y","0"); _28d.M_elLeftRect.setAttribute("x","0"); _28d.M_elLeftRect.onmousedown=fn; _28d.M_elRightRect=this.m_elSvg.appendChild(d.createElementNS("http://www.w3.org/2000/svg","rect")); _28d.M_elRightRect.setAttribute("stroke","#C0C0C0"); _28d.M_elRightRect.setAttribute("stroke-width","0px"); _28d.M_elRightRect.setAttribute("fill","#C0C0C0"); _28d.M_elRightRect.setAttribute("width","8px"); _28d.M_elRightRect.setAttribute("height","8px"); _28d.M_elRightRect.setAttribute("y","0"); _28d.M_elRightRect.setAttribute("x",(_292-8).toString()); _28d.M_elRightRect.onmousedown=fn; } } if(G_BrowserInfo.M_bIsIE){ _28d.M_elPolyLine.points.item(0).value="0px,"+_296+"px"; _28d.M_elPolyLine.points.item(1).value="16px,"+_296+"px"; _28d.M_elPolyLine.points.item(2).value=(_292-16)+"px,"+_297+"px"; _28d.M_elPolyLine.points.item(3).value=_292+"px,"+_297+"px"; _28d.M_elLeftRect.style.top=(_296-4)+"px"; _28d.M_elRightRect.style.top=(_297-4)+"px"; }else{ _28d.M_elPolyLine.setAttribute("points","0,"+_296+" "+"16,"+_296+" "+(_292-16)+","+_297+" "+_292+","+_297); _28d.M_elLeftRect.setAttribute("y",(_296-4).toString()); _28d.M_elRightRect.setAttribute("y",(_297-4).toString()); } }; D_AddPersonalWizard.f_isLineSelected=function(_299,v_iX,v_iY){ if(!_299){ return false; } return _299.M_elPolyLine.F_IsOnLine(v_iX,v_iY); }; D_AddPersonalWizard.f_asyncSelectLink=function(i){ setTimeout(this.f_selectLink.F_CreateMethodCallback(this,i),0); }; D_AddPersonalWizard.f_selectLink=function(i){ this.m_iSelectedLink=i; this.f_showSelectedLink(); this.f_updateLinkButtons(); }; D_AddPersonalWizard.f_getLink=function(_29a,_29b){ if(this.m_aLinks&&this.m_aLinks.length){ for(var i=0;i=0;i--){ var _2a0=this.m_aLinks[i]; if(_2a0){ _2a0.M_nLeftListItem=null; _2a0.M_nRightListItem=null; this.m_iSelectedLink=i; if(_2a0.M_elPolyLine){ _2a0.M_elPolyLine.parentNode.removeChild(_2a0.M_elPolyLine); _2a0.M_elLeftRect.parentNode.removeChild(_2a0.M_elLeftRect); _2a0.M_elRightRect.parentNode.removeChild(_2a0.M_elRightRect); _2a0.M_elPolyLine=null; _2a0.M_elLeftRect=null; _2a0.M_elRightRect=null; } if(_29f){ this.m_aLinks.splice(this.m_iSelectedLink,1); } } } } }; D_AddPersonalWizard.F_ListView_OnScroll=function(_2a1){ if(_2a1==this.m_oExternalQSList||_2a1==this.m_oExistingQSList){ this.f_updateLinks(); } }; D_AddPersonalWizard.F_AlignLinkTypes=function(_2a2){ var _2a3=_2a2.M_sLeftDataItem; var _2a4=null; var _2a5=this.m_oPecXML.selectNodes("/pdSpec/personalData/item"); var _2a6=-1; for(var i=0;i<_2a5.length;i++){ var _2a7=_2a5.item(i).getAttribute("ID"); if(_2a7==_2a3){ _2a6=i; break; } } if(_2a6==-1){ return; } _2a4=_2a5.item(_2a6); var _2a8=null; if(this.m_nExistingReportExtract){ var nl=this.m_nExistingReportExtract.selectNodes("reportSubject/item"); var _2a9=nl.length; var i=0; for(i=0;i<_2a9;i++){ var n=nl.item(i); if(_2a2.M_sRightDataItem==n.getAttribute("ID")){ _2a8=n; break; } } } if(this.m_nExistingQSListItems){ var nl=this.m_nExistingQSListItems.selectNodes("queryItem | calculation"); var _2a9=nl.length; var i=0; for(i=0;i<_2a9;i++){ var n=nl.item(i); if(_2a2.M_sRightDataItem==n.getAttribute("ID")){ _2a8=n; break; } } } if(_2a8==null){ return; } var _2aa=this.F_GetItemDataType(_2a8); var _2ab=this.F_GetItemDataType(_2a4); if(_2aa!=_2ab){ if(((_2aa=="Integer")||(_2aa=="Text"))&&((_2ab=="Integer")||(_2ab=="Text"))){ this.F_SetItemDataType(_2a6,_2aa); } } this.F_SetItemAsIdentifier(_2a2.M_sLeftDataItem); }; D_AddPersonalWizard.f_LinkedList_OnItemClick=function(_2ac,_2ad,_2ae){ if(!G_BrowserInfo.M_bIsIE&&!G_HAL.M_oLibraries["hal"]["enableAccessibility"]){ this.F_SetFocusToDefaultButton(); } if(this.m_iSelectedLink==-1){ return; } if(_2ad.getAttribute("selectable")=="false"){ return; } var _2af=this.m_aLinks[this.m_iSelectedLink]; if(_2ac.F_GetId()=="D_AddPersonalWizard_divExternalItems"){ var _2b0=_2af.M_sLeftDataItem; _2af.M_sLeftDataItem=_2ad.getAttribute("ID"); _2af.M_nLeftListItem=null; if(this.f_countLinks(_2b0)<1){ this.f_resetItemData(_2b0); } }else{ _2af.M_sRightDataItem=_2ad.getAttribute("_ref"); _2af.M_nRightListItem=null; } this.F_AlignLinkTypes(_2af); this.f_updateLink(_2af,this.m_iSelectedLink); this.f_showSelectedLink(); this.m_bReadIncomingMappingOptions=true; }; D_AddPersonalWizard.f_countLinks=function(_2b1){ var _2b2=0; if(this.m_aLinks&&this.m_aLinks.length){ for(var i=this.m_aLinks.length-1;i>=0;i--){ var _2b3=this.m_aLinks[i]; if(_2b3&&(_2b3.M_sLeftDataItem==_2b1)){ _2b2++; } } } return _2b2; }; D_AddPersonalWizard.f_onKeyDown=function(e){ if(this.m_oDeck.F_GetIndex()==D_AddPersonalWizard.K_iLinksPage){ e=e||window.event; if((e.keyCode==U_DOM.K_iKeyDelete)&&(this.m_iSelectedLink!=-1)){ this.f_removeLink(this.m_iSelectedLink); } } this.M_fnSuper_OnKeyDown(e); }; D_AddPersonalWizard.f_removeLink=function(_2b4){ if(_2b4<0||_2b4>=this.m_aLinks.length){ return; } var _2b5=this.m_aLinks[_2b4]; _2b5.M_elPolyLine.parentNode.removeChild(_2b5.M_elPolyLine); _2b5.M_elLeftRect.parentNode.removeChild(_2b5.M_elLeftRect); _2b5.M_elRightRect.parentNode.removeChild(_2b5.M_elRightRect); this.m_aLinks.splice(_2b4,1); if(_2b4==this.m_iSelectedLink){ this.f_setSelectedIndexToFirstLink(); } this.f_showSelectedLink(); this.f_updateLinkAttributes(); this.f_updateLinkButtons(); }; D_AddPersonalWizard.F_NewLink=function(){ var _2b6={}; var _2b7=this.m_oExternalQSList.F_GetSelectedListItem(); if(_2b7==null||this.m_iSelectedLink!=-1){ _2b7=C_ListView.F_FindListItemByIndex(this.m_oExternalQSList.F_GetListViewNode(),0); } _2b6.M_sLeftDataItem=_2b7.getAttribute("ID"); var _2b8=this.m_oExistingQSList.F_GetSelectedListItem(); if(_2b8==null||this.m_iSelectedLink!=-1){ var _2b9=this.m_oExistingQSList.F_GetListItems(); var _2ba=_2b9.length; for(var i=0;i<_2ba;i++){ var _2bb=_2b9.item(i); if(_2bb.getAttribute("selectable")!="false"){ _2b8=_2bb; break; } } if(_2b8==null){ return; } } _2b6.M_sRightDataItem=_2b8.getAttribute("_ref"); this.m_aLinks.push(_2b6); if(this.m_aLinks.length==1){ this.f_setDefaultLinkAttributes(); } this.m_iSelectedLink=this.m_aLinks.length-1; this.f_updateLink(_2b6,this.m_iSelectedLink); this.F_AlignLinkTypes(_2b6); this.f_showSelectedLink(); this.f_updateLinkButtons(); }; D_AddPersonalWizard.F_DeleteLink=function(){ if(this.m_iSelectedLink!=-1){ this.f_removeLink(this.m_iSelectedLink); } }; D_AddPersonalWizard.f_onExternalValueClicked=function(){ if(this.m_radAllValUniqueExternal.checked==true){ U_DOM.F_SetRadioButtonEnabled(this.m_radMorethanOnceExisting,true); }else{ if(this.m_radMorethanOnceExternal.checked==true){ this.m_radAllValUniqueExisting.checked=true; this.m_radMorethanOnceExisting.checked=false; U_DOM.F_SetRadioButtonEnabled(this.m_radMorethanOnceExisting,false); } } this.f_updateMappingControlStates(); }; D_AddPersonalWizard.f_onExistingValueClicked=function(){ if(this.m_radAllValUniqueExisting.checked==true){ U_DOM.F_SetRadioButtonEnabled(this.m_radMorethanOnceExternal,true); }else{ if(this.m_radMorethanOnceExisting.checked==true){ this.m_radAllValUniqueExternal.checked=true; this.m_radMorethanOnceExternal.checked=false; U_DOM.F_SetRadioButtonEnabled(this.m_radMorethanOnceExternal,false); } } this.f_updateMappingControlStates(); }; D_AddPersonalWizard.f_updateMappingControlStates=function(){ var _2bc=D_AddPersonalWizard.K_iOneToOne; var _2bd=D_AddPersonalWizard.K_iOneToOne; if(this.m_radAllValUniqueExternal.checked==true){ if(this.m_radExternalExcludeMissingValues.checked==true){ _2bc=D_AddPersonalWizard.K_iOneToOne; }else{ _2bc=D_AddPersonalWizard.K_iOptToOne; } }else{ if(this.m_radExternalExcludeMissingValues.checked==true){ _2bc=D_AddPersonalWizard.K_iOneToMany; }else{ _2bc=D_AddPersonalWizard.K_iOptToMany; } } if(this.m_radAllValUniqueExisting.checked==true){ if(this.m_radExistingExcludeMissingValues.checked==true){ _2bd=D_AddPersonalWizard.K_iOneToOne; }else{ _2bd=D_AddPersonalWizard.K_iOptToOne; } }else{ if(this.m_radExistingExcludeMissingValues.checked==true){ _2bd=D_AddPersonalWizard.K_iOneToMany; }else{ _2bd=D_AddPersonalWizard.K_iOptToMany; } } this.m_spanExternalCardinality.innerHTML=this.m_nlCardinalityLabels.item(_2bc).getAttribute("label"); this.m_spanExistingCardinality.innerHTML=this.m_nlCardinalityLabels.item(_2bd).getAttribute("label"); this.m_spanExternalCardinality.style.visibility=this.m_spanExternalCardinality.innerHTML?"visible":"hidden"; this.m_spanExistingCardinality.style.visibility=this.m_spanExistingCardinality.innerHTML?"visible":"hidden"; }; D_AddPersonalWizard.f_updateLinkAttributes=function(_2be){ this.m_oColExternalLink.F_Clear(); this.m_oColExistingLink.F_Clear(); if(this.m_aLinks&&(this.m_aLinks.length)&&(this.m_aLinks.length>0)){ this.m_aTipText[D_AddPersonalWizard.K_iLinkAttribPage]="IDS_WIZ_ADDPERSONAL_SUBTITLE_SELECT_MAPPINGOPTIONS"; U_DOM.F_SetRadioButtonEnabled(this.m_radMorethanOnceExisting,true); U_DOM.F_SetRadioButtonEnabled(this.m_radMorethanOnceExternal,true); U_DOM.F_SetRadioButtonEnabled(this.m_radAllValUniqueExisting,true); U_DOM.F_SetRadioButtonEnabled(this.m_radAllValUniqueExternal,true); U_DOM.F_SetRadioButtonEnabled(this.m_radExternalExcludeMissingValues,true); U_DOM.F_SetRadioButtonEnabled(this.m_radExternalIncludeMissingValues,true); U_DOM.F_SetRadioButtonEnabled(this.m_radExistingExcludeMissingValues,true); U_DOM.F_SetRadioButtonEnabled(this.m_radExistingIncludeMissingValues,true); this.f_updateLinks(); for(var i=0;i/configuration/pageDefinition"+""+"defaultName"+"searchPath"+"width"+"height"+"unit"+""+""; var _2d3=C_BusRequest.F_CreateContext(this.e_RequestPaperSize); _2d3.m_oListener=_2d1; var _2d4=new C_BusRequest(this,C_BusRequest.K_sSOAPAction_contentManagerService,_2d2); _2d4.F_SetContext(_2d3); D_Progress.F_SendRequest(_2d4,_2d0,G_ResManager.F_GetString("IDS_MSG_LOADING_PAGESIZES")); }; G_ContentManager.e_RequestPaperSize=1; G_ContentManager.F_Request_OnComplete=function(_2d5){ var _2d6=_2d5.F_GetError(); if(_2d6){ F_ShowError(_2d6); } var _2d7=_2d5.F_GetContext(); var _2d8=_2d5.F_GetResponse(); switch(_2d7.m_eType){ case this.e_RequestPaperSize: this.m_nPaperSizesResponse=_2d8?_2d8.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/queryResult"):null; _2d7.m_oListener.F_ContentManager_OnPaperSizesLoaded(); break; } }; G_ContentManager.F_GetPaperSizeLabel=function(_2d9){ if(this.m_nPaperSizesResponse){ var n=this.m_nPaperSizesResponse.selectSingleNode("item[searchPath/value/text()="+_2d9.F_ToXPathString()+"]/defaultName/value"); if(n){ return n.text; } } return _2d9; }; G_ContentManager.F_AddPaperSizesToListView=function(_2da,_2db){ U_Utils.F_AddDefaultListItem(_2da.F_GetListViewNode()); if(_2db){ var _2dc=_2da.F_AppendNewListItem(); _2dc.setAttribute("idsLabel","IDS_PROPVAL_CUSTOM"); _2dc.setAttribute("value","custom"); } if(this.m_nPaperSizesResponse){ var nl=this.m_nPaperSizesResponse.selectNodes("item"); for(var i=0;i//dataSource[@shown='true'][permission('read') or permission('write') or permission('traverse') or permission('execute')]"+""+""+"defaultName"+"ascending"+""+""+""+"defaultName"+""+""; return new C_BusRequest(_2e0,C_BusRequest.K_sSOAPAction_contentManagerService,_2e1); }; G_ContentManager.F_ProcessCmResponse=function(_2e2){ return _2e2?_2e2.selectSingleNode("/SOAP-ENV:Envelope/SOAP-ENV:Body/*/queryResult"):null; }; G_ContentManager.F_CreateSaveDocumentRequest=function(_2e3,_2e4,_2e5,_2e6,_2e7,_2e8,_2e9){ var _2ea="bus:"+_2e7; var _2eb=U_Report.F_GetXML(_2e4); var _2ec=""; if(_2e8){ _2ec=""+""+_2e5.F_XMLEncode()+""+""+""+""+_2e6.F_XMLEncode()+""+""+""+""+_2eb.F_XMLEncode()+""+""+""+""+""+""+""+""+(_2e9?"fail":"replace")+""+""+""; }else{ var _2ed=(_2e6.indexOf("\"")==-1)?"\"":"'"; _2ec=""+""+""+""+_2e5.F_XMLEncode()+"/"+_2e7+"[@name="+_2ed+_2e6.F_XMLEncode()+_2ed+"]"+""+""+""+_2eb.F_XMLEncode()+""+""+""+""+""+""+""+""; } G_ContentManager.m_sLastDocumentRequest=_2ec; G_ContentManager.m_sLastDocumentResponse=""; return new C_BusRequest(_2e3,C_BusRequest.K_sSOAPAction_reportService,_2ec); }; function C_AddCMObjectRequest(_2ee,_2ef,_2f0,_2f1,_2f2,_2f3){ this.m_sNewPath=""; var _2f4=""; if(!_2f2){ _2f2="fail"; } if(_2f3){ _2f4=""+""+_2f3.F_XMLEncode()+""+""; } var _2f5=""+""+_2ef.F_XMLEncode()+""+""+""+""+""+_2f0.F_XMLEncode()+""+""+_2f4+""+""+""+""+_2f2+""+""+""; G_ContentManager.m_sLastDocumentRequest=_2f5; G_ContentManager.m_sLastDocumentResponse=""; this.F_ConstructBaseClass(_2ee,C_BusRequest.K_sSOAPAction_contentManagerService,_2f5); }; C_AddCMObjectRequest.F_Extends(C_BusRequest); C_AddCMObjectRequest.prototype.F_GetNewPath=function(){ return this.m_sNewPath; }; C_AddCMObjectRequest.prototype.F_ProcessResponse=function(){ C_AddCMObjectRequest.superClass.F_ProcessResponse.call(this); var _2f6=this.F_GetResponse(); if(_2f6){ var _2f7=_2f6.selectSingleNode(".//addResult/item/searchPath/value"); this.m_sNewPath=_2f7.text; } }; G_ContentManager.F_CreateRenameObjectRequest=function(_2f8,_2f9,_2fa,_2fb){ if(_2fa=="folder"){ var _2fc=""+""+""+""+""+_2fb.F_XMLEncode()+""+""+""+""+_2f9.F_XMLEncode()+""+""+""+""+""+""; G_ContentManager.m_sLastDocumentRequest=_2fc; G_ContentManager.m_sLastDocumentResponse=""; return new C_BusRequest(_2f8,C_BusRequest.K_sSOAPAction_contentManagerService,_2fc); } var _2fc=""+""+""+""+_2f9.F_XMLEncode()+""+""+""+""+_2fb.F_XMLEncode()+""+""+""+""+""; G_ContentManager.m_sLastDocumentRequest=_2fc; G_ContentManager.m_sLastDocumentResponse=""; return new C_BusRequest(_2f8,C_BusRequest.K_sSOAPAction_reportService,_2fc); }; G_ContentManager.F_CreateDeleteObjectRequest=function(_2fd,_2fe){ var _2ff=""+""+_2fe.F_XMLEncode()+""+""+"true"+"true"+""+""; G_ContentManager.m_sLastDocumentRequest=_2ff; G_ContentManager.m_sLastDocumentResponse=""; return new C_BusRequest(_2fd,C_BusRequest.K_sSOAPAction_contentManagerService,_2ff); }; G_ContentManager.F_UpdateRequestSucceed=function(_300){ G_ContentManager.m_sLastDocumentResponse=_300?_300.xml:""; return (_300!=null); }; var G_Model=new C_ModelCache(); G_Model.m_aListeners=[]; G_Model.F_ReloadModel=function(_301){ if(!this.F_ModelEnabled()){ return; } if(this.F_GetModelRootResponses()){ this.F_ClearModelCache(); } this.m_aListeners.F_CallEach("F_Model_OnLoad"); var _302=new C_ModelRootRequest(this,this); _302.F_SetContext(_301); D_Progress.F_SendRequest(_302,null,G_ResManager.F_GetString("IDS_MSG_LOADING_MODEL"),G_UserDataSettings.F_GetValue("LoadingModelDialogDelay")); }; G_Model.F_Request_OnComplete=function(_303){ switch(_303.constructor){ case C_ModelRootRequest: this.m_aListeners.F_CallEach("F_Model_OnLoadComplete"); var _304=_303.F_GetError(); var _305=_303.F_GetContext(); if(_304){ F_ShowError(_304,_305); return; } if(_305){ _305(); } break; } }; G_Model.F_Request_OnAborted=function(_306){ this.m_aListeners.F_CallEach("F_Model_OnAbortLoad"); }; G_Model.F_AddListener=function(_307){ this.m_aListeners.push(_307); }; G_Model.F_RemoveListener=function(_308){ this.m_aListeners.F_RemoveItem(_308); }; G_Model.F_CreateSharedSetsReportRequest=function(_309,_30a,_30b,_30c){ return new C_SharedSetsStoreIDAndPathReportRequest(_309,_30a,_30b,_30c); }; G_Model.f_getAllSharedSetsPackagesAndReports=function(_30d){ return U_SharedSets.F_GetAllModelsAndReports(); }; G_Model.f_setAllSharedSetsPackagesAndReports=function(_30e){ G_UserDataSettings.F_SetValue("SharedSetsCache",_30e.F_GetSharedSetsDoc().xml,false); }; G_Model.F_GetSharedSetProperties=function(d){ return U_SharedSets.F_GetSharedSetProperties(d.documentElement); };