Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ireport question- if then else based on datatype

Status
Not open for further replies.

jj1576

MIS
May 21, 2008
69
US



Hi,

My company has recently switched from Crystal Reports to Jasper IReports. I'm findng it hard to find a lot of documentation and training manuals for IReports so far. I'm trying to write an if-then-else statement for a field in Ireport that tests for data type.

Here is what I am trying to do:

if text(test."testname") then testresult."resulttext" else
if isdate(test."testname) then testresult."resultdate" else
if isnumeric(test."testname") then testresult. "resultnumber".

I'm not sure if there is an IReport equivalent? Hope this makes sense. Thanks in advance.

If I'm in the wrong section for this question, I apologize- I'm happy to re-post in the correct one, just couldn't fins one for Jasper reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top