Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: List of values Post Reply Post New Topic
Author Message
andrewsimon
Newbie
Newbie
Avatar

Joined: 28 Jun 2011
Online Status: Offline
Posts: 26
Quote andrewsimon Replybullet Topic: List of values
    Posted: 28 Jul 2011 at 2:01am
I have a table with following
details
DEPID(Number)    DEPTNAME(VARCHAR)
 
0                         
1                              HR&Admin
2                              Finance
3                              IT
4                              Accounts
 
For generating an employee t  report,when i create a parameter for Department Name,the LOV is dispalying only HR&Admin,Finance,IT,Accounts.But there are some employees under the DEPTID=0.I tried convert DBNULL to Default.But i can't find any difference.
How can i  populate the department with ID=0 in LOV.
 
Thanks & Regards
bbbbb
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Jul 2011 at 4:27am
you can use a union command to add that string to the lov and then alter your select statment to
({?param}='ID=0" and table.depid=0)
or
({?param} = table.depid)
IP IP Logged
andrewsimon
Newbie
Newbie
Avatar

Joined: 28 Jun 2011
Online Status: Offline
Posts: 26
Quote andrewsimon Replybullet Posted: 02 Aug 2011 at 9:22pm
Thank you. I am using DEPTNAME AS List OF Values.
i did add the string to lov using the command. but the record slection formula is not working for me bcz i'm using deptname as parameter.
bbbbb
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 04 Aug 2011 at 4:23am
what exact value did you add to the LOV with the command?
and
what value from your DB needs to be returned what that LOV value is selected?


Edited by DBlank - 04 Aug 2011 at 4:34am
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.