Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\selectColumnPage.jsp
<%@ include file="/sdk/oemTop.jspf" %> <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %> <% oracle.cabo.share.util.CaboHttpUtils.setNoCacheHeaders(response); %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag/db" prefix="db" %> <%@ include file="/oemNoscript.jspf" %> <uix:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <uix:document> <uix:metaContainer> <uix:head titleBinding="searchObjPageTitle@objectPageBean@servletRequest"/> <script language="JavaScript" > <%@ include file="/database/utils.js"%> </script> <script language="JavaScript" > <%@ include file="/cabo/jsLibs/TableProxy.js" %> </script> <script> function getAllRows() { var proxy = new TableProxy('selectObjectUI'); var a0; var a1=new Array(); var a2=0; for(var a3=0;a3<proxy.length;a3++) { a0=proxy.tableName+":0:"+a3; a0=proxy._form[a0]; a1[a2]=a3; a2++; } for(var m=0; m < a1.length;m++) { var index = a1[m]; var element = proxy.getFormElement('obj', index); var schmelement = document.foo.destLovSchemaName.options[document.foo.destLovSchemaName.selectedIndex].text + "." + element.value; //remove from the selobjectnames list if existing earlier to account for items checked off..if it was not checked off, it will be added again later if(document.foo.selectedObjectNames.value.indexOf(schmelement) !=-1) { var o = document.foo.selectedObjectNames.value.indexOf(schmelement); var tmpstr = document.foo.selectedObjectNames.value.substring(0,o -1); if(tmpstr.charAt(tmpstr.length) != ",") { tmpstr = tmpstr + ","; } else { tmpstr = tmpstr; } var tmpstr2 = document.foo.selectedObjectNames.value.substring(o + schmelement.length + 1); if(tmpstr2.length == 0) { document.foo.selectedObjectNames.value = tmpstr + tmpstr2 + ","; } else { document.foo.selectedObjectNames.value = tmpstr + tmpstr2; } } } } function lovSelect() { //needed to deselect while navigating getAllRows(); //alert(document.foo.selectedObjectNames.value); if(document.foo.selectedObjectNames.value.charAt(document.foo.selectedObjectNames.value.length -2) == ",") { document.foo.selectedObjectNames.value = document.foo.selectedObjectNames.value.substring(0,document.foo.selectedObjectNames.value.length -1); //alert(document.foo.selectedObjectNames.value); } else { document.foo.selectedObjectNames.value = document.foo.selectedObjectNames.value; } var proxy = new TableProxy('selectObjectUI'); var selectedItems = proxy.getSelectedRows(); var objs=""; if(selectedItems.length >= 1) { for(var i=0; i < selectedItems.length;i++) { var selectedIndex = selectedItems[i]; var selectedElement = proxy.getFormElement('obj', selectedIndex); if (objs == "") { if(window.opener.document.selectObj.selectedSchemaObjectName.value.indexOf(document.foo.destLovSchemaName.options[document.foo.destLovSchemaName.selectedIndex].text + "." + selectedElement.value) ==-1 && document.foo.selectedObjectNames.value.indexOf(document.foo.destLovSchemaName.options[document.foo.destLovSchemaName.selectedIndex].text + "." + selectedElement.value)==-1 ) { objs = document.foo.destLovSchemaName.options[document.foo.destLovSchemaName.selectedIndex].text + "." + selectedElement.value; } } else { if(window.opener.document.selectObj.selectedSchemaObjectName.value.indexOf(document.foo.destLovSchemaName.options[document.foo.destLovSchemaName.selectedIndex].text + "." + selectedElement.value)==-1 && document.foo.selectedObjectNames.value.indexOf(document.foo.destLovSchemaName.options[document.foo.destLovSchemaName.selectedIndex].text + "." + selectedElement.value)==-1 && objs.indexOf(document.foo.destLovSchemaName.options[document.foo.destLovSchemaName.selectedIndex].text + "." + selectedElement.value)==-1) { objs = objs + "," + document.foo.destLovSchemaName.options[document.foo.destLovSchemaName.selectedIndex].text + "." + selectedElement.value; } } } } if(window.opener.document.selectObj.selectedSchemaObjectName.value.length == 0) { window.opener.document.selectObj.selectedSchemaObjectName.value = document.foo.selectedObjectNames.value + objs; } else { //alert(document.foo.selectedObjectNames.value); if(document.foo.selectedObjectNames.value + objs != "") window.opener.document.selectObj.selectedSchemaObjectName.value = window.opener.document.selectObj.selectedSchemaObjectName.value + "," + document.foo.selectedObjectNames.value + objs; } document.foo.submit(); self.close(); } </script> </uix:metaContainer> <uix:body> <db:form name="foo" method="post" destinationBinding="destination@selectObjPageBean@servletRequest" copyParams="target,type,oname,cancelURL"> <uix:pageLayout titleBinding="searchObjPageTitle@objectPageBean@servletRequest"> <uix:formValue name="pageName" value="/database/security/selectColumnPage"/> <uix:formValue name="selectedObjectNames" valueBinding="selectedObjectNames@selectObjPageBean@servletRequest"/> <uix:formValue name="event" value="changeSelectObjectSearchCriteria" /> <uix:tableLayout cellSpacing="4"> <uix:rowLayout> <uix:cellFormat> <uix:header textBinding="SEARCH@uixDBObjectBundle@servletRequest"> <uix:styledText textBinding="SEARCH_INSTRUCTIONS@uixDBObjectBundle@servletRequest" styleClass="OraPromptText"/> <uix:tableLayout cellSpacing="4"> <uix:rowLayout hAlign='left'> <uix:contents> <uix:cellFormat> <uix:contents> <uix:messagePrompt labeledNodeId="destLovSchemaName" promptBinding="SCHEMA@uixDBObjectBundle@servletRequest" /> </uix:contents> </uix:cellFormat> <oem:choice id="destLovSchemaName" name="destLovSchemaName" selectedValueBinding="destLovSchemaName@selectObjPageBean@servletRequest" optionsBinding="destLovSchemaNames@selectObjPageBean@servletRequest" /> </uix:contents> </uix:rowLayout> <uix:rowLayout hAlign='left'> <uix:contents> <uix:cellFormat> <uix:contents> <uix:messagePrompt labeledNodeId="selectColumnSearchCriteria" promptBinding="SEARCH_COLUMN_NAME@uixDBObjectBundle@servletRequest" /> </uix:contents> </uix:cellFormat> <uix:textInput id="selectColumnSearchCriteria" name="selectColumnSearchCriteria" textBinding="selectColumnSearchCriteria@selectObjPageBean@servletRequest"/> <uix:submitButton textBinding="GO@uixDBObjectBundle@servletRequest" name="event" value="changeSelectObjectSearchCriteria"/> </uix:contents> </uix:rowLayout> </uix:tableLayout> </uix:header> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat> <uix:stackLayout> <oem:table name="selectObjectUI" beanKey="selectObjPageBean" blockSize="10" destinationBinding="destination@selectObjPageBean@servletRequest" formSubmitted="true" dataSourceProp="selectObjectUI" alternateTextBinding="NO_ITEMS_FOUND@uixDBObjectBundle@servletRequest" width="90%"> <uix:tableSelection> <uix:multipleSelection shortDescBinding="SELECT@uixDBObjectBundle@servletRequest" selectionBinding="selection@selectObjPageBean@servletRequest" selectedBinding="selected"/> </uix:tableSelection> </oem:table> </uix:stackLayout> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:pageButtons> <uix:pageButtonBar> <uix:button textBinding="CANCEL@uixDBObjectBundle@servletRequest" destination="javascript:self.close()" /> <uix:button textBinding="SELECT@uixDBObjectBundle@servletRequest" destination="javascript:lovSelect()" /> </uix:pageButtonBar> </uix:pageButtons> </uix:pageLayout> </db:form> </uix:body> </uix:document> </uix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de