bRawData = true; // If you want the input format, don't go through the converters. return super.getSFieldValue(bDisplayFormat, bRawData);
bRawData = true; // If you want the input format, don't go through the converters. return super.getSFieldValue(bDisplayFormat, bRawData);
/** * display this field in html input format. * @param out The html out stream. * @param strFieldDesc The field description. * @param strFieldName The field name. * @param strSize The control size. * @param strMaxSize The string max size. * @param strValue The default value. * @param strControlType The control type. * @param iHtmlAttribures The attributes. */ public void printInputControl(PrintWriter out, String strFieldDesc, String strFieldName, String strSize, String strMaxSize, String strValue, String strControlType, int iHtmlAttributes) { strValue = Utility.encodeXML(this.getScreenField().getSFieldValue(false, true)); // Need the RAW data. if (m_vDisplays == null) this.scanTableItems(); out.println("<td><select name=" + strFieldName + ">"); for (int index = 0; index < m_vDisplays.size(); index++) { String strField = (String)m_vValues.get(index); String strDisplay = (String)m_vDisplays.get(index); if (strValue.equals(strField)) out.println("<option value=\"" + strField + "\" selected>" + strDisplay); else out.println("<option value=\"" + strField + "\">" + strDisplay); } out.println("</select></td>"); } /**
/** * Get the current string value in HTML.<p /> * May want to check GetRootScreen().GetScreenType() & INPUT/DISPLAY_MODE * @param out The html out stream. * @exception DBException File exception. */ public void printDisplayControl(PrintWriter out) { if (this.getScreenField().getConverter() == null) return; String strField = Utility.encodeXML(this.getScreenField().getSFieldValue(true, false)); if ((strField == null) || (strField.length() == 0)) strField = " "; //?"<br>"; String strHyperlink = ((Converter)this.getScreenField().getConverter()).getHyperlink(); if (strHyperlink != null) if (strHyperlink.length() > 0) strField = "<a href=\"" + strHyperlink + "\">" + strField + "<a>"; String strAlignment = this.getControlAlignment(); out.println("<td" + strAlignment + ">" + strField + "</td>"); } /**
if (sField.getConverter() != null) properties.put(sField.getSFieldParam(null, false), sField.getSFieldValue(false, false));
if (sField.getConverter() != null) properties.put(sField.getSFieldParam(null, false), sField.getSFieldValue(false, false));
if (sField.getScreenFieldView() != null) String strData = sField.getSFieldValue(false, false); // Match HTML submit (input format/go through converters). strURL = Utility.addURLParam(strURL, sField.getSFieldParam(null, false), strData); // Don't need outside frame stuff in a window
if (sField.getScreenFieldView() != null) String strData = sField.getSFieldValue(false, false); // Match HTML submit (input format/go through converters). strURL = Utility.addURLParam(strURL, sField.getSFieldParam(null, false), strData); // Don't need outside frame stuff in a window
if (iMaxSize < 40) strSize = strMaxSize; String strValue = this.getScreenField().getSFieldValue(false, false);