I've a form thats tokenizing about 13 different fields, and the values are a mixmatch of single and multiple word entries. In text, I can simply add a suffix of * and the person can type some of the value and find what they want, but in a dropdown (desired), this will only work if the value contains no spaces at all. I've tried seeding with "*" as typed, but that didn't seem to make a difference. How can I successfully pass a multi-word value into a token from a dropdown and have it filter a table in a form bases dashboard
When passing the value from the dropdown to the search, use the "s" filter to escape the dropdown value for search. This will allow you to search for phrases containing multiple words.
So if DropdownView.value is mvc.tokenSafe("$words$"), set SearchManager.search to something like mvc.tokenSafe("search $words|s$").
this worked for me! Thank you
It worked for me. Thanks.
Not quite. The |s suffix is a filter that is applied to the output. So if the token was being used in a search string (like
So would the right approach then to be to put token="MyToken|s" in the input type to keep everything in simple xml, or don't define token= and explicitly define mvc.tokenSafe("MyToken|s")
mvc.tokenSafe() is applied automatically to most settings in Simple XML. For example binds the created DropdownView.value to mvc.tokenSafe("$MyToken$").
And the contents of
None of this is Advanced XML. The explicit use of mvc.tokenSafe() comes into play when using either HTML dashboards or custom JS code.
So in my case I am using a simple XML form.
I'm taking something like
Then feeding that into a table with a token from above. Where does mvc.tokenSafe fit and does that make it advanced XML?