Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Dynamic Parameters- restrict selections Post Reply Post New Topic
Author Message
SDB2
Newbie
Newbie
Avatar

Joined: 08 Apr 2009
Online Status: Offline
Posts: 17
Quote SDB2 Replybullet Topic: Dynamic Parameters- restrict selections
    Posted: 23 Apr 2009 at 11:01am

I have a table that acts as a security filter so that one user can't access another's data with thier automatic logged in credentials. I'm using a dynamic parameter to shorten the list of choices for each user group and they have to select their user group in order to display the correct choices.

I'm wondering if anyone has played around with a SQL query that would return only the user groups the user has access to.
 
Example: frank is in user group A which can choose X,Y, or Z
Bob is in user group B which can choose N,M, or L
 
How do I set the parameter so they are not required to select a or b?
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 23 Apr 2009 at 1:42pm
if you called the report from an application, it would be possible to create something, but if you are calling Crystal by itself, I believe that the answer is NO.  Crystal doesn't know who is logged in, so can't use that information to limit the parameters.
 
Maybe someone else knows, but I have never seen a postive outcome to this question.
IP IP Logged
SDB2
Newbie
Newbie
Avatar

Joined: 08 Apr 2009
Online Status: Offline
Posts: 17
Quote SDB2 Replybullet Posted: 23 Apr 2009 at 2:06pm
What about making it conditional on another parameter? I have a param that is completed automatically by the software ?LOGGED_IN_USER how could I name the first parameter in the dynamic parameter that name?
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.031 seconds.