<%@ page language="java" contentType="text/html; charset=UTF-8"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="java.util.Hashtable" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.navigation.WebUtils" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String type = flRequest.getParameter("type"); String field = flRequest.getParameter("field"); String fieldid= flRequest.getParameter("fieldid"); String query = flRequest.getParameter("query"); String formIndex = flRequest.getParameter("formIndex"); Vector vectFld = (Vector)flRequest.getAttribute("vectFld"); vectFld = vectFld == null ? new Vector() : vectFld; Vector vectRefs = (Vector)flRequest.getAttribute("vectRefs"); vectRefs = vectRefs == null ? new Vector() : vectRefs; try { Integer.parseInt(formIndex); } catch (NumberFormatException nfe) { formIndex = "0"; } formIndex = formIndex != null && !"".equals(formIndex) ? formIndex : "0"; // deal with return mode : if fieldid then just do a getElementById else usual, through the form String fieldName=(fieldid==null)?field:fieldid; boolean fReturnWithID=(fieldid!=null); // AMO little enhancement to permit to open the list via a parameter in the URL String doList = (String)flRequest.getRequestParameterOrAttribute("doList"); %> "> ">
<%-- The 'gridFocusRecipient' tag is used to receive the focus when the mouse leaves a grid area. It's part of the Firefox triple-click bug fix. --%>
<% for(int i = 0; i < vectFld.size(); i++) { Hashtable row = (Hashtable)vectFld.elementAt(i); String strDisplay = (String)row.get("disp"); Vector vectField = (Vector)row.get("fld"); String currField = null; if (vectField != null && vectField.size() > 0) { currField = (String)vectField.elementAt(0); } %>
  <%= Utils.formatToWeb(strDisplay, false) %><% if (currField != null && vectRefs.contains(currField)) { %> <% } else { boolean isFob = currField.contains(":"); boolean isBoolean = false; if (!isFob) isBoolean = "BIT".equals(dico.getRefCode("FldFltID", dico.getFieldByName(currField).getFldFltID())); if (isBoolean) { %> <% } else { %> <% } } %>
<% } %>
" class="search_button_new">
">
" width="9" height="18">