Hey Nelson,
While I seriously appreciate the effort you've put into your answer, I believe the entire point of my question is still being missed.
OBJECTIVE: To define semi-complex table SELECT queries, which actually follow the criteria presented to them. As we only have the option to define two AND WHERE statements in the table loop action we're really not getting overly complex, but would like to know simply how to create a table loop query statement where I can define criteria such as IS EMPTY or IS NOT EMPTY. I would also like to define queries where linked values are able to be queried properly. For example, looping the SalesOrderLine table where (linked value from SalesOrder table) SOIsManuallyClosed = NO (this works just fine & dandy), however, when attempting to define WHERE (dropdown value, referencing RecordID of, where table dropdown value defined under table edit IS in fact defined as RecordID) APIResponseStatus <> 264 (integer value with a non-integer meaning) I get zero results, in spite of the fact that many results DO exist!
PROBLEM: This does not appear to be possible! While I can define grid filters for IS EMPTY or IS NOT EMPTY, this does not appear to be something that can be done with the current table loop query builder which just seems so frighteningly ridiculous. To further the problem, I am beyond frustrated with the inability to define certain criteria in my table loop queries... essentially needing to loop through 3,000 records when only 300 need to be queried, and eliminating 2,700 of them with an opening conditional statement based on the value of a returned column in each row (simple stuff... like IF X <> 264). It's still pretty quick, but not nearly as efficient as a properly-constructed SELECT query.
HALF-ASSED APPROACH: I have considered creating hidden grids on a screen with complex filters designed to simulate the table query that I am attempting to accomplish, but why God, why, would I need a hammer to open a darned banana?
PERFECT EXAMPLE OF ASS-BACKWARDS RESULTS: We have a fairly simple system that generates purchase order numbers based on a secondary column generated for strictly numerical values. Each time a new PO is generated, the numerical value of that PO number is saved in the secondary column in order to calculate the PO number for the next new purchase order. I am attempting to construct a simple loop, a fail-safe for instances where this numerical value is NOT saved for whatever reason and winds up with a blank, or NULL value that is processed before the "populate purchase order number" action set is initiated. The ONLY way that I can search for these values is by constructing a query like this... loop table `PurchaseOrder` where `RecordID` <> -1 (i.e. all purchase order rows). Then, perform a character function on the length of the field that I'm trying to see is blank or not (inside the table loop). If the length is zero, then the action set proceeds by populating the previously BLANK or NULL values with the necessary data. Wouldn't it be SOOOOO much easier if I could simply define this logic in the initial table query, i.e. Let's check the PurchaseOrder table and return rows where X field does not currently have an assigned value, or if the currently assigned value is empty? Am I just missing some OBVIOUS way of going about this and making this far more complex than it needs to be??
Lastly, NO I am not checking the alphabet for a numeral in constructing my query. I may be a bit slow, but come on...
Let me know if you have any ideas on this, or if this is something that the developers are working to implement at some point in the future. Greatly appreciate your efforts here.
Best,
Charles