You are on page 1of 15

<sourceEnvironment>http://10.180.190.102:7700/usermap?language=ENG</sourceEnviro nment><sourceProductVersion>Customer Modification-MarshP1.ITER3.3.27.2 V2.2.3.1. 3.3.27</sourceProductVersion><bundle><entities><processingSequence>10</processin gSequence><sequence>1</sequence><mo>F1-UI MAP</mo><pk1>CM_Abdul_Test</pk1><bo>F1 -UIMapPhysicalBO</bo><boData><mapCd>CM_Abdul_Test</mapCd><customizationOwner>CM< /customizationOwner><uiMapType>F1FL</uiMapType><description>abdullah</descriptio n><htmlDefn><![CDATA[<HTML> <head> <link rel="stylesheet" type="text/css" href="cisDisabled.

css"/> <link rel="stylesheet" type="text/css" href="cisEnabled.css"/> <script type="text/javascript" src="userMapSupport.js"></script> </head> <script> function accountIDSelected(args) { if (args.length>0) { document.getElementById('accountID').value=args[0]; oraUnloadDocument(true); } } </script> <BODY> <oraInclude map="CM-COMMONHTML"/> <div style="position:absolute;visibility:hidden;width=1px;height=1px;top:0;left: 0;"> <span oraMdLabel="ACCT_ID"></span> </div> <input class="oraInput" type="text" size="10" maxLength="10" id="accountID"/> <img onclick="searchWindow('CM_GIDSDEPT','CM-SEARCHZONE', 'accountIDSelected', n ull);" src="images/search.gif" width="30" height="21" class="imageTypeElement ui Margin"> </BODY> </HTML>]]></htmlDefn><schema><schemaDefinition><![CDATA[<schema> <CM-GETZONE type="group"> <includeBS name="CM-GETZONE"/> </CM-GETZONE> <CM-SEARCHZONE type="group"> <includeBS name="CM-SEARCHZONE"/> </CM-SEARCHZONE> </schema>]]></schemaDefinition><schemaName>CM_Abdul_Test</schemaName><schemaType >F1MP</schemaType><customizationOwner>CM</customizationOwner><version>3</version ></schema><longDescription>abdullah</longDescription><version>5</version></boDat a></entities><entities><processingSequence>20</processingSequence><sequence>2</s equence><mo>F1-BUS SVC</mo><pk1>CM-GETZONE</pk1><bo>F1-BusinessServicePhysicalBO </bo><boData><businessService>CM-GETZONE</businessService><customizationOwner>CM </customizationOwner><serviceName>FWLZDEXP</serviceName><description>Retrieve zo ne parameter information</description><schema><schemaDefinition><![CDATA[<schema > <zoneCd mapField="ZONE_CD" default="CM-GETZONE"/> <targetZone mapField="F1_VALUE"/> <results type="list" mapList="DE"> <zoneParmName dataType="string" mapField="COL_VALUE"> <row mapList="DE_VAL"> <SEQNO is="1"/>

