123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- define([],function(){'use strict';var _cnl={_097: function(_oc2){var _avk=[];if(_oc2){_avk.push( '<item xsi:type="bus:contextOptionStringArray">' );_avk.push( ' <bus:name xsi:type="bus:contextOptionEnum">selection</bus:name>' );_avk.push( ' <bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[]">' );_avk.push( ' <item>metadata</item>' );for(var i=0;i<_oc2.length;i++){_avk.push( ' <item>' + _oc2[i]._ndm() + '</item>' );} _avk.push( ' </bus:value>' );_avk.push('</item>');}_avk.push( '<item xsi:type="bus:contextOptionFormat">' );_avk.push( ' <bus:name xsi:type="bus:contextOptionEnum">format</bus:name>' );_avk.push( ' <bus:value xsi:type="bus:contextFormatEnum">initializer</bus:value>' );_avk.push('</item>');_avk.push( '<item xsi:type="bus:contextOptionType">' );_avk.push( ' <bus:name xsi:type="bus:contextOptionEnum">type</bus:name>' );_avk.push( ' <bus:value xsi:type="bus:contextTypeEnum">reportService</bus:value>' );_avk.push('</item>');return _avk.join('');},_b95: function(_hw4,_vyi,_mj3){if(!_vyi){_vzm._ozm('_vyi was not defined.');return;}else if((_vyi!='PACKAGE')&&(_vyi != 'REPORT') ){_vzm._ozm('_vyi must either be "PACKAGE" or "REPORT".');return;}var _ggi=document.getElementById('lineageRequestForm');if(!_ggi){var div=document.body.appendChild(document.createElement('DIV'));div.innerHTML ='<form id="lineageRequestForm" method="POST" action="" target="" style="display:none">' +'<input type="hidden" name="lineagerequest"/>' +'<input type="hidden" name="pid" value="progress_pid"/>' +'<input type="hidden" name="primary_pid" value="lineageMain"/>' +'<input type="hidden" name="executionParams"/>' +'<input type="hidden" name="errURL" value="javascript:window.close()"/>' +'</form>';_ggi=document.getElementById('lineageRequestForm');}_ggi.action=_r7g._atc();_ggi.target='winLineage_'+(new Date()).getTime();switch(_vyi){case 'REPORT':var _j4e=_erh._gp9();var _8ha=[];_8ha.push('<lineageInfo>');if(_j4e){_8ha.push('<reportPath>');_8ha.push(_cgm._e8j(_j4e));_8ha.push('</reportPath>');var _kd2=_8qn._dhe(_mj3);var _8va=_7hn._x5g( _kd2, './/object[type = "reportItem"]' );for(var i=0; i<_8va.length;++i){var _jxd=_8va.item(i);var _ux5=_7hn._ij8(_jxd, 'property[@name="expression"]');if(_ux5){var _mfh=_7hn._fkl(_ux5);if(_mfh.match(/\[(.*)\]\.\[(.*)\]/)){_8ha.push('<item queryRef="');_8ha.push(RegExp.$1);_8ha.push('">');_8ha.push(RegExp.$2);_8ha.push('</item>');}}}}_8ha.push('</lineageInfo>');_ggi.lineagerequest.value=_8ha.join('');var reportLineageElement=document.createElement('input');reportLineageElement.setAttribute('type','hidden');reportLineageElement.setAttribute('name','reportLineage');reportLineageElement.setAttribute('value',_mj3);_ggi.appendChild(reportLineageElement);break;case 'PACKAGE':if(_hw4&&_hw4.length>0){var _ivf=_hw4[0].getAttribute('modelPath');_ggi.lineagerequest.value='<lineageInfo><packagePath>' + _cgm._e8j( _ivf ) + '</packagePath>';for(var i=0; i<_hw4.length; i++){var _mfh=_hw4[i].getAttribute('_ref');_ggi.lineagerequest.value += '<item>' + _cgm._e8j( _mfh ) + '</item>';}_ggi.lineagerequest.value+= '</lineageInfo>';}else{_vzm._ozm('No items were passed.');return;}break;}_ggi.executionParams.value=_f8j._d66();var _54j=window.open( _zpn._6oh('hal/blank.htm'), _ggi.target, 'directories=no,location=no,status=no,toolbar=no,resizable=yes,scrollbars=yes,top=100,left=100,height=400,width=630' );if(_4qn._lg4(_54j)){return;}_54j.focus();_ggi.submit();if(div){document.body.removeChild(div);}_ggi=null;}};return _cnl;});
|