blackflame Posted November 17, 2010 Share Posted November 17, 2010 Hi there,Using IReport 3.7.5, I'm trying to create a table component with another table component inside one of its rows. Theorically, it should be possible, but I'm facing some problems at the time of developing the idea. The source of my problems is I need a different datasource. Let me explain:In the past, I had a java bean with the following information:- String city_name- String city_population- List stores (containing): - String store_name - String store_adressI had a report which content was the city info and after that, a table with two columns. First column was the store name, and the second column, the store adress. For this, I used a java bean datasource (important thing) and everything was fine. It worked properly. Now I have the following information- String city_name- String city_population- List stores (containing) - String store_name - String store_adress - AND now also List products (with String product_name and String product_price) And for this, I've been asked to include a third column to show the different product features for each store. So I thought about using a nested table.The problem is related to the datasource. For the first (master) table I used a JRBeanDatasource with the store list object....and it worked. Now, when I deal with the second (slave) table, I suppose I should use another JRBeanDatasource with the product list object......but Ireport never find that object or at least is not available. It appears in red, never in green.How can I do it? 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