MiniLang : value in

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

MiniLang : value in

Jacques Le Roux
Administrator
It's perhaps a stupid question (just a quick one, actually I did not
look at simple-method.xsd)

Why is there no value attribute in the if-compare-field element ?

So we have to write something like

<set field="Not" value="N"/>
<if-compare-field field-name="res.res1" operator="equals"
to-field-name="Not">

Where we could have something intuitive like

<if-compare-field field-name="res.res1" operator="equals"  value="N">

Thanks

Jacques

Reply | Threaded
Open this post in threaded view
|

Re: MiniLang : value in

cjhowe
you're looking for the <if-compare> method.  if-copmpare compares a
field to a value

<if-compare operator="less" field-name="" value="" format=""
map-name="" type="String">

--- Jacques Le Roux <[hidden email]> wrote:

> It's perhaps a stupid question (just a quick one, actually I did not
> look at simple-method.xsd)
>
> Why is there no value attribute in the if-compare-field element ?
>
> So we have to write something like
>
> <set field="Not" value="N"/>
> <if-compare-field field-name="res.res1" operator="equals"
> to-field-name="Not">
>
> Where we could have something intuitive like
>
> <if-compare-field field-name="res.res1" operator="equals"  value="N">
>
> Thanks
>
> Jacques
>
>

Reply | Threaded
Open this post in threaded view
|

Re: MiniLang : value in

Jacopo Cappellato
In reply to this post by Jacques Le Roux
Hi Jacques,

you should use <if-compare> instead.

Jacopo

Jacques Le Roux wrote:

> It's perhaps a stupid question (just a quick one, actually I did not
> look at simple-method.xsd)
>
> Why is there no value attribute in the if-compare-field element ?
>
> So we have to write something like
>
> <set field="Not" value="N"/>
> <if-compare-field field-name="res.res1" operator="equals"
> to-field-name="Not">
>
> Where we could have something intuitive like
>
> <if-compare-field field-name="res.res1" operator="equals"  value="N">
>
> Thanks
>
> Jacques


Reply | Threaded
Open this post in threaded view
|

Re: MiniLang : value in

Jacques Le Roux
Administrator
Thanks Chris and Jacopo ,

I guessed it was a stupid question :o)

Jacques

----- Message d'origine -----
De : "Jacopo Cappellato" <[hidden email]>
À : <[hidden email]>
Envoyé : mardi 5 juin 2007 18:21
Objet : Re: MiniLang : value in


> Hi Jacques,
>
> you should use <if-compare> instead.
>
> Jacopo
>
> Jacques Le Roux wrote:
> > It's perhaps a stupid question (just a quick one, actually I did not
> > look at simple-method.xsd)
> >
> > Why is there no value attribute in the if-compare-field element ?
> >
> > So we have to write something like
> >
> > <set field="Not" value="N"/>
> > <if-compare-field field-name="res.res1" operator="equals"
> > to-field-name="Not">
> >
> > Where we could have something intuitive like
> >
> > <if-compare-field field-name="res.res1" operator="equals"
value="N">
> >
> > Thanks
> >
> > Jacques
>