</row> </zoneParmName> <zoneParmVal dataType="string" mapField="COL_VALUE"> <row mapList="DE_VAL"> <SEQNO is="2"/> </row> </zoneParmVal> </results> </schema>]]></schemaDefinition><schemaName>CM-GETZONE</schemaName><schemaType>F1 BS</schemaType><customizationOwner>CM</customizationOwner><version>1</version></ schema><longDescription>Retrieve zone parameter information</longDescription><ve rsion>1</version></boData></entities><entities><processingSequence>30</processin gSequence><sequence>3</sequence><mo>CONTENT ZONE</mo><pk1>CM_GIDSDEPT</pk1><bo>F 1-ZonePhysicalBO</bo><boData><zone>CM_GIDSDEPT</zone><customizationOwner>CM</cus tomizationOwner><applicationServiceId>F1-DFLTS</applicationServiceId><zoneParame ter><parameterName>ACOL1</parameterName><zoneHandler>F1-DE-SINGLE</zoneHandler>< version>1</version><zone>CM_GIDSDEPT</zone><customizationOwner>CM</customization Owner><parameterValue><![CDATA[source=SQLCOL sqlcol=EPM_DEPT_CD label='EPM Department Code']]></parameterValue></zoneParameter><zoneParameter><p arameterName>ACOL2</parameterName><zoneHandler>F1-DE-SINGLE</zoneHandler><versio n>1</version><zone>CM_GIDSDEPT</zone><customizationOwner>CM</customizationOwner> <parameterValue><![CDATA[source=SQLCOL sqlcol=EPM_DEPT_NM label='EPM Department Description']]></parameterValue></zoneParameter><zoneParam eter><parameterName>ASQL</parameterName><zoneHandler>F1-DE-SINGLE</zoneHandler>< version>1</version><zone>CM_GIDSDEPT</zone><customizationOwner>CM</customization Owner><parameterValue><![CDATA[select DISTINCT EPM_DEPT_CD, EPM_DEPT_NM from VW_ EPM_FCS_ORA_PC_MAP where ( (trim(:F1) is not null) OR (trim(:F2) is not null) ) [(F1) and EPM_DEPT_CD = :F1] [(F2) and upper(rtrim(EPM_DEPT_NM)) like concat(upper(rtrim(:F2)), '%')]]]></par ameterValue></zoneParameter><zoneParameter><parameterName>F1</parameterName><zon eHandler>F1-DE-SINGLE</zoneHandler><version>1</version><zone>CM_GIDSDEPT</zone>< customizationOwner>CM</customizationOwner><parameterValue>label='EPM Department Code'</parameterValue></zoneParameter><zoneParameter><parameterName>F2</paramete rName><zoneHandler>F1-DE-SINGLE</zoneHandler><version>1</version><zone>CM_GIDSDE PT</zone><customizationOwner>CM</customizationOwner><parameterValue><![CDATA[lab el='EPM Department Description' likeable=S]]></parameterValue></zoneParameter><zoneParameter><parameterName>INIT IALDISPLAY</parameterName><zoneHandler>F1-DE-SINGLE</zoneHandler><version>1</ver sion><zone>CM_GIDSDEPT</zone><customizationOwner>CM</customizationOwner><paramet erValue>C1 C2</parameterValue></zoneParameter><zoneHandler>F1-DE-SINGLE</zoneHan dler><description>EPM Department Search</description><portalZoneWidth>FULL</port alZoneWidth><version>1</version></boData></entities><entities><processingSequenc e>40</processingSequence><sequence>4</sequence><mo>F1-BUS SVC</mo><pk1>CM-SEARCH ZONE</pk1><bo>F1-BusinessServicePhysicalBO</bo><boData><businessService>CM-SEARC HZONE</businessService><customizationOwner>CM</customizationOwner><serviceName>F WLZDEXP</serviceName><description>Generic Search Zone Business Service</descript ion><schema><schemaDefinition><![CDATA[<schema> <zoneCd mapField="ZONE_CD"/> <F1 mapField="F1_VALUE"/> <F2 mapField="F2_VALUE"/> <F3 mapField="F3_VALUE"/> <F4 mapField="F4_VALUE"/> <F5 mapField="F5_VALUE"/> <F6 mapField="F6_VALUE"/> <F7 mapField="F7_VALUE"/>

<F8 mapField="F8_VALUE"/> <F9 mapField="F9_VALUE"/> <F10 mapField="F10_VALUE"/> <results type="list" mapList="DE"> <row type="list" mapList="DE_VAL"> <seqNo mapField="SEQNO"/> <colValue dataType="string" mapField="COL_VALUE"/> </row> </results> </schema>]]></schemaDefinition><schemaName>CM-SEARCHZONE</schemaName><schemaType >F1BS</schemaType><customizationOwner>CM</customizationOwner><version>1</version ></schema><longDescription>Generic Search Zone Business Service</longDescription ><version>1</version></boData></entities><entities><processingSequence>50</proce ssingSequence><sequence>5</sequence><mo>F1-UI MAP</mo><pk1>CM-COMMONHTML</pk1><b o>F1-UIMapPhysicalBO</bo><boData><mapCd>CM-COMMONHTML</mapCd><customizationOwner >CM</customizationOwner><uiMapType>F1FR</uiMapType><description>Common HTML Func tions</description><htmlDefn><![CDATA[<script type="text/javascript"> //Hide the red cross in the corner if(window.name == 'uiMap'){ window.frameElement.previousSibling.previousSibling.style.display='none'; } var searchResultsTable; var hideResultColsArray; //If A User Hits Enter, it should only close the New Custom Search - 07-18-2012 window.document.onkeydown = function (e) { if (!e) e = event; if (e.keyCode == 27) searchWindowCancel(); } function ScrollableTable (tableEl, tableHeight, tableWidth) { this.initIEengine = function () { this.containerEl.style.overflowY = 'auto'; if (this.tableEl.parentElement.clientHeight - this.tableEl.offsetHeight >= 0) { this.containerEl.style.overflowY = 'hidden'; } if (this.thead) { var trs = this.thead.getElementsByTagName('tr'); for (x=0; x<trs.length; x++) { trs[x].style.position ='relative'; trs[x].style.setExpression("top", "this.parentElement.parentElement.parentE lement.scrollTop + 'px'"); var ths = trs[x].getElementsByTagName('th'); for (y=0; y<ths.length; y++) { ths[y].style.position ='relative'; ths[y].style.setExpression("top", "this.parentElement.parentElement.parent Element.scrollTop + 'px'"); } } } eval("window.attachEvent('onresize', function () { if(document.getElementById( '" + this.tableEl.id + "') != null) {document.getElementById('" + this.tableEl.i d + "').style.visibility = 'hidden'; document.getElementById('" + this.tableEl.i

d + "').style.visibility = 'visible'; }} )"); }; this.initFFengine = function () { this.containerEl.style.overflow = 'hidden'; var headHeight = (this.thead) ? this.thead.clientHeight : 0; var footHeight = (this.tfoot) ? this.tfoot.clientHeight : 0; var bodyHeight = this.tbody.clientHeight; var trs = this.tbody.getElementsByTagName('tr'); if (bodyHeight >= (this.newHeight - (headHeight + footHeight))) { this.tbody.style.overflow = '-moz-scrollbars-vertical'; for (x=0; x<trs.length; x++) { var tds = trs[x].getElementsByTagName('td'); tds[tds.length-1].style.paddingRight += this.scrollWidth + 'px'; } } else { this.tbody.style.overflow = '-moz-scrollbars-none'; } var cellSpacing = (this.tableEl.offsetHeight - (this.tbody.clientHeight + head Height + footHeight)) / 4; this.tbody.style.height = (this.newHeight - (headHeight + cellSpacing * 2) - ( footHeight + cellSpacing * 2)) + 'px'; }; this.tableEl = tableEl; this.scrollWidth = 16; this.originalHeight = this.tableEl.clientHeight; this.originalWidth = this.tableEl.clientWidth; this.newHeight = parseInt(tableHeight); this.newWidth = tableWidth ? parseInt(tableWidth) : this.originalWidth; this.tableEl.style.height = 'auto'; this.tableEl.removeAttribute('height'); this.containerEl = this.tableEl.parentNode.insertBefore(document.createElement( 'div'), this.tableEl); this.containerEl.appendChild(this.tableEl); this.containerEl.style.height = this.newHeight + 'px'; var thead = this.tableEl.getElementsByTagName('thead'); this.thead = (thead[0]) ? thead[0] : null; var tfoot = this.tableEl.getElementsByTagName('tfoot'); this.tfoot = (tfoot[0]) ? tfoot[0] : null; var tbody = this.tableEl.getElementsByTagName('tbody'); this.tbody = (tbody[0]) ? tbody[0] : null; if (!this.tbody) return; if (document.all && document.getElementById && !window.opera) this.initIEengine (); if (!document.all && document.getElementById && !window.opera) this.initFFengin e(); }

