Jump to content
Changes to the Jaspersoft community edition download ×

Scriptlets in 0.3.0


2004 IR Help

Recommended Posts

By: Dave Martland - davemartland

Scriptlets in 0.3.0

2004-05-14 01:10

Hi

 

I have installed v 0.3.0 it is is looking very good. However I seem to be missing something when trying to use the new scriptlet editor. When use intenal sciptlets property is set I get a null pointer error when trying to save a file or compile. There is probbably something in the configuration settings that I have missed. Has anyone elsegot this to work as it would seem to be a most useful feature.

 

Regards (and thanks) Dave

 

 

 

 

By: Giulio Toffoli - gt78

RE: Scriptlets in 0.3.0

2004-05-14 15:00

 

The scriptlet support is still experimental.

Please check that a file called scriptlet_template.jav is in classpath.

 

Giulio

 

 

 

 

By: Dave Martland - davemartland

RE: Scriptlets in 0.3.0

2004-05-17 04:53

Thanks for the help,

 

The file is in the source release but I could not find it in the binary zip. The code is saving ok now, however just another small question. Do I need to compile the scriptlet file ouside ireport as I can not find a class file for it?

 

Many regards Dave

 

 

 

 

By: Giulio Toffoli - gt78

RE: Scriptlets in 0.3.0

2004-05-17 11:53

 

iReport should compile it for you, but there is a problem: iReport has not yet a custom class loader and when a report is executed, the scriplet class loaded this time will never reloaded, even if modified... until iReport is restarted :-)

 

Giulio

 

 

 

 

By: Pablo del Vecchio - pablodv

RE: Scriptlets in 0.3.0

2004-05-19 01:08

We need Scriptlets to handle DataSources, ex. filtering the result, for example by ColumnNameX.

 

We have downloaded the file called scriptlet_template.jav

and is in iReport classpath. It is a source code file, so

compiled it.

 

When we use the scriptlet editor, it creates a scriptlet file?

Ex: report_AScriptlet.***. Which would be the extension for the

scriptlet .java, .jav, .wsc?

It has to be compiled also? It should we saved in the save dir

that the .xml and .jasper reports?

 

TIA. Greetings,

 

 

 

Pablo del Vecchio

 

 

 

 

By: Giulio Toffoli - gt78

RE: Scriptlets in 0.3.0

2004-05-20 09:39

 

the .jav is not a .java, but is a source used as template to create a new scriptlet named as the report (i.e. customers.jasper -> customerScriptlet.java).

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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