123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: irot
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function _ei6(_jf2, _3c6, _vl7, _3a4){_be9._452("_4l6");_be9._452("_rq7");_be9._452("_1u5");_be9._452("_1k4");_ei6.baseConstructor.call(this, _3c6, _vl7);this._nu7=[];this._qb2=_jf2;this._u54=_3a4;this._yk2();this._ik1();if(_3c6.nodeName==="treeView"){_3c6.setAttribute("showCheckboxes", this._3f5?"true":"false");}else{this._cr4(_3c6);}if(this._ds4){this._qb2.classList.add(_1k4._bb5);this._qb2.setAttribute("nemesis_id","PromptControl");if(_kx5._y14){this._qb2.classList.add(_1k4._cb5);}if(_fe9._a04(this._qb2)){this._qb2.classList.add("clsDirectionRtl");}}this._a99();this._252(this._4p6, "min-width: 200px; width: 300px; min-height: 200px; height: 400px");this._uq4();};_9t7._v88(_ei6, _1k4);_ei6.prototype._1o8=function(){if(this._9d7&&this._9d7._1o8){this._9d7._1o8();}while(this._nu7.length>0){var _dj8=this._nu7.pop();_dj8.remove();}};_ei6.prototype._ck2=function(_tp7,_nk7){var _kf4=this._x74;if(_kf4&&_kf4[_tp7]!==undefined){_nk7.setAttribute("selected", "true");delete _kf4[_tp7];}};_ei6.prototype._cr4=function(_3c6){var _qp7='<treeView id="PromptTree_' + _3c6.getAttribute("id") + '" multiSelect="false" forceSelection="true"></treeView>';this._iq8=_ie9._yj6(undefined, _qp7);var _ok7=this._iq8.documentElement;_ok7.setAttribute("multiSelect", this._3f5?"true":"false");var _v28=_3c6.selectSingleNode("selectOptions");if(_v28){this._ka2=_v28.getAttribute("memberDisplayCountDefault")?Number(_v28.getAttribute("memberDisplayCountDefault")):20;var _xk7=_v28.selectNodes("./selectTreeOption");if(_xk7&&_xk7.length>0){var _0b9, _ei8, _nk7, _tp7;for(_0b9=0; _0b9<_xk7.length; _0b9++){_ei8=_xk7.item(_0b9);_nk7=_ok7.appendChild(_ok7.ownerDocument.createElement("treeNode"));_tp7=_ei8.getAttribute("useValue");_nk7.setAttribute("label", _ei8.getAttribute("displayValue"));_nk7.setAttribute("value", _tp7);_nk7.setAttribute("tooltip", _tp7);_nk7.setAttribute("idsExtraAriaLabel", "IDS_CCHL_AC_TYPE_MEMBER");_nk7.setAttribute("expandable", "true");this._ck2(_tp7, _nk7);}if(_v28.getAttribute("moreData")=="true"){_nk7=_ok7.appendChild(_ok7.ownerDocument.createElement("treeNode"));_nk7.setAttribute("label", this._sd7);_nk7.setAttribute("stateSmallIcon", "icon_more.gif");_nk7.setAttribute("anchorNode", "true");_nk7.setAttribute("idsExtraAriaLabel", "IDS_CCHL_AC_TYPE_MEMBER");_nk7.setAttribute("expandable", "false");_ok7.setAttribute("skipValueCount", this._ka2);}else{_ok7.setAttribute("skipValueCount", 0);}}if(_v28.getAttribute("moreData")=="true"){}}};_ei6.prototype._yk2=function(){_ei6.superClass._yk2.call(this);this._nd7=this._j74.getAttribute("refQuery")||"";this._sd7=this._ol2("PMT_TRE_MORE", "IDS_HAL_AC_MORE_TREE_ITEMS");if(this._3f5===true){this._h94=this._j74.getAttribute("resultsSelectAllText")||this._ol2( "PMT_UIM_SELECTALL", "IDS_CCHL_PRMT_SELECTALL" );this._573=this._j74.getAttribute("resultsDeselectAllText")||this._ol2( "PMT_UIM_DESELECTALL", "IDS_CCHL_PRMT_DESELECTALL" );}this._1a2=(this._j74.getAttribute("parameterizedTree")=="true");this._gb7=this._1a2||this._gb7;};_ei6.prototype._821=function(){var _af1='';if(this._1a2){var _3z6, _k15=this._j74.selectNodes("selectHierarchies/selectHierarchy");var _ek7=this._j74.selectSingleNode("selectHierarchyChoice/selectOption");var _tp7, _c45, _vu2=_ek7?(_ek7.getAttribute("useValue")||""):"";_af1 += "<div class='pv' style='padding-bottom: 3px'><select class='clsSelectHierarchies clsComboBox' style='width: 100%'>";_af1 += "<option>" + _jp8._hj6(this._j74.getAttribute("columnName")||"") + "</option>";_af1+= "<option>--------------------------------------------</option>";this._c73=_vu2;this._kb2="<selectHierarchies>";for(var _0b9=0; _0b9<_k15.length; _0b9++){_3z6=_k15.item(_0b9);_tp7=_3z6.getAttribute("useValue");_c45=_3z6.getAttribute("displayValue");_af1 += "<option value='" + _jp8._hj6(_tp7||"") + ((_vu2&&_vu2==_tp7)?"' selected>":"'>") +_jp8._hj6(_c45||"") + "</option>";this._kb2 += "<selectHierarchy useValue='" + _tp7 + "' displayValue='" + _c45 + "'></selectHierarchy>";}_af1+= "</select></div>";this._kb2+= "</selectHierarchies>";}return _af1;};_ei6.prototype._fk1=function(_kc3){this._rf1();if(!_kc3){this._9d7._az8();this._9d7._f89();this._c73="";return;}else if(_kc3==this._c73){return;}var _u51={_promptControl: 'reprompt',encoding: 'UTF-8'};var _ri4='<selectChoices></selectChoices>';_u51['_swt_' + this._qr6 + '_hierarchy'] = _jp8._s77(_kc3); _u51['_swt_' + this._qr6 + '_hierarchies'] = _jp8._s77(this._kb2);_u51['p_'+this._qr6]=_jp8._s77(_ri4);this._0d7._xf1(_u51);};_ei6.prototype._a99=function(){var _c65=this._qb2.insertRow(0).insertCell(0);var _r47=(this._ds4?'pa':'clsTreeView');_c65.innerHTML ='<div class="clsPromptTree" style="display: flex; flex-direction: row;' + (_fe9._a04(this._qb2)?'text-align:right;':'text-align:left;') + '">' +'<div class="clsAdormentArea" style="padding: 0 2px 0 2px"><div></div><div></div></div>' +'<div style="flex: 1 0 auto; display: flex; flex-direction: column">' +this._821()+'<div style="flex: 1 0 auto; position: relative">' +'<div class="' + _r47 + '" id="'+this._qb2.id+'_TreePrompt" style="position: absolute; top: 0; right: 0; bottom: 0; left: 0"></div>' +'</div>'+'<div class="clsMultiSelectArea clsDialogText" style="text-align: right; padding: 5px 5px 0 0">' +'<a class="clsHyperlink' + (this._ds4?' pl':'') + '" href="#"></a>' +'</div>'+'</div>'+'</div>';this._4p6=_c65.firstChild; this._g26=this._4p6.getElementsByClassName(_r47)[0];this._hf5=this._4p6.getElementsByClassName("clsAdormentArea")[0];this._aa2=this._4p6.getElementsByClassName("clsMultiSelectArea")[0];if(this._qm3===false){if(this._gb7===true){this._0a1(this._hf5.firstChild);}}else{this._hf5.style.display="none";}this._9d7=new _rq7(this._g26,(this._iq8?this._iq8.documentElement:this._j74), this);this._9d7._kd3=function(){_rq7.prototype._kd3.call(this._9d7);if(this._x74){this._nw1=true;}}.bind(this);var _gg8;if(this._3f5===true){this._aa2.classList.add("clsPromptHyperlinksContainer");var _696=this._aa2.firstChild;_696.innerHTML=this._573;_gg8=this._mq4.bind(this);_696.addEventListener("click", _gg8);this._nu7.push({remove: function(){_696.removeEventListener("click", _gg8);}});_696.addEventListener("keydown", _gg8);this._nu7.push({remove: function(){_696.removeEventListener("keydown", _gg8);}});}else{this._aa2.style.display="none";}if(this._1a2){var _108=this._4p6.getElementsByClassName("clsSelectHierarchies")[0];_gg8=function(evt){evt.stopPropagation();if(evt.target.selectedIndex>=0){var _yz7=evt.target.options[evt.target.selectedIndex];this._fk1(_yz7.getAttribute("value")||"");}}.bind(this);_108.addEventListener("change", _gg8);this._nu7.push({remove: function(){_108.removeEventListener("change", _gg8);}});}this._516=this._t21();if(this._516&&this._516.length>0){this._vf(this._516, this._9d7._af3());}};_ei6.prototype._5i3=function(){this._9d7._kd3(true);if(this._x74){this._x74=null;}this._uq4();};_ei6.prototype._mq4=function(event){event.stopPropagation();if(event.type==="click"||(event.type==="keydown"&&event.keyCode===_fe9._687)){this._5i3();}};_ei6.prototype._i97=function(){var _8s8=this._9d7._7x2(), _le8=[];for(var _0b9=0; _0b9<_8s8.length; _0b9++){_le8.push(_rq7._dx2(_8s8[_0b9]));}return _le8;};_ei6.prototype._uc=function(_em7,_nk7){if(this._iq8){this._hc7=_nk7;var _tp7=_nk7.getAttribute("value")||"";var _c45=_nk7.getAttribute("label")||_tp7;var _nm7=this._hc7.getAttribute("skipValueCount");return this._q72(_c45, _tp7,(_nm7?Number(_nm7):0));}return false;};_ei6.prototype._c42=function(_e48){if(_e48){var _uj8=_e48._6x2();this._991(_uj8.options, _uj8.skipCount, _uj8.moreData);var _jt3=_e48._uh2();if(_jt3){this._bd(_jt3);}this._wu();if(this._516&&this._516.length>0&&_uj8.options&&_uj8.options.length>0){this._vf(this._516, this._9d7._af3());}}};_ei6.prototype._q72=function(_c45,_tp7,_7y6){var _rs8=true;var _y73=[{name: this._qr6, display: _c45, use: _tp7}];var _jt3=this._s62();this._hw7=new _ii(this, _jt3, _y73, _7y6, this._ka2);this._hw7._v89();this._vk();return _rs8;};_ei6.prototype._991=function(_p15,_7y6,_sf7){if(_p15){var _zb6=this._hc7||this._9d7._af3();var _4f9=_zb6.ownerDocument;var _nb9, _nk7;for(var i=0; i<_p15.length; i++){var _ei8=_p15.item(i);var _tp7=_ei8.getAttribute("useValue");var _c45=_ei8.getAttribute("displayValue");if(_tp7){_nk7=_zb6.appendChild(_4f9.createElement("treeNode"));_nk7.setAttribute("label", _c45);_nk7.setAttribute("value", _tp7);_nk7.setAttribute("tooltip", _tp7);_nk7.setAttribute("idsExtraAriaLabel", "IDS_CCHL_AC_TYPE_MEMBER");_nk7.setAttribute("expandable", "true");this._ck2(_tp7, _nk7);}}if(_sf7){_nk7=_zb6.appendChild(_4f9.createElement("treeNode"));_nk7.setAttribute("label", this._sd7);_nk7.setAttribute("stateSmallIcon", "icon_more.gif");_nk7.setAttribute("anchorNode", "true");_nk7.setAttribute("idsExtraAriaLabel", "IDS_CCHL_AC_TYPE_MEMBER");_nk7.setAttribute("expandable", "false");_zb6.setAttribute("skipValueCount", _7y6+this._ka2);}else{_zb6.setAttribute("skipValueCount", 0);}this._9d7._k75(true);}else{this._9d7._k75(false);}};_ei6.prototype._z22=function(){var _8s8=this._9d7._7x2(), _le8=[];var _k59, _np5;for(var _0b9=0; _0b9<_8s8.length; _0b9++){_k59=_8s8[_0b9];_np5=new _1u5(false, null, _1u5._509, undefined);_np5._5x5(_k59.getAttribute("value"), _qx3._u87);_np5._gv4=_k59.getAttribute("label");_le8.push(_np5);}var _nc9, _kf4=this._x74||{};for(_nc9 in _kf4){if(_kf4.hasOwnProperty(_nc9)){_np5=new _1u5(false, null, _1u5._509, undefined);_np5._5x5(_nc9, _qx3._u87);if(_kf4[_nc9]!=null){_np5._hg3(_kf4[_nc9], _qx3._u87);}_le8.push(_np5);}}return _le8;};_ei6.prototype._fu7=function(){if(this._gb7===true){this._0a2=this._s26?this._s26(this._q67()):(this._9d7._7x2().length>0||this._v13()===true);}else{this._0a2=true;}if(this._0a2){this._g26.classList.remove("clsRequiredBorder");this._wu();}else{this._g26.classList.add("clsRequiredBorder");this._vk();}};_ei6.prototype._uq4=function(_em7,_nk7,_am5){this._fu7();if(this._0d7&&this._0d7._gc){this._0d7._gc(this);}};_ei6.prototype._lh1=function(_em7,_nk7,_am5){if(this._x74&&this._nw1){this._x74=null;delete this._nw1;}this._uq4(_em7, _nk7, _am5);};_ei6.prototype._v13=function(){var _nc9, _kf4=this._x74||{};for(_nc9 in _kf4){if(_kf4.hasOwnProperty(_nc9)){return true;}}return false;};_ei6.prototype._ik1=function(){var _yt3=this._j74.selectNodes("selectChoices/selectOption");if(_yt3.length>0){var _0b9, _ei8, _kf4=this._x74={};for(_0b9=0; _0b9<_yt3.length; _0b9++){_ei8=_yt3.item(_0b9);_kf4[_ei8.getAttribute("useValue")] = _ei8.getAttribute("displayValue");}}};_ei6.prototype._t21=function(){var _1u3=this._j74.selectNodes("selectChoicesAncestry/selectOption");if(_1u3.length>0){var _tp7;var _856=[];for(var _0b9=0; _0b9<_1u3.length; _0b9++){_tp7=_1u3.item(_0b9).getAttribute("useValue");if(_tp7){_856.push(_tp7);}}}return _856;};_ei6.prototype._vf=function(_856,_ok7){if(_856){var _nk7, _fv8, _ti8=_ok7.selectNodes(".//treeNode[@expandable='true' and @expanded='false']");for(var _0b9=0; _0b9<_ti8.length; _0b9++){_nk7=_ti8.item(_0b9);_fv8=_856.indexOf(_nk7.getAttribute("value"));if(_fv8!=-1){_856.splice(_fv8, 1);this._9d7._ti6(_nk7);break;}}}};_ei6.prototype._rf1=function(){this._5i3();};_ei6.prototype._567=function(_le8){if(!_le8||_le8.length<1){this._rf1();}else{var _0b9, _8x8, _nk7;var _ok7=this._9d7._af3();var _969="selected", length;if(this._3f5){length=_le8.length;}else{length=1;this._5i3();}for(_0b9=0; _0b9<length; _0b9++){_8x8=_le8[_0b9];_nk7=_ok7.selectSingleNode(".//treeNode[@value='" + _8x8["use"] + "']");if(_nk7){if(_nk7.getAttribute(_969)!="true"){_nk7.setAttribute(_969, "true");this._9d7._on6(this._9d7._ne9.getElementById(_nk7.getAttribute("htmlId")), _nk7);}}else{if(!this._x74){this._x74={};}this._x74[_8x8["use"]] = _8x8["display"];}}this._uq4();}};function _ii(_vl7, _da3, _y73, _ts3, _ed4){this._i94="";var _te6 ='<rns1:getPromptValues>'+'<bus:conversation xsi:type="bus:asynchRequest">' +this._913(_da3)+'</bus:conversation>'+'<parameterValues xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]">' +this._972(_y73)+'</parameterValues>'+'<options xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:option[]">' +'<item xsi:type="bus:runOptionInt">' +'<bus:name xsi:type="bus:runOptionEnum">skipValueCount</bus:name>' +'<bus:value xsi:type="xsd:int">' + _ts3 + '</bus:value>' +'</item>'+'<item xsi:type="bus:runOptionInt">' +'<bus:name xsi:type="bus:runOptionEnum">maximumValueCount</bus:name>' +'<bus:value xsi:type="xsd:int">' + _ed4 + '</bus:value>' +'</item>'+'<item xsi:type="bus:asynchOptionEncoding">' +'<bus:name xsi:type="bus:asynchOptionEnum">attachmentEncoding</bus:name>'+'<bus:value xsi:type="bus:encodingEnum">base64</bus:value>' +'</item>'+'<item xsi:type="bus:asynchOptionInt">' +'<bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>' +'<bus:value xsi:type="xsd:int">' + _6i6._t81 + '</bus:value>' +'</item>'+'</options>'+'</rns1:getPromptValues>';_ii.baseConstructor.call(this, _vl7, _6i6._9k, _te6);this._j81(_6i6._fu);};_9t7._v88(_ii, _6i6);_ii.prototype._6x2=function(){var _uj8={"options": null, "skipCount": 0, "moreData": false};if(this._i94){var _593=_ie9._yj6(null, this._i94, false, true);var _xe4=_593?_999._7y2(_593, 'item/selectOptions'):null;if(_xe4){_uj8.options=_999._mw5(_xe4, '*');_uj8.skipCount=Number(_xe4.getAttribute("skipValueCount"));_uj8.moreData=(_xe4.getAttribute("moreData")=="true");}}return _uj8;};_ii.prototype._uh2=function(){return this._6o3?this._6o3:null;};_ii.prototype._3g3=function(){_ii.superClass._3g3.call(this);var _cr3=this._mv5();if(!_cr3){return;}var _l15=_cr3.selectNodes('/SOAP-ENV:Envelope/SOAP-ENV:Body/*/bus:result/bus:details/*/bus:outputPages/item');if(_l15&&_l15.length>0){this._i94="<item>" + _l15.item(0).text + "</item>";this._6o3=_cr3.selectSingleNode('//bus:primaryRequest');}else{console.log('Failed to retrieve outputPages from _ii result.');return;}};_ii.prototype._913=function(_da3){var _sg4="";if(_da3){var nl=_da3.selectNodes("./*");for(var i=0; i<nl.length; i++){_sg4+= _999._co8(nl.item(i));}}return _sg4;};_ii.prototype._972=function(_y73){var _zl8="";for(var i=0; i<_y73.length; i++){_zl8 += '<item xsi:type="bus:parameterValue">' +'<bus:name xsi:type="xs:string">' + _jp8._s77( _y73[i].name ) + '</bus:name>' +'<bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parmValueItem[]">' +(_y73[i].use?('<item xsi:type="bus:hierarchicalParmValueItem">' +'<bus:inclusive xsi:nil="true" xsi:type="xs:boolean"/>' +'<bus:value xsi:type="bus:simpleParmValueItem">' +'<bus:inclusive xsi:type="xs:boolean">true</bus:inclusive>' +'<bus:display xsi:type="xs:string">' + _jp8._s77( _y73[i].display ) + '</bus:display>' +'<bus:use xsi:type="xs:string">' + _jp8._s77( _y73[i].use ) + '</bus:use>' +'</bus:value>'+'<bus:subNodes SOAP-ENC:arrayType="bus:hierarchicalParmValueItem[]" xsi:type="SOAP-ENC:Array"/>' +'</item>'):'')+'</bus:value>'+'</item>';}return _zl8;};
|