karurkarthi / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

list fields inside table from different models in two table #263

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I want to produce report which has two tables and data in both table coming 
from differnt models.If I have list fields inside one table it is working 
perfectly but for multiple table it is showing data for one table and for other 
table it simply shows variable name.

I am attaching my word document and java code here.

Thanks,
Priyanka

Original issue reported on code.google.com by davepriy...@gmail.com on 22 May 2013 at 12:10

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Priyanka,

If I understand your problem, your first table is well generated and not the 
second?
If you remove the first table, is the second table is well generated?

It's difficult for me to help you because I have not your model and not your 
data. Please attach your Java Main + POJO which causes the problem.

Regards Angelo

Original comment by angelo.z...@gmail.com on 22 May 2013 at 12:55

GoogleCodeExporter commented 9 years ago
Hello Angelo,

Yes what you understand is right.The problem occurs when we have list in
tables which comes from different model then only one table comes properly.

It is difficult for me to attach all code because it has dependencies on
other classes too.

I am attaching both pojo classes and java main code.

Original comment by davepriy...@gmail.com on 23 May 2013 at 10:35

GoogleCodeExporter commented 9 years ago
Ok,

I'm waiting for your project.

Have you tried removing the first table? In this case is the second table is 
well generated? If no I think it's a problem with your fields name.

Original comment by angelo.z...@gmail.com on 23 May 2013 at 11:11

GoogleCodeExporter commented 9 years ago
Hello Angelo,

Yes If I have single table with list fields then it works fine.But If it
has two table both have list fields coming from different models then its
not working.

Original comment by davepriy...@gmail.com on 23 May 2013 at 11:19

GoogleCodeExporter commented 9 years ago
wow, that's very strange? I'm waiting for your project. Please clean  up it in 
order to it's simply for me to start your main to avoid I must understand and 
adjust your code.

Thank's

Original comment by angelo.z...@gmail.com on 23 May 2013 at 11:26

GoogleCodeExporter commented 9 years ago
Hello Angelo,

My Application is too big and I cant send everything over here.Is it
possible for you to test for two table having list fields coming from two
different models?

Original comment by davepriy...@gmail.com on 23 May 2013 at 11:54

GoogleCodeExporter commented 9 years ago
No I cannot. We have several samples which works with several tables (but with 
same model). But I don't think your problem comes from 2 models.

Perhaps your model is complex? I have no time to create samples and guess your 
model. So I suggest you to create a basic Pojo and basic Java main (hard code 
your data) which causes the problem. Without that I cannot help you more.

Original comment by angelo.z...@gmail.com on 23 May 2013 at 12:07

GoogleCodeExporter commented 9 years ago
OK I will send you samll application by tomorrow.

Original comment by davepriy...@gmail.com on 23 May 2013 at 12:10

GoogleCodeExporter commented 9 years ago
We are waiting your small application. It's perhaps a bug with Fieldsmetadata 
load.

Have you tried to comment the first load of metadata : 

//fieldsMetadata.load("clientInStateAddress", ClientAddressMasterDTO.class, 
true);

Original comment by angelo.z...@gmail.com on 28 May 2013 at 7:17

GoogleCodeExporter commented 9 years ago
Yes If I comment it it  works..

I feel there is some problem in model so I am trying to fix it.

Thanks for your time and developing such a great Report tool.

Original comment by davepriy...@gmail.com on 28 May 2013 at 7:40

GoogleCodeExporter commented 9 years ago
Ok thank's for your test. So it's a bug with XDocReport FieldsMetadata.load.
It should be very cool if you add your java code in this issue in order to fix 
it.

We need not your docx, just your POJO (which compiles). And the test will be 
simple.
Call the two fieldsMetadata.load and after fieldsMetadata.save and check 
clientInStateAddress* fields are available in the XML stream of fields metadata.

Original comment by angelo.z...@gmail.com on 28 May 2013 at 7:45

GoogleCodeExporter commented 9 years ago
I feel like there is some problem with my model structure which is causing
error.

No problem with xdocReport.

I need to test everything again.

Original comment by davepriy...@gmail.com on 28 May 2013 at 8:30

GoogleCodeExporter commented 9 years ago

Original comment by angelo.z...@gmail.com on 18 Feb 2014 at 2:29