Solved

Crrystal_StaticParmList

Posted on 2011-02-18
10
216 Views
Last Modified: 2012-05-11
To fill out a static crystal parameter with data, I noticed I can use a column from the existing table in the query.

Can this this be filtered or sorted in any way?

I used to import from text files before with all kinds of issues. The stock_no,description have to be separated by certain number of spaces for it to work.

If I can use a SQL or table it would be much easier.


0
Comment
Question by:sam15
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 250 total points
ID: 34931422
WHen you setup the parameter you simply select the field then APPEND all the values to the list.  It has been my experience that the values are sorted.

You can also include a description field with the list.

If your report has a filter then the list will be filtered when imported but if you are filtering with othe rparameters all values will appear since those filters haven't been applied yet.

mlmcc
0
 
LVL 34

Accepted Solution

by:
James0628 earned 250 total points
ID: 34932427
When importing parameter values from a text file, I use a tab to separate the value and the description.  I created a simple report that reads a table to get the list of values and descriptions.  It uses a formula to combine the parameter value, a tab (ChrW (9)) and the description into a single string.  I'd export that to a text file, which could be imported into the parameter values.

 As for sorting the parameter values, there are sort (Order) options for each parameter in the "Default Values" window.

 James
0
 

Expert Comment

by:Mr_Yeyo
ID: 34948478
there are several different ways you can use the parameter in  Crystal, that will depend on the version of crystal and the solution, for example you can use a dynamic parameter this mean that you can have a drop box or list with unique value of a field, also there are cascade parameters this values will dynamically filter depending the value of previous parameter like county, state and city. all this have the ability to select certain parameters value on return of a query, all of this can be use if you are using the Crystal report server, you can scheduled the parameter to fulfill in case the parameter list is really long, this will increment the performance when a user is trying to run a report.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34948640
Mr_Yeyo -  Please read the question again.  It asks about sortiing and filtering the parameter list.  There is nothing in the question about how to use a parameter in Crystal.  Please keep your comments on target.

mlmcc
0
 

Expert Comment

by:Mr_Yeyo
ID: 34948660
didnt see that sorry, still there there are several ways to filter and again I presume that you use a dinamic parameter if that will be the result of a query that can be filter and sorted, for the simplest way to sorted you should have the ascending or descending option, what version are you using?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:sam15
ID: 34955780
I used the import from file option with TAB CHR(9) in between stock number and description.

It works except i see squares at the end of description in the list. Does this mean anything (like more text) or is there a way to get rid if it n the SQL query.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34956683
That probably indicates there are extra non-printing characters being added to each line in the file

mlmcc
0
 

Author Comment

by:sam15
ID: 34956719
you mean like hard return that i need to replace with blank.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34956828
Not sure.  Can you change the application that creates the file?

mlmcc
0
 
LVL 34

Expert Comment

by:James0628
ID: 34959331
It sounds like an extra carriage return (or possibly line feed).  They are sometimes shown as a square.  How are you creating the file?  If you open the file with Notepad, does it look OK?  Are the lines double-spaced?  Even if it looks OK in Notepad, that doesn't necessarily mean that there aren't extra characters there.  Notepad might just not be showing them to you.  But it's easy to try (unless the file is very large), and it's a place to start.

 James
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now