function trim(str, chars) { return ltrim(rtrim(str, chars), chars); } function ltrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("^[" + chars + "]+", "g"), ""); } function rtrim(str, chars) { chars = chars || "\\s"; return str.replace(new RegExp("[" + chars + "]+$", "g"), ""); } function resizeSearchWindow(SDB,SDF) { if (!SDB) SDB=document.getElementById('searchDivBackground'); if (!SDF) SDF=document.getElementById('searchDivForeground'); if (SDB.style.visibility=="visible") { if (searchResultsTable) delete searchResultsTable; var searchResults=document.getElementById('searchResults'); var SRTable=document.getElementById('searchResultsTable'); SRTable.offsetParent.style.height=10; if (searchResults!=SRTable.offsetParent.offsetParent) SRTable.offsetPare nt.offsetParent.style.height=10; minheight=200 + searchResults.offsetParent.offsetTop; minwidth=640; SDB.style.height=10; SDF.style.height=10; searchResults.style.height=10; XoffsetHeight=document.body.offsetHeight; if (document.body.scrollHeight > XoffsetHeight) XoffsetHeight=document.b ody.scrollHeight; SDB.style.top=0; SDB.style.height=XoffsetHeight; XoffsetWidth=document.body.offsetWidth; if (document.body.scrollWidth > XoffsetWidth) XoffsetWidth=document.body .scrollWidth; SDB.style.left=0; SDB.style.width=XoffsetWidth; var xwidth=document.body.offsetWidth * 0.6; if (xwidth<minwidth) sdfwidth=minwidth; else sdfwidth=xwidth; SDF.style.width=sdfwidth; xheight=document.body.offsetHeight * 0.75; if (xheight<minheight) xheight=minheight; if (xheight>XoffsetHeight) xheight=minheight; SDF.style.top=0; searchResults.style.height=SDF.offsetHeight - searchResults.offsetParent .offsetTop; var SRTable=document.getElementById('searchResultsTable');

SRinnerHTML='<table border=1 id="searchResultsTable" cellspacing="0" sty le="margin:0;border:1;border-collapse:collapse;border-spacing:0;padding:0;width: 100%;" cellpadding="0">'; SRinnerHTML=SRinnerHTML + SRTable.innerHTML; SRinnerHTML=SRinnerHTML + '</table>'; searchResults.innerHTML=SRinnerHTML; searchResultsTable = new ScrollableTable(document.getElementById('search ResultsTable'), xheight - (searchResults.offsetParent.offsetTop - 2)); SDF.style.height=xheight; if (SDF.offsetHeight > document.body.offsetHeight) calctop=0; else calct op=document.body.offsetHeight - SDF.offsetHeight; // SDF.style.top=calctop / 2; //Bug-577 SDF.style.top = SDF.offsetParent.scrollTop; SDB.style.height=XoffsetHeight - 4; if (SDF.offsetWidth > document.body.offsetWidth) calcleft=0; else calcle ft=document.body.offsetWidth - SDF.offsetWidth; SDF.style.left=calcleft / 2; } } function getQueryVariable(query,variable) { var vars = query.split("\n"); tVariable=variable; for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); tPair=pair[0]; if (tPair.toUpperCase() == tVariable.toUpperCase()) { return pair[1]; } } return null; } function selectSearch(selectFunc,row) { if (row.cells.length > 0) { var myArray = new Array(row.cells.length); for (x=0;x<row.cells.length;x++) myArray[x]=row.cells[x].firstChild.i nnerText; if (window[selectFunc]) window[selectFunc](myArray); } searchWindowClose(); } function searchZoneWindow(searchZone,searchZoneXML,selectFunc) { if (searchResultsTable) delete searchResultsTable; var SRTable=document.getElementById('searchResultsTable'); while (SRTable.rows.length > 1) SRTable.deleteRow(1); //Update 05-30-2012 - Start - Change to remove oraInvokeBS //var searchZoneCode=document.getElementById('searchZoneCode'); //searchZoneCode.value=searchZone; //oraUnloadDocument(true); //oraInvokeBS('CM-SEARCHZONE',searchZoneXML); //strXPath=searchZoneXML + '/results'; var searchZoneRequest = '<root><zoneCd>'+searchZone+'</zoneCd>';

for(var i=1; i<11;i++){ var filterElem = id('F'+i); if(filterElem!=null){ if(filterElem.oraType=='date'){ searchZoneRequest+='<F'+i+'>'+oraConvertToInternalDate(filterEle m.value)+'</F'+i+'>'; }else{ searchZoneRequest+='<F'+i+'>'+filterElem.value+'</F'+i+'>'; } } } searchZoneRequest+='</root>'; var searchZoneResponse = callBS('CM-SEARCHZONE',searchZoneRequest,oraSchemaI nfo.name); //resultNodes = xmlData.documentElement.selectNodes(strXPath); resultNodes = searchZoneResponse.selectNodes('root/results'); //Update 05-30-2012 - End - Change to remove oraInvokeBS if (resultNodes.length>0) { for (x=0; x<resultNodes.length;x++) { var row=SRTable.insertRow(-1); row.style.padding="3px"; if (x % 2 == 0) row.style.backgroundColor="#FFFFA0"; strXPath='row'; resultNodes2 = resultNodes[x].selectNodes(strXPath); for (y=0; y<resultNodes2.length; y++) { var cell=row.insertCell(y); selectFuncText="'" + selectFunc + "'"; cellValue='<span style="cursor:hand" width=100% class="oraNorma l" type="text" onclick="selectSearch(' + selectFuncText + ',this.offsetParent.pa rentNode);">'; if (resultNodes2[y] && resultNodes2[y].selectSingleNode('colVal ue')) cellValue=cellValue+resultNodes2[y].selectSingleNode('colValue').text; cellValue=cellValue+'</span>'; cell.innerHTML=cellValue; cell.onClick='selectSearch(' + selectFuncText + ',this.parentNo de);'; cell.style.cursor="hand"; //hide columns if required if(hideResultColsArray != null){ for(var cnt = 0; cnt<hideResultColsArray.length; cnt++){ if(hideResultColsArray[cnt] == y+1){ cell.style.display='none'; } } } } } if (searchResultsTable) delete searchResultsTable; searchResultsTable = new ScrollableTable(document.getElementById('search ResultsTable'), 200); } else /* no records found */ {

if (SRTable.rows && (SRTable.rows.length > 0)) { numCols = SRTable.rows[0].cells.length; var row=SRTable.insertRow(-1); row.style.padding="3px"; row.style.backgroundColor="#FFFFA0"; var cell=row.insertCell(0); cellValue='<span width=100% class="oraNormal" type="text" align="cen ter"><i>No data found</i></span>'; cell.colSpan=numCols; cell.style.textAlign="center" cell.innerHTML=cellValue; } } resizeSearchWindow(); } //SPECAO - 05-30-2012 - Start - Search Zone for keyPress function searchZoneWindowPress(event, searchZone,searchZoneXML,selectFunc) { if (event.keyCode == 13){ searchZoneWindow(searchZone,searchZoneXML,selectFunc) } } //SPECAO - 05-30-2012 - End - Search Zone for keyPress function searchWindow(searchZone,searchZoneXML,selectFunc,args,ignoreColsArray) { SDB=document.getElementById('searchDivBackground'); SDB.style.visibility="visible"; SDF=document.getElementById('searchDivForeground'); SDF.style.visibility="visible"; SDB.style.left=0; SDB.style.top=0; //Update 05-30-2012 - Start- Change to remove oraInvokeBS //var targetZone=document.getElementById('targetZone'); //targetZone.value=searchZone; //oraInvokeBS('CM-GETZONE','//CM-GETZONE'); //strXPath='CM-GETZONE/results'; //resultNodes = xmlData.documentElement.selectNodes(strXPath); var searchZoneRequest = '<root><targetZone>'+searchZone+'</targetZone></root >'; var searchZoneResponse = callBS('CM-GETZONE',searchZoneRequest,oraSchemaInfo .name); //Update 05-30-2012 - End - Change to remove oraInvokeBS strXPath='root/results'; resultNodes = searchZoneResponse.selectNodes(strXPath); if (resultNodes.length > 0) { /* Process Window Title */ var searchWindowTitle=document.getElementById('searchWindowTitle'); //Update 05-30-2012 - Start- Change to remove oraInvokeBS //strXPath='CM-GETZONE/results[starts-with(zoneParmName,"TITLE")]'; //resultNodes = xmlData.documentElement.selectNodes(strXPath); strXPath='root/results[starts-with(zoneParmName,"TITLE")]';

