logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
helppls  
#1 Posted : Monday, April 11, 2022 7:50:05 AM(UTC)
helppls

Rank: Newbie

Groups: Registered
Joined: 3/24/2022(UTC)
Posts: 7
Pakistan

Thanks: 4 times
Hi,

I am new to Seal Report and have been trying to figure how the drag and drop functionality works in the data source creation tool. From what I have figured out, if I drag any number of elements from one table to Drop Row Elements it successfully generates a query on it own every time. However, anytime I try to get another table involved where a valid join relation ship is possible, it fails to dynamically build a query presenting this error:

Error building the SQL Statement...

Please fix these errors first.

Error when building the query:

Unable to link all elements using the joins defined...

Add Joins to your Data Source

OR remove elements or restrictions in your model

OR add relevant elements or restrictions in your model.

Is there no way to dynamically make JOIN connections like JasperReports does or is it something you just have to do manually?
epf  
#2 Posted : Monday, April 11, 2022 2:45:21 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
you have to create Joins between your tables in the Data Source, so the engine can build the SQL to perform the join.
helppls  
#3 Posted : Tuesday, April 12, 2022 5:58:00 AM(UTC)
helppls

Rank: Newbie

Groups: Registered
Joined: 3/24/2022(UTC)
Posts: 7
Pakistan

Thanks: 4 times
Thanks! I managed to successfully make a join using this. However, I have to specify the column names in the JOIN clause: employees.<ColumnName> = jobs.<ColumnName> otherwise it won't compile. Is there anyway for it to automatically pick two columns with a connection or does this have to be done manually? I am asking because the people using this might not be familiar with SQL.
epf  
#4 Posted : Tuesday, April 12, 2022 9:54:54 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
well, if you design a data source, you should be familiar with SQL and your model.
the wizard that imports tables may create joins if foreign key are defined, but it depends on the database type.
thanks 1 user thanked epf for this useful post.
helppls on 4/14/2022(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.