imrank1 Posted August 30, 2010 Share Posted August 30, 2010 I'm returning an object that implements JRDataSource back to my report file. This object contains a collection of objects in the following manner :ServerDatasource implements JRDataSource {List<Server> serversServer server;next ( ) {//returns the next Server in the list of Servers} getFieldValue(JRField field){//returns the server objectif ( "server".equals(field.getName()){return server;}} }Server { List<Data> dataList; List<ServerChild> children } ServerChildren {List<Data> dataList; }Data {//some data points What I want to do is when I have a Server object I want to iterate through his Data objects and show the fields in each of them. Then I want to iterate over that Server objects ServerChildren and iterate over their Data objects and show their values as well. However I am not seeing a way to do a "for each Data " or "for each ServerChild" in the jrxml via the $F syntax. Is this possible or do I need to use subreports?Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now