Edit D:\app\Administrator\product\11.2.0\dbhome_1\j2ee\OC4J_EM\applications\em\em\target\svclvl\sdbSelectMetrics.jsp
<%@ include file="/sdk/oemTop.jspf" %> <%@ include file="/oemNoscript.jspf" %> <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %> <%@ page import='oracle.sysman.resources.eml.ip.emr.services.ServicesMsgID'%> <%@ page import='oracle.sysman.resources.eml.ip.emr.services.ServicesMsg' %> <jsp:useBean id="serviceConstants" scope="request" class="oracle.sysman.eml.ip.render.elem.emr.services.constants.ServiceConstants"/> <uix:renderingContext id="renderingContext"> <uix:bundle name="servicesBundle" class="oracle.sysman.resources.eml.ip.emr.services.ServicesMsg"/> <uix:document> <%@ include file="/oemTitle.jspf" %> <uix:body> <uix:form name="metric_selection" destination="/em/console/target/svclvl/sdbselectmetrics" method="post"> <uix:pageLayout titleBinding="SELECT_METRICS@servicesBundle" > <uix:stackLayout rendered="false" renderedBinding="isError@viewBean@servletRequest"> <uix:contents> <uix:messageBox messageBinding="errorMessage@viewBean@servletRequest" messageTypeBinding="messageType@viewBean@servletRequest" textBinding="errorMessageTitle@viewBean@servletRequest"/> </uix:contents> </uix:stackLayout> <uix:stackLayout rendered="true" renderedBinding="true"> <uix:contents> <uix:tableLayout width="100%"> <uix:rowLayout hAlign="left"> <uix:cellFormat> <uix:styledText textBinding="SERVICE_METRICS_SELECTION_MESSAGE@servicesBundle" styleClass="OraInstructionText" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout hAlign="left"> <uix:cellFormat> <uix:header textBinding="PERFORMANCE_METRICS@servicesBundle" > <uix:radioGroup name="servicePerfMetricsRadioGrp" textBinding="text" valueBinding="value" selectedIndexBinding="selectedSerPerfRadio@viewBean@servletRequest" type="radio" childDataBinding="serPerfRadio@viewBean@servletRequest" /> <uix:shuttle name="serviceCombo" styleClass="OraHeaderSubSubSub" leadingHeaderBinding="AVAILABLE_PERFORMANCE_METRICS@servicesBundle" trailingHeaderBinding="SELECTED_PERFORMANCE_METRICS@servicesBundle"> <uix:leading> <uix:list multiple="true" shortDescBinding="AVAILABLE_PERFORMANCE_METRICS@servicesBundle"> <uix:contents childDataBinding="metricLeadingList@viewBean@servletRequest"> <uix:option textBinding="metricLabel" valueBinding="metricConcats"/> </uix:contents> </uix:list> </uix:leading> <uix:trailing> <uix:list multiple="true" shortDescBinding="SELECTED_PERFORMANCE_METRICS@servicesBundle"> <uix:contents childDataBinding="metricTrailingList@viewBean@servletRequest"> <uix:option textBinding="metricLabel" valueBinding="metricConcats"/> </uix:contents> </uix:list> </uix:trailing> </uix:shuttle> </uix:header> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout hAlign="left"> <uix:cellFormat> <uix:header textBinding="USAGE_AND_BUSINESS_INDICATORS@servicesBundle"> <uix:radioGroup name="serviceUsageMetricsRadioGrp" textBinding="text" valueBinding="value" selectedIndexBinding="selectedSerUsageRadio@viewBean@servletRequest" type="radio" childDataBinding="serUsageRadio@viewBean@servletRequest" /> <uix:shuttle name="usageMetrics" styleClass="OraHeaderSubSub" leadingHeaderBinding="AVAILABLE_USAGE_AND_BUSINESS_INDICATORS@servicesBundle" trailingHeaderBinding="SELECTED_USAGE_AND_BUSINESS_INDICATORS@servicesBundle"> <uix:leading> <uix:list multiple="true" shortDescBinding="AVAILABLE_USAGE_AND_BUSINESS_INDICATORS@servicesBundle"> <uix:contents childDataBinding="metricUsageLeadingList@viewBean@servletRequest"> <uix:option textBinding="metricUsageLabel" valueBinding="metricUsageConcats"/> </uix:contents> </uix:list> </uix:leading> <uix:trailing> <uix:list multiple="true" shortDescBinding="SELECTED_USAGE_AND_BUSINESS_INDICATORS@servicesBundle"> <uix:contents childDataBinding="metricUsageTrailingList@viewBean@servletRequest"> <uix:option textBinding="metricUsageLabel" valueBinding="metricUsageConcats"/> </uix:contents> </uix:list> </uix:trailing> </uix:shuttle> </uix:header> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="100%" cellSpacing="0" cellPadding="0" borderWidth="0" > <uix:contents> <uix:rowLayout > <uix:contents> <uix:cellFormat> <uix:spacer width="10" /> </uix:cellFormat> <uix:cellFormat hAlign="right"> <uix:button textBinding="CANCEL@servicesBundle" onClick="javascript:window.close()"/> <uix:spacer width="5" /> <uix:button textBinding="SUBMIT@servicesBundle" onClick="javascript:doSubmit();"/> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:tableLayout> </uix:contents> </uix:stackLayout> </uix:pageLayout> <uix:formValue name="serviceName" valueBinding="svcName@viewBean@servletRequest"/> <uix:formValue name="isErrorSet" value=""/> <uix:formValue name="errorType" value=""/> <uix:formValue name="metricSelectionEvent" value="submit"/> <uix:formValue name="svcName" valueBinding="svcName@viewBean@servletRequest"/> <uix:formValue name="targetType" valueBinding="targetType@viewBean@servletRequest"/> <uix:formValue name="svcPerfMetrics" valueBinding="svcPerfMetrics@viewBean@servletRequest"/> <uix:formValue name="svcUsageMetrics" valueBinding="svcUsageMetrics@viewBean@servletRequest"/> <uix:formValue name="formSubmit" value=""/> </uix:form> </uix:body> </uix:document> <uix:script text=" function getIndex(formElements, elementName){ for (i = 0;i < formElements.length;i++){ if (formElements[i].name == elementName){ return i; } } return null; } function doSubmit() { var index = getIndex(document.forms[0].elements, 'serviceCombo:trailing'); var index2 = getIndex(document.forms[0].elements, 'usageMetrics:trailing'); var perfmetrics = ''; var usagemetrics = ''; var usageRadioSelected = 0; var perfRadioSelected = 0; var true1 = 'true'; var type = '0'; for(val = 0; val<document.forms[0].serviceUsageMetricsRadioGrp.length;val++) { if(document.forms[0].serviceUsageMetricsRadioGrp[val].checked == true) usageRadioSelected= document.forms[0].serviceUsageMetricsRadioGrp[val].value; } for(val1 = 0; val1<document.forms[0].servicePerfMetricsRadioGrp.length;val1++) { if(document.forms[0].servicePerfMetricsRadioGrp[val1].checked == true) perfRadioSelected= document.forms[0].servicePerfMetricsRadioGrp[val1].value; } if(perfRadioSelected == 1) { if ((document.forms[0].elements[index].options.length < 5) && (document.forms[0].elements[index].options.length > 1)) { for(var i=0;i<document.forms[0].elements[index].options.length-1;i++) { if(perfmetrics == '') { perfmetrics = document.forms[0].elements[index].options[i].text; } else { perfmetrics = perfmetrics+','+document.forms[0].elements[index].options[i].text; } } } else if(document.forms[0].elements[index].options.length <= 1) { document.forms[0].isErrorSet.value = true1; document.forms[0].errorType.value = '1'; } else if (document.forms[0].elements[index].options.length >= 5) { for(var i=0;i<document.forms[0].elements[index].options.length-1;i++) { if(perfmetrics == '') { perfmetrics = document.forms[0].elements[index].options[i].text; } else { perfmetrics = perfmetrics+','+document.forms[0].elements[index].options[i].text; } } document.forms[0].isErrorSet.value = true1; document.forms[0].errorType.value = '2'; } } else perfmetrics = 'Default Performance Metrics'; if(usageRadioSelected == 1) { if((document.forms[0].elements[index2].options.length < 5) && (document.forms[0].elements[index2].options.length > 1)) { for(var i=0;i<document.forms[0].elements[index2].options.length-1;i++) { if(usagemetrics == '') { usagemetrics = document.forms[0].elements[index2].options[i].text; } else { usagemetrics = usagemetrics+','+document.forms[0].elements[index2].options[i].text; } } } else if(document.forms[0].elements[index2].options.length <= 1) { document.forms[0].isErrorSet.value = true1; document.forms[0].errorType.value = '3'; }else if(document.forms[0].elements[index2].options.length >= 5) { for(var i=0;i<document.forms[0].elements[index2].options.length-1;i++) { if(usagemetrics == '') { usagemetrics = document.forms[0].elements[index2].options[i].text; } else { usagemetrics = usagemetrics+','+document.forms[0].elements[index2].options[i].text; } } document.forms[0].isErrorSet.value = true1; document.forms[0].errorType.value = '4'; } }else usagemetrics = 'Default Usage and Business Indicators'; if(!(document.forms[0].isErrorSet.value == true1)) { opener.document.forms[0].perfMetrics.value = perfmetrics; opener.document.forms[0].usageMetrics.value = usagemetrics; opener.document.forms[0].serviceName.value = document.forms[0].serviceName.value; // opener.location.href = window.opener.location + 'metricTableAnchor'; // opener.document.forms[0].action = opener.document.forms[0].action + '#metricTableAnchor'; opener.document.forms[0].anchor.value = 'metricTableAnchor' ; opener.document.forms[0].submit(); self.close(); } else { document.forms[0].svcUsageMetrics.value = usagemetrics; document.forms[0].svcPerfMetrics.value = perfmetrics; document.forms[0].formSubmit.value = 'submit'; document.forms[0].submit(); } } "/> </uix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de