Jump to content
JasperReports Library 7.0 is now available ×

Problems with javabean datasource


ktrinad

Recommended Posts

By: Fco Antonio - jofranco

Problems with javabean datasource

2003-09-26 14:27

 

I have a class with three javabeans in a class

 

public double getValor(){

double valor;

 

valor = 2.000;

return valor;

}

 

public String getCadena(){

String cadena = null;

 

cadena = "cadena";

 

return cadena;

}

 

public int getEntero(){

int numero;

 

numero = 3;

return numero;

}

 

public String getCadena2(){

String cad=null;

 

cad = "wwww";

return cad;

}

 

 

In the field class name put the class

 

balance

 

Read javabeans attributes

 

only appear the javabeans of type strings

 

Cadena and Cadena2

 

How solve this problem?

 

 

Now add fields Cadena and Cadena2 to report

and create the report

 

but only appear null in the two fields the report

 

How solve this problem?

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