Jump to content
We've recently updated our Privacy Statement, available here ×

how can i call java bean through iReport


2004 IR Help

Recommended Posts

By: nasir - nasiraliadil

how can i call java bean through iReport

2004-03-22 02:47

hi,

i need to call java bean through iReport.

i.e menu->DataSource->Report Query->javaBean Datasource.

if i am trying this it gives error:

 

class npt not found!

check your classpath and retry.

 

i had already checked my class path.

can anyone help me out.

 

and one more thing i want to know is that could stored procedure could be called using iReport or not.

thanks you

 

 

 

 

 

By: andreas zeiner - andreaszeiner

RE: how can i call java bean through iReport

2004-03-22 03:23

hi

 

ad 1)

i've tried this out and got no error - maybe you should create a new folder, copy the class file to this folder and add the path of this folder to the class path - just to be sure

 

ad 2)

yes it is possible - if you want to call a function tell me if you managed to retrieve more than one row.

 

greetinx

 

andy

 

 

 

 

By: nasir - nasiraliadil

RE: how can i call java bean through iReport

2004-03-22 21:09

hi andreas zeiner ,

1) i had tried it out what you suggested,but i am getting the same problem.

can you give me a simple example.

 

2) yes i need to call pl/sql procedure which would return more than one rows.

 

thank you in advance

 

 

 

 

 

By: Alex Kotchnev - polrtex

RE: how can i call java bean through iReport

2004-03-22 22:36

Nasiraliadil,

1) does the report have to display a collection of java beans, or do you need to instantiate the bean to call on some of its methods ?

Please provide your : a) path where iReport is installed b) content of your classpath c) Location of and the name of the bean that you need to call

 

 

 

 

 

By: andreas zeiner - andreaszeiner

RE: how can i call java bean through iReport

2004-03-23 01:59

hi

 

well concerning stored procedures you might run into troubles but i've tried out the following:

 

call a procedure/function which is returing a set of records based on a view parameters.

 

the problem in fact was that i got only the last returned record although all records where processed by the stored procedure.

 

i haven't managed to solve this problem until now! maybe someone could tell you more in this case ...

 

concerning the first issue:

 

i agree with polrtex - more infos would be great to solve your problem.

be sure you call the bean with the contained package

 

greetinx

 

andy

 

 

 

 

By: Nishant Miglani - nishantm

RE: how can i call java bean through iReport

2004-03-23 08:52

Hello All,

 

I'm having the exact same problem the gentleman with the original post was/is having.

 

I need some clarification on this classpath variable.

 

When I write code in an IDE, I import a bean with a particular path (such as "com.packa.packb.MyBean"), and it works.

 

Now is this the same path I put into the IReport Report Query window? I tried this and it doesn't work. It gives a 'Check your classpath!' error.

 

Please help!

 

Thanks

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