Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Second parameter based on first Post Reply Post New Topic
Author Message
ani_abr
Newbie
Newbie


Joined: 15 Jul 2013
Online Status: Offline
Posts: 2
Quote ani_abr Replybullet Topic: Second parameter based on first
    Posted: 16 Jul 2013 at 5:08pm
I am having 2 parameters, first one is Employee group and second one is employee. If I select the employee group value I want the second parameter drop down to have Employees within the selected employee group. I set up the first parameter as EGroup@select GroupID from EmpGroup which works fine. Second parameter as Emp@Select EmployeeName from emp where GroupID = {?EGroup},   this is not working and the drop down does not populate any values. I am writing this report for SAP Business One application. Any guidance will be helpful.
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 18 Jul 2013 at 1:30am
Hi

I believe you are generating a crystal reports based on SAP Business One.

Insted of writing two SQL statements write only one statement like..

Select GroupID, eMPLOIYEENAME FORM EMP E, empgroup g WHERE E.CODE=G.CODE

Now if you insert a dynamic cascading prompts on above statement, it returns 2nd parameter values based on first one.
Thanks,
Sastry
IP IP Logged
ani_abr
Newbie
Newbie


Joined: 15 Jul 2013
Online Status: Offline
Posts: 2
Quote ani_abr Replybullet Posted: 19 Jul 2013 at 4:40am
Thank you Sastry. I don't know how to create dynamic cascading prompts etc. (new to the process). Would you be able to send me instructions on that? What I am doing is, I have a table valued function accepting 2 parameters. I created a Command in crystal reports and want to create 2 parameters and the second parameter should be based on the first parameter (my first post). I am developing these reports in Crystal reports 2008.
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.