I am trying to do some logic.
<if-compare field="parameters.quantityOnHandVar" operator="less" value="0"> do something <else-compare> do something else </else-compare> </if-compare> My do something else is never called. I can do two if's ok, but wondered if I am doing something wrong when I want to do a else in minilang.
Joel Fradkin
|
Hi Joel try this in minilang :
<if-compare field="parameters.quantityOnHandVar" operator="less" value="0"> <!-- do --> <else> <!-- do --> </else> </if-compare> If you're working with eclipse, it's best to configure your xml catalog, to have auto completion based on the xsd. Gil Le 22/10/2014 17:15, [hidden email] a écrit : I am trying to do some logic. <if-compare field="parameters.quantityOnHandVar" operator="less" value="0"> do something <else-compare> do something else </else-compare> </if-compare> My do something else is never called. I can do two if's ok, but wondered if I am doing something wrong when I want to do a else in minilang. ----- Joel Fradkin -- View this message in context: http://ofbiz.135035.n4.nabble.com/else-compare-question-tp4657240.html Sent from the OFBiz - User mailing list archive at Nabble.com. --
|
The way i use to set xml catalog in
eclipse : File -> Import
Select XML -> XML Catalog Then choose in the root of your ofbiz checkout the .xmlcatalog.xml file and validate. After that ctrl + space will guide you into your xml coding. Gil Le 22/10/2014 17:45, gil portenseigne a écrit :
--
|
In reply to this post by Gil Portenseigne
Thank you. I will check it out. Also will see about the eclipse settings you mentioned.
Joel Fradkin
|
Hi Joel,
Please specify type as well for if-comnpare if you are comparing other then strings. {code} <if-compare field="parameters.quantityOnHandVar" operator="less" value="0" type="BigDecimal"> <!-- --> <else> </else> </if-compare> {code} Thanks & Regards — Deepak Dixit On Oct 22, 2014, at 9:29 PM, [hidden email] wrote: > Thank you. I will check it out. Also will see about the eclipse settings you > mentioned. > > > > ----- > Joel Fradkin > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/else-compare-question-tp4657240p4657245.html > Sent from the OFBiz - User mailing list archive at Nabble.com. smime.p7s (6K) Download Attachment |
Free forum by Nabble | Edit this page |