resultNodes = searchZoneResponse.selectNodes(strXPath); //Update 05-30-2012 - End- Change to remove oraInvokeBS if (resultNodes.length > 0) { zoneTitle=resultNodes[0].selectSingleNode('zoneParmVal').text; searchWindowTitle.innerHTML=zoneTitle; } var query; var filterPattern=/'/gi; var vars; /* Process filters */ searchField=searchZoneXML+'/zoneCd'; filterHTML='<div style="position:absolute;visibility:hidden;background-color :#FFFFFF;width=10px;height=10px;top:0;left:0;">\n'; filterHTML=filterHTML+' <input id="searchZoneCode" class="oraInput" type ="text" oraField="' + searchField + '" />\n'; filterHTML=filterHTML+'</div>\n'; /* filterHTML=filterHTML+"<table width=100%>\n"; */ filterHTML=filterHTML+'<table cellspacing="0" style="margin:0;border:0;borde r-collapse:collapse;border-spacing:0;padding:0;width:100%;" cellpadding="0">\n'; //strXPath='CM-GETZONE/results[starts-with(zoneParmName,"F")]'; //resultNodes = xmlData.documentElement.selectNodes(strXPath); strXPath='root/results[starts-with(zoneParmName,"F")]'; resultNodes = searchZoneResponse.selectNodes(strXPath); if (resultNodes.length > 6) squeezecols=true; else squeezecols=false; tropen=2; for (y=1; y<11; y++) { filterNumber='F'+y; //strXPath='CM-GETZONE/results[starts-with(zoneParmName,"' + filterNumbe r + '")]'; //resultNodes = xmlData.documentElement.selectNodes(strXPath); strXPath='root/results[starts-with(zoneParmName,"' + filterNumber + '")] '; resultNodes = searchZoneResponse.selectNodes(strXPath); if (resultNodes.length > 0 && resultNodes[0].selectSingleNode('zoneParmV al')) { query=resultNodes[0].selectSingleNode('zoneParmVal').text; /* divideVar=getQueryVariable(query,'divide'); if (divideVar=='above') filterHTML=filterHTML + '<TR><TD colspan="3" ><HR></TD></TR>\n'; */ if (squeezecols) { if (tropen==2) { filterHTML=filterHTML + '<TR>\n'; tropen=1; } else tropen=2; } else filterHTML=filterHTML + '<TR>\n';

