Re: can we display fields conditionally?

Zoltan Boszormenyi <[email protected]> Mon, 04 Sep 2006 14:55:22 +0200
Newsgroups gmane.text.rlib.user
Message-ID <[email protected]>
Hi,

it can be done in the <field> node.
The trick is that the fields are treated
as strings internally, so depending
on the condition, e.g. if another field is
above 0 or not, you can display
the value you want or an empty string.
Something like:

<Output>
   <Line>
       <field value="iif(val(myfield1)>0, myfield2, '')" width="15" 
align="right"/>
       ...
   </Line>
</Output>

Best regards,
Zoltán Böszörményi

Priya írta:
> I'm a new user of RLIB i have few doubts,
> 1) I would like to display a field when a condition is satiesfied is 
> that possible? I would like to know whether it is possible in the 
> <field> or <literal> ? 
>  
> 2) can an array be used in the environment variables?
>  
> With Thanks and Regards
> Priya Ranganathan
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rlib-users
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642