Jump to content
We've recently updated our Privacy Statement, available here ×

how to use installation parameter pattern Dynalically in Ireport


anupp1983

Recommended Posts

Hi,

    I am using jasper report4.0.1.My problem is how to use installation parameter pattern Dynalically  in Ireport.

Actually i dont want to use static pattern(#,##0.0000) in ireport4.0.1.Is it possible pattern dynamically in IReport.

can i use  Dynamically Pattern in Ireport4.0.1?

Can any one give suggestion ....


thanks in advance.
Anup



Post Edited by anupp1983 at 07/20/2011 12:17
Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I've done the following for numbers and dates:

 

($F{fieldName}==null?"N/A":new java.text.DecimalFormat("#,##0").format($F{fieldName}))

($F{startDtLocal}==null?"N/A": new java.text.SimpleDateFormat("MMMMM dd, yyyy").format($F{startDtLocal}))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...