filterHTML=filterHTML + '<TD width=1%>&nbsp;&nbsp;&nbsp;</TD>'; filterLabel=getQueryVariable(query,'label'); var sizeVar=256; var filterSize=getQueryVariable(query,'name'); if(filterSize!=null){ sizeVar=filterSize; } if (filterLabel) { if (filterLabel.indexOf("'") < 0) { displayLabel='"' + trim(filterLabel) + '"'; filterHTML=filterHTML + '<TD nowrap valign="middle" align=" left" class="oraLabel" oraMdLabel=' + displayLabel + '></TD>\n'; } else { displayLabel=filterLabel.replace(filterPattern,""); filterHTML=filterHTML + '<TD nowrap valign="middle" class=" oraLabel" align="left">' + displayLabel + '</TD>\n'; } } searchField=searchZoneXML+'/'+filterNumber; //SPECAO - 05-30-2012 - Start - Add for Key Press Function searchZoneText="'" + searchZone + "'"; searchZoneXMLText="'" + searchZoneXML + "'"; selectFuncText="'" + selectFunc + "'"; //SPECAO - 05-30-2012 - End- Add for Key Press Function disableField=false; parmVal=''; if (args) if (args.length >= y ) {parmVal=args[y-1][0]; disableField =args[y-1][1];} if (!disableField) disableField=false; if (!parmVal) parmVal=''; if (disableField) disableText='disabled="disabled"'; else disableTex t=''; typeVal=getQueryVariable(query,'TYPE'); //SPECAO - 05-30-2012 - Start - Add for Key Press Function //inputField='<input class="oraInput" type="text" oraField="' + sear chField + '" id="' + filterNumber + '" value="' + parmVal + '" ' + disableText + '/>'; inputField='<input class="oraInput" type="text" oraField="' + search Field + '" id="' + filterNumber + '" maxLength="'+sizeVar+'"value="' + parmVal + '" ' + disableText + 'onkeypress="searchZoneWindowPress(event, ' + searchZoneText + ',' + searchZoneXMLText + ',' + selectFuncText + ');"' + '/>'; //SPECAO - 05-30-2012 - End - Add for Key Press Function oraText='ora'; if (typeVal) { typeValUpper=trim(typeVal.toUpperCase()); if (typeValUpper == 'TABLE') {

