Solved

crystal reports text input from user

Posted on 2014-02-27
3
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 35

Accepted Solution

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

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


 James
0
 
LVL 35

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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