Jump to content
JasperReports Library 7.0 is now available ×

Scriptlet class


2004 IR Help

Recommended Posts

By: Ashok - k_s_ashok

Scriptlet class

2004-11-19 04:49

How can i mention Scriptlet class in View -> Report properties -> Scriptlet ?

( I tried thru many ways D:jasperScriptlet.class (or) "D:\jasper\Scriptlet.class "(or) "D:jasperScriptlet.class" etc...) Which is the right way?

 

 

 

 

By: Giulio Toffoli - gt78

RE: Scriptlet class

2004-11-19 06:55

 

First of all you have a class to mention, then you simply write:

 

MyScriptlet.class

 

Giulio

 

 

 

 

By: Ashok - k_s_ashok

RE: Scriptlet class

2004-11-19 22:03

Hi Giulio,

How can i mention the class ?

 

 

 

 

By: Ashok - k_s_ashok

RE: Scriptlet class

2004-11-26 06:28

Any update ?

 

 

 

 

By: eder_pitt - eder-pitt

RE: Scriptlet class

2004-12-14 12:39

Hi Ashok,

let us assume that its class is the following one:

 

package astrid.orange.jug;

import dori.jasper.engine.*;

 

public class Eder extends JRDefaultScriptlet

{

 

 

public Integer getSumNumber(Integer i, Integer u){

 

Integer num;

num = new Integer(i.intValue() + u.intValue());

return num;

}

 

}

 

 

in View -> Report properties -> Scriptlet it must make: astrid.orange.jug.Eder

 

in the field, you must make: ((astrid.orange.jug.Eder) $P{REPORT_SCRIPTLET} ).getSumNumber($F{FIELD_1},$F{FIELD_2}) .

 

 

I wait to have helped ;-)

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