<else-compare>question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

<else-compare>question

joelfradkin@gmail.com
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
Reply | Threaded
Open this post in threaded view
|

Re: <else-compare>question

Gil Portenseigne
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.


--

Gil Portenseigne
Consultant ERP OFBiz
Société Néréide
3b Les isles
37270 Veretz
Tel : 09 74 53 46 09, puis 1, poste 61
Mob : 06 82 740 444

www.nereide.fr

Membre d'OFBiz France
www.ofbiz-fr.org

 

Reply | Threaded
Open this post in threaded view
|

Re: <else-compare>question

Gil Portenseigne
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 :
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.


--

Gil Portenseigne
Consultant ERP OFBiz
Société Néréide
3b Les isles
37270 Veretz
Tel : 09 74 53 46 09, puis 1, poste 61
Mob : 06 82 740 444

www.nereide.fr

Membre d'OFBiz France
www.ofbiz-fr.org

 



--

Gil Portenseigne
Consultant ERP OFBiz
Société Néréide
3b Les isles
37270 Veretz
Tel : 09 74 53 46 09, puis 1, poste 61
Mob : 06 82 740 444

www.nereide.fr

Membre d'OFBiz France
www.ofbiz-fr.org

 

Reply | Threaded
Open this post in threaded view
|

Re: <else-compare>question

joelfradkin@gmail.com
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
Reply | Threaded
Open this post in threaded view
|

Re: <else-compare>question

Deepak Dixit-2
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