Edit D:\app\Administrator\product\11.2.0\dbhome_1\j2ee\OC4J_EM\applications\em\em\target\svclvl\editSLRule.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='java.util.ArrayList' %> <%@ page import='oracle.sysman.eml.target.svclvl.SLRuleConstants' %> <%@ page import='oracle.sysman.eml.target.svclvl.SLRuleBean' %> <%@ page import='oracle.sysman.eml.target.svclvl.SLRuleUtil' %> <uix:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <uix:bundle name="SLResource" class="oracle.sysman.eml.target.svclvl.SLRuleMesg"/> <uix:document> <%@ include file="/oemTitle.jspf" %> <uix:body> <% SLRuleBean slrb = (SLRuleBean)request.getAttribute(SLRuleConstants.RENDER_BEAN); %> <uix:form name="slrule_form" destinationBinding="actionURI@renderBean@servletRequest" method="post"> <uix:pageLayout titleBinding="SL_TITLE_HEADER@SLResource" > <%@ include file="/oemGlobal.jspf" %> <uix:location > <uix:breadCrumbs> <uix:contents> <uix:link textBinding="svcTitle@renderBean@servletRequest" destinationBinding="svcHomePageURL@renderBean@servletRequest" /> <uix:link textBinding="SL_TITLE_HEADER@SLResource" /> </uix:contents> </uix:breadCrumbs> </uix:location> <%-- uix:form name="slrule_form" destination="<%= slrb.getActionURI() %>" method="post" --%> <uix:formValue name="<%= SLRuleConstants.PARAM_SVC_NAME %>" valueBinding="svcName@renderBean@servletRequest" /> <uix:formValue name="<%= SLRuleConstants.PARAM_TGT_TYPE %>" valueBinding="targetType@renderBean@servletRequest" /> <uix:formValue name="<%= SLRuleConstants.PARAM_OP %>" value="<%= SLRuleConstants.OP_EDIT_SLRULE %>" /> <%-- uix:formParameter name="<%= SLRuleConstants.PARAM_DAYS %>"/ uix:formParameter name="<%= SLRuleConstants.PARAM_STARTTIME %>"/ uix:formParameter name="<%= SLRuleConstants.PARAM_ENDTIME %>"/ uix:formParameter name="<%= SLRuleConstants.PARAM_AVAIL_INCL %>"/ uix:formParameter name="<%= SLRuleConstants.PARAM_RESP_INCL %>"/ uix:formParameter name="<%= SLRuleConstants.PARAM_EXPSL %>"/ --%> <uix:formValue name="<%= SLRuleConstants.PARAM_DAYS %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_STARTTIME %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_ENDTIME %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_AVAIL_INCL %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_RESP_INCL %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_RESP_NOT_INCL %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_RESP_INCL_CONCATS %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_RESP_NOT_INCL_CONCATS %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_BUS_INCL %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_BUS_NOT_INCL %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_BUS_INCL_CONCATS %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_BUS_NOT_INCL_CONCATS %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_EXPSL %>" value="" /> <uix:formValue name="<%= SLRuleConstants.PARAM_TIMEZONE %>" valueBinding="timezone@renderBean@servletRequest" /> <uix:formValue name="<%= SLRuleConstants.PARAM_SHOW_BUS_CRITERIA %>" valueBinding="showBusCriteria@renderBean@servletRequest" /> <%-- /uix:form --%> <uix:messages> <uix:stackLayout rendered="false" renderedBinding="showError@renderBean@servletRequest"> <uix:contents> <uix:messageBox messageBinding="errorstring@servletRequest" messageTypeBinding="messageType@renderBean@servletRequest" /> </uix:contents> </uix:stackLayout> </uix:messages> <uix:stackLayout> <%-- uix:rowLayout width="95%" uix:cellFormat hAlign="right" oem:pageRefreshed/ /uix:cellFormat /uix:rowLayout --%> <uix:contents> <%-- uix:header textBinding="SL_TITLE_HEADER@SLResource" --%> <uix:rowLayout > <uix:cellFormat > <uix:formattedText styleClass="OraInstructionText" textBinding="SL_SPECIFY_MESSAGE@SLResource" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="6" /> </uix:cellFormat> <uix:cellFormat hAlign="right"> <%-- uix:button textBinding="SL_CANCEL_TEXT@SLResource" onClick="return formsubmit('Cancel')" --%> <uix:submitButton textBinding="SL_CANCEL_TEXT@SLResource" name="event" value="cancel" onClick="return formcancel(this)" /> <uix:spacer width="5" /> <%-- uix:button textBinding="SL_SAVE_RULE_TEXT@SLResource" onClick="return formsubmit('OK')" / --%> <uix:submitButton textBinding="SL_SAVE_RULE_TEXT@SLResource" renderedBinding="showOK@renderBean@servletRequest" name="event" value="OK" onClick="return formsubmit(this)" /> </uix:cellFormat> </uix:rowLayout> <uix:header textBinding="SL_EXPECTED_SL_HEADER@SLResource" > <uix:rowLayout > <uix:cellFormat > <uix:formattedText styleClass="OraInstructionText" textBinding="SL_EXPECTED_SL_TEXT@SLResource"/> </uix:cellFormat> </uix:rowLayout> </uix:header> <uix:rowLayout> <uix:cellFormat > <uix:spacer width="40" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="40" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="40" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="40" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="40" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="40" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="40" /> </uix:cellFormat> <uix:cellFormat hAlign="center" > <uix:messageTextInput promptBinding="SL_EXPECTED_SL_HEADER@SLResource" required="no" contentStyleClass="OraInstructionText" messageType="none" textBinding="expSL@renderBean@servletRequest" columns="4" name="txt_expSL" readOnly="yes" styleClass="OraFieldText" shortDescBinding="SL_EXPECTED_SL_TEXT@SLResource" /> </uix:cellFormat> </uix:rowLayout> <uix:header textBinding="SL_SERVICE_LEVEL@SLResource" > <uix:cellFormat width="50%" vAlign="top"> <uix:header textBinding="SL_BUSINESS_HRS@SLResource" > <uix:rowLayout > <uix:cellFormat > <uix:spacer width="10"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout > <uix:tableLayout cellSpacing="0" borderWidth="0" hAlign="left" > <uix:contents> <uix:rowLayout> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="13" /> <uix:styledText textBinding="SL_DAYS@SLResource" styleClass="OraInstructionText" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="8" /> <uix:checkBox name="day1" textBinding="SL_MON@SLResource" checked="<%= slrb.dayChecked(1) %>" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> </uix:cellFormat> <uix:cellFormat > <uix:checkBox name="day2" textBinding="SL_TUE@SLResource" checked="<%= slrb.dayChecked(2) %>" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:checkBox name="day3" textBinding="SL_WED@SLResource" checked="<%= slrb.dayChecked(3) %>" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="8" /> <uix:checkBox name="day4" textBinding="SL_THURS@SLResource" checked="<%= slrb.dayChecked(4) %>" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:checkBox name="day5" textBinding="SL_FRI@SLResource" checked="<%= slrb.dayChecked(5) %>" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:checkBox name="day6" textBinding="SL_SAT@SLResource" checked="<%= slrb.dayChecked(6) %>" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="15" /> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="8" /> <uix:checkBox name="day7" textBinding="SL_SUN@SLResource" checked="<%= slrb.dayChecked(7) %>" /> </uix:cellFormat> </uix:rowLayout> </uix:contents> </uix:tableLayout> </uix:rowLayout> <uix:rowLayout > <uix:cellFormat width="50%"> <uix:rowLayout > <uix:cellFormat > <uix:spacer width="10"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout > <uix:cellFormat hAlign="left" vAlign="center"> <uix:spacer width="15" /> <uix:formattedText styleClass="OraInstructionText" textBinding="SL_START@SLResource"/> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="10" /> <uix:choice name="start_hour" selectedIndex="<%= slrb.getSelectedIndex(SLRuleConstants.STARTHOUR) %>" shortDescBinding="SL_START@SLResource" > <uix:contents childDataBinding="hourList@renderBean@servletRequest"> <uix:option textBinding="hour" valueBinding="hour"/> </uix:contents> </uix:choice> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="2" /> <uix:formattedText styleClass="OraInstructionText" textBinding="SL_COLON@SLResource"/> <uix:spacer width="2" /> </uix:cellFormat > <uix:cellFormat> <uix:choice name="start_min" selectedIndex="<%= slrb.getSelectedIndex(SLRuleConstants.STARTMIN) %>" shortDescBinding="SL_COLON@SLResource"> <uix:contents childDataBinding="minList@renderBean@servletRequest"> <uix:option textBinding="min" valueBinding="min"/> </uix:contents> </uix:choice> </uix:cellFormat> <uix:cellFormat > <uix:spacer width="20" /> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="20" /> </uix:cellFormat> <uix:formattedText styleClass="OraInstructionText" textBinding="SL_END@SLResource"/> <uix:cellFormat> <uix:spacer width="10" /> <uix:choice name="end_hour" selectedIndex="<%= slrb.getSelectedIndex(SLRuleConstants.ENDHOUR) %>" onChange="endHourChange()" shortDescBinding="SL_END@SLResource" > <uix:contents childDataBinding="endHourList@renderBean@servletRequest"> <uix:option textBinding="hour" valueBinding="hour"/> </uix:contents> </uix:choice> </uix:cellFormat> <uix:cellFormat vAlign="center"> <uix:spacer width="2" /> <uix:styledText styleClass="OraInstructionText" textBinding="SL_COLON@SLResource"/> <uix:spacer width="2" /> </uix:cellFormat> <uix:cellFormat> <uix:choice name="end_min" selectedIndex="<%= slrb.getSelectedIndex(SLRuleConstants.ENDMIN) %>" shortDescBinding="SL_COLON@SLResource" > <%-- onChange="endMinChange()"> --%> <uix:contents childDataBinding="minList@renderBean@servletRequest"> <uix:option textBinding="min" valueBinding="min" /> </uix:contents> </uix:choice> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout > <uix:cellFormat > <uix:spacer width="10"/> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat vAlign="center"> <uix:contents> <uix:spacer width="15" /> <uix:formattedText textBinding="SL_TIMEZONE@SLResource" styleClass="OraInstructionText"/> </uix:contents> </uix:cellFormat> <uix:cellFormat > <uix:contents> <uix:spacer width="10" /> </uix:contents> </uix:cellFormat> <uix:cellFormat vAlign="center" > <uix:contents> <uix:formattedText textBinding="longTimezone@renderBean@servletRequest" styleClass="OraInstructionTextStrong"/> </uix:contents> </uix:cellFormat> </uix:rowLayout> </uix:cellFormat> </uix:rowLayout> </uix:header> </uix:cellFormat> <uix:cellFormat width="50%" vAlign="top" > <uix:header textBinding="SL_AVAILABILITY_TEXT@SLResource" /> <uix:rowLayout > <uix:cellFormat > <uix:spacer width="20"/> </uix:cellFormat> <uix:cellFormat > <uix:formattedText styleClass="OraInstructionText" textBinding="SL_AVAIL_TEXT@SLResource" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout > <uix:cellFormat > <uix:spacer width="32"/> </uix:cellFormat> <uix:cellFormat> <uix:checkBox name="Up" textBinding="SL_UP_TIME_TEXT@SLResource" disabled="true" checked="true" /> </uix:cellFormat> <uix:cellFormat> <uix:spacer width="15"/> <uix:checkBox name="plan_down" textBinding="SL_BLACKOUT_TEXT@SLResource" checked="<%= slrb.availInclChecked(SLRuleConstants.BLACKOUT) %>" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat > <uix:spacer width="32"/> </uix:cellFormat> <uix:cellFormat> <uix:checkBox name="unmonitored" textBinding="SL_UNKNOWN_TEXT@SLResource" checked="<%= slrb.availInclChecked(SLRuleConstants.UNMONITORED) %>" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout > <uix:cellFormat > <uix:spacer height="15" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout > <uix:cellFormat > <uix:spacer height="15" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout > <uix:cellFormat > <uix:spacer height="15" /> </uix:cellFormat> </uix:rowLayout> </uix:cellFormat> <uix:rowLayout > <uix:cellFormat > <uix:spacer height="15" /> </uix:cellFormat> </uix:rowLayout> <uix:header textBinding="SL_PERFORMANCE_TEXT@SLResource" > <uix:rowLayout> <uix:contents> <uix:cellFormat> <uix:formattedText styleClass="OraInstructionText" textBinding="SL_PERFORMANCE_METRIC_TEXT@SLResource"/> </uix:cellFormat> </uix:contents> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat > <uix:spacer height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:contents> <uix:cellFormat> <uix:spacer width="40"/> </uix:cellFormat> <uix:cellFormat width="100%"> <uix:shuttle leadingHeaderBinding="SL_SHUTTLE_LEADING@SLResource" trailingHeaderBinding="SL_SHUTTLE_TRAILING@SLResource" name="respMetrics" styleClass="OraHeaderSubSub" > <uix:leading> <uix:list multiple="true" shortDescBinding="SL_PERFORMANCE_TEXT@SLResource" > <uix:contents childDataBinding="metricLeadingList@renderBean@servletRequest"> <uix:option textBinding="metricLabel" valueBinding="metricConcats"/> </uix:contents> </uix:list> </uix:leading> <uix:trailing> <uix:list multiple="true" shortDescBinding="SL_PERFORMANCE_METRIC_TEXT@SLResource" > <uix:contents childDataBinding="metricTrailingList@renderBean@servletRequest"> <uix:option textBinding="metricLabel" valueBinding="metricConcats"/> </uix:contents> </uix:list> </uix:trailing> </uix:shuttle> <uix:spacer width="10" /> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:header> <uix:header textBinding="SL_BUS_CRIT_HEADER@SLResource" renderedBinding="showBusCriteria@renderBean@servletRequest"> <uix:rowLayout> <uix:contents> <uix:cellFormat> <uix:formattedText styleClass="OraInstructionText" textBinding="SL_BUS_CRIT_TEXT@SLResource"/> </uix:cellFormat> </uix:contents> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat> <uix:spacer height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:contents> <uix:cellFormat> <uix:spacer width="40" /> </uix:cellFormat> <uix:cellFormat width="100%"> <uix:shuttle leadingHeaderBinding="SL_AVAIL_BUS_MET_TEXT@SLResource" trailingHeaderBinding="SL_SEL_BUS_MET_TEXT@SLResource" name="busMetrics" styleClass="OraHeaderSubSub"> <uix:leading> <uix:list multiple="true" shortDescBinding="SL_BUS_CRIT_METRIC_TEXT@SLResource"> <uix:contents childDataBinding="businessMetricLeadingList@renderBean@servletRequest"> <uix:option textBinding="metricLabel" valueBinding="metricConcats"/> </uix:contents> </uix:list> </uix:leading> <uix:trailing> <uix:list multiple="true" shortDescBinding="SL_BUS_CRIT_METRIC_TEXT@SLResource"> <uix:contents childDataBinding="businessMetricTrailingList@renderBean@servletRequest"> <uix:option textBinding="metricLabel" valueBinding="metricConcats"/> </uix:contents> </uix:list> </uix:trailing> </uix:shuttle> <uix:spacer width="10" /> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:header> </uix:header> <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:submitButton textBinding="SL_CANCEL_TEXT@SLResource" name="event" value="cancel" onClick="return formcancel(this)" /> <uix:spacer width="5" /> <uix:submitButton textBinding="SL_SAVE_RULE_TEXT@SLResource" renderedBinding="showOK@renderBean@servletRequest" name="event" value="OK" onClick="return formsubmit(this)" /> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:tableLayout> </uix:contents> </uix:stackLayout> </uix:pageLayout> </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 formcancel(obj){ document.slrule_form.op.value = 'Cancel'; document.slrule_form.submit(); return true; } function endHourChange(){ if (document.slrule_form.end_hour.selectedIndex == 24){ document.slrule_form.end_min.selectedIndex = 0; //document.slrule_form.end_min.disabled = true; }else{ //document.slrule_form.end_min.disabled = false; } } function endMinChange(){ if (document.slrule_form.end_hour.selectedIndex == 24){ if (document.slrule_form.end_min.selectedIndex != 0){ alert('Minute has to be 00 if Hour is 24'); document.slrule_form.end_min.selectedIndex = 0; } } } function formsubmit(obj){ notchecked = true; document.slrule_form.days.value = ''; //day1ElemIndex = 9; day1ElemIndex = getIndex(document.slrule_form.elements, 'day1'); //alert(day1ElemIndex); for (i = day1ElemIndex;i < day1ElemIndex + 7;i++){ if (document.slrule_form.elements[i].checked){ notchecked = false; document.slrule_form.days.value = document.slrule_form.days.value + '1'; }else{ document.slrule_form.days.value = document.slrule_form.days.value + '0'; } } /* if(notchecked){ alert('Atleast one day should be selected') return false; } */ start_hour_index = document.slrule_form.start_hour.selectedIndex; start_min_index = document.slrule_form.start_min.selectedIndex; end_hour_index = document.slrule_form.end_hour.selectedIndex; end_min_index = document.slrule_form.end_min.selectedIndex; /* if ( (start_hour_index > end_hour_index) || ((start_hour_index == end_hour_index) && (start_min_index >= end_min_index)) ){ alert('End Time should be greater than Start Time'); return false; } */ document.slrule_form.starttime.value = document.slrule_form.start_hour.options[start_hour_index].text + document.slrule_form.start_min.options[start_min_index].text document.slrule_form.endtime.value = document.slrule_form.end_hour.options[end_hour_index].text + document.slrule_form.end_min.options[end_min_index].text document.slrule_form.avail_incl.value = '1'; if (document.slrule_form.unmonitored.checked){ if (document.slrule_form.plan_down.checked){ document.slrule_form.avail_incl.value = '4'; }else{ document.slrule_form.avail_incl.value = '3'; } }else{ if (document.slrule_form.plan_down.checked){ document.slrule_form.avail_incl.value = '2'; } } respMetricsElemIndex = getIndex(document.slrule_form.elements, 'respMetrics:trailing'); document.slrule_form.resp_incl.value = ''; for (i = 0;i < document.slrule_form.elements[respMetricsElemIndex].options.length - 1;i++){ document.slrule_form.resp_incl.value = document.slrule_form.resp_incl.value + document.slrule_form.elements[respMetricsElemIndex].options[i].text; if (i != document.slrule_form.elements[respMetricsElemIndex].options.length - 2){ document.slrule_form.resp_incl.value = document.slrule_form.resp_incl.value + ':'; } } //alert(document.slrule_form.resp_incl.value); document.slrule_form.resp_incl_concats.value = ''; for (i = 0;i < document.slrule_form.elements[respMetricsElemIndex].options.length - 1;i++){ document.slrule_form.resp_incl_concats.value = document.slrule_form.resp_incl_concats.value + document.slrule_form.elements[respMetricsElemIndex].options[i].value; if (i != document.slrule_form.elements[respMetricsElemIndex].options.length - 2){ document.slrule_form.resp_incl_concats.value = document.slrule_form.resp_incl_concats.value + ':'; } } //alert(document.slrule_form.resp_incl_concats.value); respMetricsElemIndex = getIndex(document.slrule_form.elements, 'respMetrics:leading'); document.slrule_form.resp_not_incl.value = ''; for (i = 0;i < document.slrule_form.elements[respMetricsElemIndex].options.length - 1;i++){ document.slrule_form.resp_not_incl.value = document.slrule_form.resp_not_incl.value + document.slrule_form.elements[respMetricsElemIndex].options[i].text; if (i != document.slrule_form.elements[respMetricsElemIndex].options.length - 2){ document.slrule_form.resp_not_incl.value = document.slrule_form.resp_not_incl.value + ':'; } } //alert(document.slrule_form.resp_not_incl.value); document.slrule_form.resp_not_incl_concats.value = ''; for (i = 0;i < document.slrule_form.elements[respMetricsElemIndex].options.length - 1;i++){ document.slrule_form.resp_not_incl_concats.value = document.slrule_form.resp_not_incl_concats.value + document.slrule_form.elements[respMetricsElemIndex].options[i].value; if (i != document.slrule_form.elements[respMetricsElemIndex].options.length - 2){ document.slrule_form.resp_not_incl_concats.value = document.slrule_form.resp_not_incl_concats.value + ':'; } } //alert(document.slrule_form.resp_not_incl_concats.value); /* Business Metric related Changes - Begins here */ if (document.slrule_form.showBusCriteria.value == 'true') { busMetricsElemIndex = getIndex(document.slrule_form.elements, 'busMetrics:trailing'); document.slrule_form.bus_incl.value = ''; for (i = 0;i < document.slrule_form.elements[busMetricsElemIndex].options.length - 1;i++){ document.slrule_form.bus_incl.value = document.slrule_form.bus_incl.value + document.slrule_form.elements[busMetricsElemIndex].options[i].text; if (i != document.slrule_form.elements[busMetricsElemIndex].options.length - 2){ document.slrule_form.bus_incl.value = document.slrule_form.bus_incl.value + ':'; } } document.slrule_form.bus_incl_concats.value = ''; for (i = 0;i < document.slrule_form.elements[busMetricsElemIndex].options.length - 1;i++){ document.slrule_form.bus_incl_concats.value = document.slrule_form.bus_incl_concats.value + document.slrule_form.elements[busMetricsElemIndex].options[i].value; if (i != document.slrule_form.elements[busMetricsElemIndex].options.length - 2){ document.slrule_form.bus_incl_concats.value = document.slrule_form.bus_incl_concats.value + ':'; } } busMetricsElemIndex = getIndex(document.slrule_form.elements, 'busMetrics:leading'); document.slrule_form.bus_not_incl.value = ''; for (i = 0;i < document.slrule_form.elements[busMetricsElemIndex].options.length - 1;i++){ document.slrule_form.bus_not_incl.value = document.slrule_form.bus_not_incl.value + document.slrule_form.elements[busMetricsElemIndex].options[i].text; if (i != document.slrule_form.elements[busMetricsElemIndex].options.length - 2){ document.slrule_form.bus_not_incl.value = document.slrule_form.bus_not_incl.value + ':'; } } document.slrule_form.bus_not_incl_concats.value = ''; for (i = 0;i < document.slrule_form.elements[busMetricsElemIndex].options.length - 1;i++){ document.slrule_form.bus_not_incl_concats.value = document.slrule_form.bus_not_incl_concats.value + document.slrule_form.elements[busMetricsElemIndex].options[i].value; if (i != document.slrule_form.elements[busMetricsElemIndex].options.length - 2){ document.slrule_form.bus_not_incl_concats.value = document.slrule_form.bus_not_incl_concats.value + ':'; } } } /* Business Metric related Changes - Ends here */ /* if ((document.slrule_form.txt_expSL.value.length == 0) || isNaN(document.slrule_form.txt_expSL.value)){ alert('Enter a number between 0 and 100'); return false; } if ((document.slrule_form.txt_expSL.value < 0) || (document.slrule_form.txt_expSL.value > 100)){ alert('Enter a number between 0 and 100'); return false; }else{ document.slrule_form.expSL.value = document.slrule_form.txt_expSL.value; } */ document.slrule_form.expSL.value = document.slrule_form.txt_expSL.value; document.slrule_form.submit(); return true; }" /> </uix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de