Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\selectWkspacePage.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); //no schema name here ,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(element.value) !=-1) { var o = document.foo.selectedObjectNames.value.indexOf(element.value); 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 + element.value.length + 1); if(tmpstr2.length == 0) { document.foo.selectedObjectNames.value = tmpstr + tmpstr2 + ","; } else { document.foo.selectedObjectNames.value = tmpstr + tmpstr2; } } } } function lovSelect() { //needed todeselect while navigating getAllRows(); 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); } 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(selectedElement.value) ==-1 && document.foo.selectedObjectNames.value.indexOf(selectedElement.value)==-1 ) { objs = selectedElement.value; } } else { if(window.opener.document.selectObj.selectedSchemaObjectName.value.indexOf(selectedElement.value)==-1 && document.foo.selectedObjectNames.value.indexOf(selectedElement.value)==-1 && objs.indexOf(selectedElement.value)==-1 ) { objs = objs + "," + selectedElement.value; } } } } if(window.opener.document.selectObj.selectedSchemaObjectName.value.length == 0) { window.opener.document.selectObj.selectedSchemaObjectName.value = document.foo.selectedObjectNames.value + objs; } else { 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/selectWkspacePage"/> <uix:formValue name="selectedObjectNames" valueBinding="selectedObjectNames@selectObjPageBean@servletRequest"/> <uix:formValue name="event" value="changeSelectObjectSearchCriteria" /> <uix:tableLayout cellSpacing="4"> <uix:rowLayout> <uix:cellFormat> <uix:tableLayout cellSpacing="4"> <uix:rowLayout hAlign='left'> <uix:contents> <uix:cellFormat> <uix:contents> <uix:styledText labeledNodeId="selectObjectSearchCriteria" textBinding="searchObjPagePrompt@objectPageBean@servletRequest" styleClass="OraPromptText" /> </uix:contents> </uix:cellFormat> <uix:textInput id="selectObjectSearchCriteria" name="selectObjectSearchCriteria" textBinding="selectObjectSearchCriteria@selectObjPageBean@servletRequest"/> <uix:submitButton textBinding="GO@uixDBObjectBundle@servletRequest" name="event" value="changeSelectObjectSearchCriteria"/> </uix:contents> </uix:rowLayout> </uix:tableLayout> </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="100%"> <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