tableVal=getQueryVariable(query,'table'); if (tableVal) inputField='<select ' + oraText + 'Select="tab le:' + trim(tableVal) + ';" oraField="' + searchField + '" id="' + filterNumber + '" value="' + parmVal + '" ' + disableText + '><option value=""></option></sel ect>'; } else if (typeValUpper == 'CHARTYPE') { charTypeVal=getQueryVariable(query,'chartype'); if (charTypeVal) inputField='<select ' + oraText + 'Select=" charType:' + trim(charTypeVal) + ';" oraField="' + searchField + '" id="' + filt erNumber + '" value="' + parmVal + '" ' + disableText + '><option value=""></opt ion></select>'; } else if (typeValUpper == 'LOOKUP') { lookupVal=getQueryVariable(query,'lookup'); if (lookupVal) inputField='<select ' + oraText + 'Select="lo okup:' + trim(lookupVal) + ';" oraField="' + searchField + '" id="' + filterNumb er + '" value="' + parmVal + '" ' + disableText + '><option value=""></option></ select>'; } if (typeValUpper == 'DATE') { //inputField='<input ' + oraText + 'Type="date" oraField="' + searchField + '" id="' + filterNumber + '" value="' + parmVal + '" ' + '><opti on value=""></option></select>'; inputField='<input ' + oraText + 'Type="date" oraField="' + searchField + '" id="' + filterNumber + '" value="' + parmVal + '" ' + 'onkeypress="searchZoneWindowPress(event, ' + searchZoneText + ',' + searchZoneXMLText + ',' + selectFuncText + ');"' + '><option value=""></option></select>'; } } filterHTML=filterHTML + '<TD>' + inputField + '</TD>\n'; filterHTML=filterHTML + '<TD width=1%>\n'; //searchZoneText="'" + searchZone + "'"; //searchZoneXMLText="'" + searchZoneXML + "'"; //selectFuncText="'" + selectFunc + "'"; hideResultColsArray = ignoreColsArray; filterHTML=filterHTML + '<img onclick="searchZoneWindow(' + searchZo neText + ',' + searchZoneXMLText + ',' + selectFuncText + ');" src="images/runSe arch.gif?ltr" width="30" height="21" class="imageTypeElement uiMargin" alt="Sear ch">\n'; filterHTML=filterHTML + '</TD>\n'; if (tropen==2) filterHTML=filterHTML + '<TD width=99%></TD></TR>\n'; /* if (divideVar=='below') { if (tropen) filterHTML=filterHTML + '</TR>\n'; filterHTML=filterHTML + '<TR><TD colspan="3"><HR></TD></TR>\n'; } */ } else y=11; } filterHTML=filterHTML + "</table>"; var searchFilter=document.getElementById('searchFilter'); searchFilter.innerHTML=filterHTML;

//oraUnloadDocument(false); oraUnloadChildren(SDF, xmlData.documentElement); oraLoadChildren(SDF, xmlData.documentElement); /* Process results columns */ //strXPath='CM-GETZONE/results[starts-with(zoneParmName,"INITIALDISPLAY")]'; //resultNodes = xmlData.documentElement.selectNodes(strXPath); strXPath='root/results[starts-with(zoneParmName,"INITIALDISPLAY")]'; resultNodes = searchZoneResponse.selectNodes(strXPath); if (resultNodes.length > 0) { filterHTML='<table border=1 id="searchResultsTable" cellspacing="0" st yle="margin:0;border:1;border-collapse:collapse;border-spacing:0;padding:0;width :100%;" cellpadding="0">'; filterHTML=filterHTML+'\n<thead><tr>\n'; initialDisplay=resultNodes[0].selectSingleNode('zoneParmVal').text; vars = initialDisplay.split(' '); for (var i=0;i<vars.length;i++) { colvar=vars[i]; filterNumber='ACOL' + colvar.substring(1); //strXPath='CM-GETZONE/results[starts-with(zoneParmName,"' + filte rNumber + '")]'; //resultNodes = xmlData.documentElement.selectNodes(strXPath); strXPath='root/results[starts-with(zoneParmName,"' + filterNumber + '")]'; resultNodes = searchZoneResponse.selectNodes(strXPath); if (resultNodes.length > 0 && resultNodes[0].selectSingleNode('zon eParmVal')) { query=resultNodes[0].selectSingleNode('zoneParmVal').text; filterLabel=getQueryVariable(query,'label'); if (filterLabel) { if (filterLabel.indexOf("'") < 0) { displayLabel='"' + filterLabel + '"'; filterHTML=filterHTML + '<th class="oraGridColumnHead er" oraMdLabel=' + displayLabel + '>:</th>\n'; }; else { displayLabel=filterLabel.replace(filterPattern,""); filterHTML=filterHTML + '<th class="oraGridColumnHead er">' + displayLabel + '</th>\n'; }; } else filterHTML=filterHTML + '<th class="oraGridColumnHeader ">N/A</th>\n'; } } filterHTML=filterHTML + "</tr></thead>"; filterHTML=filterHTML + "</table>"; var searchFilter=document.getElementById('searchResults'); searchFilter.innerHTML=filterHTML; //Hide the header field if required

if(hideResultColsArray != null){ var thNodes = searchFilter.firstChild.firstChild.firstChild.childNod es; for(var cnt = 0; cnt<hideResultColsArray.length; cnt++){ thNodes[hideResultColsArray[cnt] - 1].style.display='none'; } } oraLoadChildren(SDF, xmlData.documentElement); } if (searchResultsTable) delete searchResultsTable; searchResultsTable = new ScrollableTable(document.getElementById('searchResu ltsTable'), 200); resizeSearchWindow(); } /* else no zone was found */ } function searchWindowClose() { var searchFilter=document.getElementById('searchFilter'); searchFilter.innerHTML=''; var searchResults=document.getElementById('searchResults'); searchResults.innerHTML=''; SDB=document.getElementById('searchDivBackground'); SDB.style.visibility="hidden"; SDF=document.getElementById('searchDivForeground'); SDF.style.visibility="hidden"; SDB.style.left=0; SDB.style.top=0; SDB.style.width=10; SDB.style.height=10; SDF.style.left=0; SDF.style.top=0; SDF.style.width=10; SDF.style.height=10; } function searchWindowCancel() { searchWindowClose(); } function searchWindowOk() { searchWindowClose(); } /* Added By Chirag to do away with oraInovkeBS */ function callBS(bsName,inputXML, fkRefMap){ var requestURL="serverBusinessService?bs=" +bsName+"&ignoreWarnings=true&fkRefInfo=true&fkRefSchemaType=F1MP&fk RefSchema="+fkRefMap; var response; var requestBody = 'xmlRequest='+encodeURIComponent(inputXML);

requestBody requestBody requestBody var request

+= main.computeDebugURL(); = main.addUserProfile(requestBody); = main.addGlobalContext(requestBody); = main.getXMLHTTPObject();

requestURL = main.createAbsolutePath(requestURL); request.open('POST', requestURL, false); main.addCanonicalFormHeader(request); try { request.send(requestBody); } catch (e) { main.showWebServerError(request.status, request.statusText); throw {type: 'webserver'}; } if (request.status != 200) { main.showWebServerError(request.status, request.statusText); throw {type: 'webserver', serverMessage: request.statusText}; } var response = request.responseText; top.debugServerResponse = response; try { eval(response); } catch (e) { if (isGlobalDebug()) debugResponse(response, e) restartSystem(); throw {type: 'webserver'}; } switch (cdxResponse.resultCode) { case '': { var response = cdxResponse.xmlResponse; if (response == '') { // deletes return empty response. treated later as a move null. return null; } var xmlDoc = createXMLDoc(response); var error = xmlDoc.parseError; if (error.errorCode != 0) { throw { name: 'ParseError', message: 'Unable to parse document: ' + error.reason + '\nline number:' + error.line + '\ncharacte r:' + error.linePos + '\nsource text:' + error.srcText }; } xmlDoc.setProperty("SelectionLanguage", "XPath"); response = xmlDoc; break; } case 'E': { throw {type: 'error', serverMessage: cdxResponse.serverMessage}; } case 'C': { throw {type: 'critical', message: cdxResponse.message}; } case 'W': { throw {type: 'warning', serverWarnings: cdxResponse.serverWarnin gs}; } } return response;

} </script> <div id="searchDivBackground" style="position:absolute;visibility:hidden;backgro und-color:#000000; filter: alpha(opacity=50);"> </div> <div style="position:absolute;visibility:hidden;background-color:#FFFFFF;width=1 0px;height=10px;top:0;left:0;"> <input class="oraInput" type="text" oraField="CM-GETZONE/targetZone" id="ta rgetZone"/> </div> <div id="searchDivForeground" style="position:absolute;visibility:hidden; border -style:solid; background-color:#FFFFFF;width=10px;height=10px;top:0;left:0;"> <table cellspacing="2" width="100%" align="center"> <tr> <td id="searchWindowTitle" class="oraSectionHeader" align="center">Search W indow</td> </tr> <tr> <td align="left"><div id="searchFilter" style="border:1px solid #999999;">< /div></td> </tr> <tr> <td align="center"><div id="searchResults" style="border:1px solid #999999; background-color:#FFFFFF;">sample</div></td> </tr> <tr> <td align="center"> <input class="oraButton" type="button" value="Cancel" width="10" onCli ck="searchWindowCancel();" id="searchCancelButton"/> </td> </tr> </table> </div> <script> searchWindowClose(); </script>]]></htmlDefn><schema><schemaDefinition><![CDATA[<schema/>]]></schemaDe finition><schemaName>CM-COMMONHTML</schemaName><schemaType>F1MP</schemaType><cus tomizationOwner>CM</customizationOwner><version>4</version></schema><longDescrip tion>Common HTML Functions</longDescription><version>37</version></boData></enti ties></bundle>

You might also like