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

Field created through Dataset and Query dialog returns null as output.


spraveenk90

Recommended Posts

Please help me to figure the issue.

 

I clicked on Dataset and Query dialog icon and entered class name in javabean as com.pojos.jasper.ReportDataExport. I can see my method getFrameElement() getting populated. I cliked ADD SELECTED FIELDS and clicked OK. 

Then I pulled the field $F{frameElement} into the report. But it gives NULL instead returning datalist . Expected output is the list of data in datalist.

 

public List<String> getframeElement() { List<String> datalist = new ArrayList<>(); final int size1 = Export.getdetails().getdata().getdata().size(); for (int i = 0; i <= size1; i++) { final String data = Export.getdetails().getdata().getdata().get(i).getLongName();           datalist.add(data);        }       return datalist; }[/code]

find the image of  jasperreport.

jasper(1).jpg.b3e596d1e031e4f3714ad16a976a85c6.jpg

 

 

 

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

Posted Images

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