Solved

crystal reports text input from user

Posted on 2014-02-27
3
275 Views
Last Modified: 2014-02-28
Can I setup a way for the user to type in text and it looks at a field, if their text is found then it outputs any instance of that text.

For instance:  They type in tops and it looks at porOrder.stockcode and returns

Stops
55 tops
tops 34
0
Comment
Question by:TomBalla
  • 2
3 Comments
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 250 total points
ID: 39893041
Yes.  You can setup a report filter based on a parameter.

Create a parameter
  Name - StockCode
   Data type - string
   Static

In the record selection
  Click REPORT --> SELECTION FORMULAS --> RECORDS
"*" & {?StockCode} & "*" LIKE {porOrder.stockcode}

mlmcc
0
 
LVL 34

Accepted Solution

by:
James0628 earned 250 total points
ID: 39894468
I think you got the test backwards.

{porOrder.stockcode} LIKE "*" & {?StockCode} & "*"


 James
0
 
LVL 34

Expert Comment

by:James0628
ID: 39895099
FWIW, if your db is case sensitive and you need the test to ignore the case, like you want "tops" to match things like "STOPS" and "55 Tops", you could change the test to something like:

UpperCase ({porOrder.stockcode}) LIKE "*" & UpperCase ({?StockCode}) & "*"


 James
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 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