Jump to content
JasperReports Library 7.0 is now available ×

Query in variable executing twice


ktrinad

Recommended Posts

By: Shashank Uchil - shashank_uchil

Query in variable executing twice

2003-03-27 03:43

Hi,

I have made a scriptlet which runs a sql query and gets a result. This is how i use the method of the scriptlet

 

===========================================

((biz.evalue.gui.reports.RatioScript)$P{REPORT_SCRIPTLET}).getRatio($F{ratio_id}, $F{ratio_formula}, $F{minimum_value}, $F{maximum_value})

===========================================

 

Thjs works fine if i put the code into a textfield too. But if i put the same code into a variable. The query gets executed twice and i get a primary key error.

Anyone knows why it works fine in the TestField but not in a Variable ???

 

Thx

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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