Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Spaces in "Select in Field" Action

Hi,

I'm trying to select some values of a ListBox using a Button and a "Select in Field" Action.

As described in the Reference Manual, you should be able to use the following syntax to select one ore several values:

value                    >one value

(value1|value2)      >both values

If one of my values contains a space, then a strange behaviour occurs.

dog 123                  >works

(cat|dog 123)          >only selects 'cat'

(cat|dog?123)         >selects cat AND dog 123 (of course no matter what sign is between dog and the number)

(cat|[dog 123])        >only selects 'cat'

None of my estimates to escape that space were successful.

Does anybody knows how I can select several values with spaces?

Kind regards

hundkatzemaus

1 Solution

Accepted Solutions
swuehl
MVP
MVP

try

(cat|"dog 123")

- works for me

View solution in original post

6 Replies
rajni_batra
Specialist
Specialist

i think u can use any no. of value (value1|value2|value3)

Not applicable
Author

Sure, the number of values is not the problem...

values containing spaces or other signs like '-' are not working 😞

Here I need a solution!

rajni_batra
Specialist
Specialist

in Backend use

Replace(Field,' ','*' ) Then use (Cat| Dog*123)

Hope this helps

sreenivas
Creator III
Creator III

Hi

Try this way in the search string specify as ("CAt 123"|Dog)

LOAD * INLINE [

    F1, f2

    Dog, one

    CAt 123,two

    Hi,three

];

swuehl
MVP
MVP

try

(cat|"dog 123")

- works for me

Not applicable
Author

I thought that I had tried that before without success... But it seems something went wrong with my test.

Perfect answer 🙂 This solves the problem 🙂