Focal Point
[RESOLVED] Info Assist- Enhancing the search on text box

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3097057476

February 17, 2015, 09:43 AM
krhapner
[RESOLVED] Info Assist- Enhancing the search on text box
I am working in Info Assist, and I created a text box and found that you have to type the exact word for the report to find what you are looking for. Is there a way to use wild cards directly on the text box? For example if I am looking for my first name, I would have to type exactly 'Krista.' Is there a way I would be able to type 'kr' and my name would be found?

This message has been edited. Last edited by: krhapner,


WebFOCUS 8
Windows, All Outputs
February 17, 2015, 10:00 AM
MartinY
Hi Krista,

It's all about how you code your WHERE clause.
Instead of having
WHERE FirstName EQ '&Parm';

Consider
WHERE FirstName CONTAINS '&Parm';

But CONTAINS search anywhere in the field the &Parm value, so think about performance.

You can also use LIKE with wild card instead of CONTAINS but you have to manage the wild cards where CONTAINS doesn't need any...


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
February 17, 2015, 12:50 PM
eric.woerle
Krista,

If you are concerned about the input case, there is no operator that will ignore it. But what you can do is create 2 define fields. One for the FirstName field that uppercases the field, and then another that uppercases the variable being passed in. You would then compare the two fields in your where statement with the contains operator as Martin pointed out.


Eric Woerle
8.1.05M Gen 913- Reporting Server Unix
8.1.05 Client Unix
Oracle 11.2.0.2
February 27, 2015, 08:12 PM
krhapner
[RESOLVED]