Hi Buddy, I tried the following line:
<field name="price" title="${uiLabelMap.ProductPrice}"><range-find default-option-from="equals" default-option-thru="lessThan" default-value="20"/></field>
It is working fine for me. :-)The default-option-from allows you to keep the default value in the first combo box in the field that use range tag inside it. It can be either equals, greaterThan or greaterThanEqualTo.
It looks like that you are using some old revision of OFBiz. Please provide few more details. Are you using trunk ? -- Ashish Jon Steelman wrote:
Hi Ashish, When I add default-option-from to a range-find as here.... <field name="serialNumber"><range-find default-option-from="greaterThanEqualTo"/></field> ...I get the following error: UtilXml.java:649:ERROR] XmlFileLoader: File file:/Users/jonsteelman/IdeaProjects/ofbiz-dev/applications/product/webapp/facility/facility/FacilityForms.xml process error. Line: 153. Error message: cvc-complex-type.3.2.2: Attribute 'default-option-from' is not allowed to appear in element 'range-find'. I'd like to be able to set the default-option-from & -thru. Is this a bug? User error? Just not implemented? As an ofbiz newbie, just trying to figure out why it isn't there. I can submit a JIRA issue if helpful. Thanks, Jon Ashish Vijaywargiya-4 wrote:Please be more specific. I am not able to understand your question. -- Ashish On Mon, May 4, 2009 at 9:06 PM, Jon Steelman <[email protected]> wrote:Am I making a mistake or is it true that range-find doesn¹t support default-option-from and default-option-thru? It would be helpful to be able to change the default. Thanks, Jon
smime.p7s
Description: S/MIME Cryptographic Signature
