Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Multiple unlinked Datasources question Post Reply Post New Topic
Author Message
statey603
Groupie
Groupie
Avatar

Joined: 14 Aug 2013
Online Status: Offline
Posts: 78
Quote statey603 Replybullet Topic: Multiple unlinked Datasources question
    Posted: 20 Feb 2014 at 8:24am
We have some reports that contain multiple datasources that are not related.
 
One source is a Command [SELECT Statement].
The other source is a database field [DB Instance] selected by browsing the database table using the Database Expert. This field is a string containing the database instance [DEV, SIT, UAT, PROD]. It really has no association with the Command Select statement.
 
Originally, the 2nd source was added to the report as described above, but it appears that when the Command SELECT statement does not return records, the DB Instance field is blank.
 
To fix this, we created a local variable in the main report and joined it to a subreport where the DB Instance database table/field was selected using the Database Expert. This works correctly.
 
I am just hoping that some can explain why the original approach did not work.
Is there an implicit join between separate datasources?
 
 
-bill
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 21 Feb 2014 at 5:03am
I wouldn't have thought that there would be difference. I would guess that if there was a grouping that the command was part of, and the db was underneath that you wouldn't see the db part. If the db part was in a report footer or page footer, it should work regardless (I would think).

If CR sees the 'main' table as the command, perhaps it figures that if there are no commands, there must not be any details (even though the datasources are completely separate).

CR is a bit of a mystery, I am only guessing.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

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



This page was generated in 0.020 seconds.