I'm using Page Properties and Page Property Report macros to make customer reports of pages using specific Page Properties. In one of my reports I'd like to include only Page Properties that contain a column called Status that contains a Status Macro with the value of "High". I'm using the Table Transformer macro to provide SQL filter. I tried the following, but didn't work: "SELECT * FROM T* WHERE 'Status' ~ "High".
I'm aware of the ability to filter based on an ID provided in Page Properties macros, but I'm looking for a finer degree of filtering beyond the simple example given above, such as with multiple columns (eg, Status combined with Importance)
Hi @Ted Nienstedt ,
Please try the following SQL statement:
SELECT * FROM T* WHERE 'Status' LIKE "High"
It should be working fine.
I found that ::string was necessary as follows
SELECT * FROM T* WHERE 'Status'::string LIKE "High"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, the ::string part is not necessary for the WHERE clause.
If the issue is that you don't get any errors but you just don't get any matching rows, it means that there are no such rows indeed.
You've mentioned that you used the "Status Macro with the value of "High" - try to filter your table by "HIGH" and not "High". It seems that the macro statuses are written in capital letters.
And the tilde "~" has a kind of a similar meaning as a simple LIKE (that is often considered to be an SQL-standard), your first query should be also recognized correctly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.