Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Self Restricting Join Post Reply Post New Topic
Author Message
vijayk
Groupie
Groupie


Joined: 14 Mar 2007
Location: United States
Online Status: Offline
Posts: 53
Quote vijayk Replybullet Topic: Self Restricting Join
    Posted: 29 Jan 2008 at 6:56am
Can we do self restricting join on a table.? Like my table contains data for all countries but when I only want USA data. When ever i use anything from country table, It needs to restrict data for USA. Like in Business Objects, we can edit the join. Can we do it in Crystal.?
 
Thanks
Vijay
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 29 Jan 2008 at 8:10am
This won't be an edit on the join, it will be part of your record selection criteria for the report.
 
In a BO Universe, a self restricting join just adds a line to the Where clause in the SQL.  In Crystal you have to add it to the selection criteria to get the same result unless you're using the universe to provide data for your report.
 
-Dell
IP IP Logged
vijayk
Groupie
Groupie


Joined: 14 Mar 2007
Location: United States
Online Status: Offline
Posts: 53
Quote vijayk Replybullet Posted: 29 Jan 2008 at 1:02pm
Thanks..
IP IP Logged
vijayk
Groupie
Groupie


Joined: 14 Mar 2007
Location: United States
Online Status: Offline
Posts: 53
Quote vijayk Replybullet Posted: 01 Feb 2008 at 7:07am
Can we do this in Business Views..? How can i force a self restricting join whenever a user picks a column from that table in Business Views.?
 
Thanks
Vijay
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 01 Feb 2008 at 7:33am
The easiest way would be to have them use a universe as a data source.  Another option would be to create views in your database and have them use that.  Business Views might work, but I've not used them and I seem to recall hearing that they're going to be deprecated in favor of universes (I may be wrong about that, but I think I remember hearing something about it....)
 
-Dell


Edited by hilfy - 01 Feb 2008 at 7:33am
IP IP Logged
vijayk
Groupie
Groupie


Joined: 14 Mar 2007
Location: United States
Online Status: Offline
Posts: 53
Quote vijayk Replybullet Posted: 01 Feb 2008 at 7:46am
Thanks..! I was trying to mimic the functionality in designer with Business Views. I am looking how Bussiness views  design is different than universe design. Only advantage so far i have seen is we can change the data sources dynamically.
 
Vijay
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.016 seconds.