Define DataRelation

Stimulsoft Reports.JAVA discussion
Post Reply
aescot
Posts: 16
Joined: Fri May 23, 2014 3:25 pm

Define DataRelation

Post by aescot »

Good afternoon,

I am evaluating your software for maybe use it.

I have somes questions concerning data relations :

What is the best way to define data table relations ?

I try to declare relation like this :

Code: Select all

            ArrayList<String> parentColumn = new ArrayList<String>();
            parentColumn.add("IdSup");
            ArrayList<String> childColumn = new ArrayList<String>();
            childColumn.add("IdSup");
            StiDataRelation relation = new StiDataRelation("Support", "Support", "Support", tableSource2, tableSource1, childColumn, parentColumn);
But it is not easy to use with an Object Relational Mapping like Hibernate. Is there a btter way ?


Moreover, is the data file have to specify relation ?

Thanks for your helps and support.

Regards
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Define DataRelation

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
aescot
Posts: 16
Joined: Fri May 23, 2014 3:25 pm

Re: Define DataRelation

Post by aescot »

Hello,

My question is very similar to this recent post http://forum.stimulsoft.com/viewtopic.php?f=19&t=38402 because I want to map your software to my entities bean which are used by hibernate.

In your demo application, you define your objects and relations using a xsd file. When I see a relation beetween two entities, it is not specify if it is a One to many or a many to one relation. Is it normal ?

And then, how can I construct a XML data file according to this relation ?
For exemple, If I have an object which contains another object (his relation for the report), how I have to send the data ?
Is it not possible to directly give the full object and bypassing the XML data file ?

Thanks for your help.

Regards,

Alex
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Define DataRelation

Post by Alex K. »

Hello,

We will try to prepare the sample with using relations.

Our products support standard XML data, you can create them any available methods.

Thank you.
aescot
Posts: 16
Joined: Fri May 23, 2014 3:25 pm

Re: Define DataRelation

Post by aescot »

Thanks for your answer Aleksey, I am waiting to your sample.

Yes, I have seen that it is possible to give data using a XML file as in your demo application but it seems complicated to write it if there are many relations between objects.

It is that why I am fully interested if there is another way to send data like RegBusinessObject class in .NET which permit to give to your software the complete object.
Or maybe another way ?

Thanks for your help.

Alex
Vadim
Posts: 363
Joined: Tue Apr 23, 2013 11:23 am

Re: Define DataRelation

Post by Vadim »

Hello.

Here is the sample of creating report with relation.

aescot wrote:Thanks for your answer Aleksey, I am waiting to your sample.

Yes, I have seen that it is possible to give data using a XML file as in your demo application but it seems complicated to write it if there are many relations between objects.

It is that why I am fully interested if there is another way to send data like RegBusinessObject class in .NET which permit to give to your software the complete object.
Or maybe another way ?

Thanks for your help.

Alex
Attachments
CreateRelationsReport.txt
(9.07 KiB) Downloaded 245 times
aescot
Posts: 16
Joined: Fri May 23, 2014 3:25 pm

Re: Define DataRelation

Post by aescot »

I will analyze your example. Thanks.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Define DataRelation

Post by Andrew »

Hello,

Please let us know about the result.

Thank you.
Post Reply