Jump to content

QueryExecuterFactory


sravyts

Recommended Posts

We have a setup where designs are created on the client, and rendering is done on the server.

In the designs we add a custom queryString, and on the server I register the queryExecuterFactory for that language in the properties.

But when I try to add this string on the client (where this class is not accessible) by calling jasperDesign.setQuery(xxx), I get a JRException saying that the property needs to be filled in.And when I add this property with the serverclass filled in, ofcourse I get an exception saying the class cannot be found.

Is there a way of adding this string to the design on the client without having this exception? It is only at filling-time that this is really used, so why is this validation done at the moment the queryString is added?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

sravyts wrote:

Is there a way of adding this string to the design on the client without having this exception?

 

No.

 

It is only at filling-time that this is really used, so why is this validation done at the moment the queryString is added?

 

The query executer factory is used at report design/compilation time as well. The factory provides a list of built-in report parameters, which need to be registered into the report template.

 

Regards,

Lucian

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