Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Crrystal_StaticParmList

Posted on 2011-02-18
10
Medium Priority
?
270 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 101

Assisted Solution

by:mlmcc
mlmcc earned 1000 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 35

Accepted Solution

by:
James0628 earned 1000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 101

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
 

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 101

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 101

Expert Comment

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

mlmcc
0
 
LVL 35

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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Suggested Courses

886 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