Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3238513 By: buycarz
I am trying to format a dbforms Textfield (Reported_Value) based on the value of another field (DisplayFormat) in the row. If DisplayFormat="percent", then I want the pattern for Reported_Value to be "###.#%". I used the ivanCustomerJSTL.jsp in the bookstore example as a guide. Here are the relevant lines of code: <%@ taglib uri="/WEB-INF/c-el.tld" prefix="c" %> ........................... <c:if test="${currentRow_dbformsindicator.DisplayFormat == 'percent'}" > <c:set var="displayFormat" value="###.#%" /> </c:if> .......................... <td><db:textField styleClass="clsInputStyle" size="15" pattern="<c:out value="${displayFormat}"/>" fieldName="Reported_Value"/></td> My problem is that I don't know the appropriate syntax to use for the "pattern" attribute. The above does not work. Does anyone know the correct syntax? Thank you, Charles Kogge ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=55830 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms