Jump to content
Changes to the Jaspersoft community edition download ×

JS 2.01 and Input Controls


Henry

Recommended Posts

Hello,

 

from JS 1.2.1 to JS 2.0 the behavior of input controls are changed and it looks like that from 2.0 to 2.0.1 also.

 

After migration to 2.0.1 the reports starts immediately with an fault messages without to aks for the input control values.

 

In my reports i create the database connection with the input control values (java.sql.DriverManager.getConnection($P{MyDatabaseUrl},$P{MyDatabaseUser},$P{MyDatabasePassword}).

 

After click on the report unit i got the attached fault messages.

 

In the report file are no default values defined an in JS all imput controls as mandatory definded like i chanded it when in migrated from 1.2.1 to 2.0.(http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=10&id=28566#28566)

 

Henry [file name=fault_messages.txt size=47704]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/fault_messages.txt[/file]

Post edited by: Henry, at: 2007/08/27 14:52

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hello,

 

i think i found the reason for my problem.

 

I defined the database connection with input parameters with java.sql.DriverManager.getConnection($P{MyDatabaseUrl},$P{MyDatabaseUser},$P{MyDatabasePassword}).

 

The parameters for getConnection are set by Input Controls and not defined with default values. It looks like JS evaluate the jrxml file to determine the default values for the input controls dialog box. At this moment the parameters for getConnection are not defined and it got a failure.

 

Now i defined default values for this parameters and now i can start the report unit. The dialog box for the input controls popped up and show my the Input Controls with the default values.

 

Henry [file name=dbconnection.txt size=1224]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/dbconnection.txt[/file]

Post edited by: Henry, at: 2007/08/28 09:53

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