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

0

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; }

find the image of jasperreport.

spraveenk90's picture
Joined: Nov 3 2016 - 2:36am
Last seen: 3 years 4 months ago

0 Answers:

No answers yet
Feedback
randomness