In this app, interface tools are used to dynamically construct a sql query (via a series of partial string replacements), and if the end user falis to make a selection from any of the listboxes, portions of generated query will effectively be selecting values in an empty set, (e.g. field_value IN (' '). How can we get the error message tool to recognize that a certain string replacement value is not acceptable and so display the specified error message?
Solved! Go to Solution.
Yes, thank you. It seems the problem is getting any expression box to recognize an expression containing quotes. The error condition should be triggered when the partial string replacement value is: "education" IN ( ' '). Seems the double quotes might be the problem - yes?
I'll see if I can post the workflow, or at least this portion of the workflow. Check in tomorrow...
Here's what I was thinking, you are right the double quotes do cause a problem (the default from the list box when generating a list is just to leave them) so I had to use an error condition of
[#1] = '""'
i.e. single quotes wrapped around two double quotes.
Here's a quick picture of a test module.
The condition is optional but tidies up the module.
Is there a way of doing something similar to above but the file location selected in the listbox points to a folder that for some reason is empty? I want to have a pop up in the app that says "the app data file doesn't exist please rerun with another selection." Is it possible?
Thanks,
Brad
@brad_j_crep - try using Error Message tool from interface with RegEx function to alert use when entering blank.