<%@ page language="java" contentType="text/plain; charset=UTF-8"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.grid.*" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); String ctl = flRequest.getRequestParameterOrAttribute("ctl"); String field = flRequest.getParameter("field"); String formIndex = flRequest.getParameter("formIndex"); try { Integer.parseInt(formIndex); } catch (NumberFormatException nfe) { formIndex = "0"; } formIndex = formIndex != null && !"".equals(formIndex) ? formIndex : "0"; %> var i; var f = window.top.opener.document.forms[0]; if (f.eval<%= field %> && f.lbl<%= field %>) { var strEval = 'var o = document.forms[0].lbl<%= field %>.options; while(o.length > 0) o[o.length - 1] = null;'; for(i = 0; i < vectID.size(); i++) { strEval += 'o[o.length] = new Option(\'' + formatToJavascript(vectDisp.elementAt(i)) + '\', \'' + vectID.elementAt(i) + '\');'; } f.eval<%= field %>.value = strEval; } f.<%= field %>.value = '<%= ctl %>'; f.lbl<%= field %>.focus(); closeWindow();