You are viewing limited content. For full access, please sign in.

Question

Question

problem with tokens with regular expressions in the search activity

asked on May 1, 2015 Show version history

Hi all,

I think I've found a bug with WF 9.2.0.167.

A search activity with the following criteria gives me 0 results:

{[PackA]:[Transaction Number]="%(GetInitialValues_Transaction Number & Name#<\d+>#)"} | {[PackB]:[Transaction Number]="%(GetInitialValues_Transaction Number & Name#<\d+>#)"}

but if I use a Token Creator to create a new token first...

to build the search value then use the criteria:

{[PackA]:[Transaction Number]="%(SearchCriteria)"} | {[PackB]:[Transaction Number]="%(SearchCriteria)"}

...the search runs fine. Has anyone else seen this? Can LF test and confirm if this is a bug please?

The search runs fine in both cases when designing the workflow. It only fails when run.

Regards,

Ben

0 0

Answer

SELECTED ANSWER
replied on May 1, 2015

Ben, it seems to work for us. What is the value you're trying? What if you add the "Escape Search Phrase" function to your token?

0 0

Replies

replied on May 1, 2015

Hi Miruna,

The value was:

12345678 - blah blah

It's nearly midnight so I'll check your suggestion tomorrow,

-Ben

0 0
replied on May 13, 2015

Hi Miruna,

Seems to be working now with and without "escape search phrase." Perhaps after typing and retying, I had a typo.

-Ben

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.