Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: LOV Post Reply Post New Topic
Author Message
dmswain
Newbie
Newbie


Joined: 09 Feb 2010
Location: United States
Online Status: Offline
Posts: 3
Quote dmswain Replybullet Topic: LOV
    Posted: 10 Feb 2010 at 12:17pm
New to this forum and Crystal Reports... I am hoping for some basic guidance to help me understand list of values(LOV).

thanks..
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 10 Feb 2010 at 1:04pm

Here is some info..

LOV get populated from a single field from your data source (grouped to avoid duplicate entries). You can add it by creating a Parameter and setting it to be Dynamic then assigning the field from your data source.
 
You can make cascading LOVs in a similar way.
Depending on your version and total data rows from your source you may need to alter your registry to allow all values to appear. There are a few posts with direction on that.
Does that help? Do you have more specific questions?
 
IP IP Logged
dmswain
Newbie
Newbie


Joined: 09 Feb 2010
Location: United States
Online Status: Offline
Posts: 3
Quote dmswain Replybullet Posted: 10 Feb 2010 at 1:14pm
It does help, but I am so new at this still trying to find that first step.
thanks for the response..
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 10 Feb 2010 at 1:23pm
A add a data source for your report (e.g. a table).
Go into the Report design and Right click on the Parameters and select New.
Name it LOV_test (or whatever)
Set the type to match the database field you want to use for the list (e.g for a name field use 'string')
for List of Values click on Dynamic
Your screen will cahnge
Under the INsert folder on the new screen click in the Value column
It should become a pick list of all your data fields from your source table
Pick the one you want to be your list.
Hit OK
 
Drop the Paramter field onto your report and now you have LOV that is asked for at Run time.
If youwant it to act as a filter you add that into your Crystal Select Statement.
Click on the Slect Expert
Hit New
Pick the same field you used to populate your LOV parameter.
Change it to "is equal to"
Now in the next field click  on the select arrow and wait for it to populate.
The first option should be the {?LOV_test}.
Pick it
Hit OK.
Now your data is filtered by whatever you select from that LOV at report runtime.
Does that clear it up?
 


Edited by DBlank - 10 Feb 2010 at 1:25pm
IP IP Logged
dmswain
Newbie
Newbie


Joined: 09 Feb 2010
Location: United States
Online Status: Offline
Posts: 3
Quote dmswain Replybullet Posted: 10 Feb 2010 at 2:10pm
very helpful... of course this will trigger more questions.
 I appreciate your willingness to share knowledge. thank you.
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.