|
#1
|
|||
|
|||
Indenting search criteria
Graphical user interface (GUI) of the Search Criteria construction is visually pleasing as long as no indenting rows (criteria) are applied. The benefits of the indenting rows, often than not, diminish and precipitate more confusion than clarity. The following simple complex indenting criteria (see the screen shot) may represent (Reminder >0 minutes AND Begin Date >=12/25/2008 AND Begin Date <= 1/30/2009) AND (Date Completed = NIL OR Date Completed doesn't exists). But I'm not sure.
Textual representation of the Search Criteria are more comprehensible, definitive, and flexible regardless of the complexity involved. Just my two cents. Armstrong |
#2
|
|||
|
|||
The screen shot for the above post.
|
#3
|
|||
|
|||
Could someone be very kind enough to interpret the following screen shot? What would be the logical meaning for the unindented last row?
Thanks a lot. Armstrong |
#4
|
|||
|
|||
Quote:
( (Reminder > 0) .AND. (Begin Date >= 12/25/2008) .AND. (Begin Date <= 01/30/2009 .AND. Date Completed = NULL) .OR. (Date Completed .NOT. exists (NULL)) ) |
#5
|
|||
|
|||
Quote:
Neither do I know the interpretation for sure. Therefore, it would benefit enormously all UR users by displaying the textual interpretation underneath the Search Criteria matrix (table). Armstrong Last edited by armsys; 01-24-2009 at 06:39 AM. |
#6
|
|||
|
|||
ashwken,
Thanks for your trying to help. Armstrong |
#7
|
||||
|
||||
Quote:
Anyway, if you didn't indent the last row the search would be (as far as I know): you have two AND and one OR on the same level (the order on the same level does not matter, read in the help file "location does not matter"), by the help file AND takes precedence (all AND are evaluated before any OR, on the same level), so you have (Reminder > 0 AND Begin Date >= 12/25/2008 AND Begin Date <= 01/30/2009) OR Date Completed .NOT. exists Now you connect the above with AND on the second level, so you get ((Reminder > 0 AND Begin Date >= 12/25/2008 AND Begin Date <= 01/30/2009) OR Date Completed .NOT. exists) AND Date Completed = NULL |
#8
|
|||
|
|||
Quote:
In the above example, the indented row could actually be the last row of the grid? |
#9
|
||||
|
||||
Quote:
"All Criteria Rows at the same indent level (regardless of location) will be evaluated together as if they were enclosed in a parenthesis (comprising a composite Search Expression). The Relationship for the first Criteria Row in an indent level determines how the expression represented by that indent level is related to the rest of the search criteria." |
#10
|
|||
|
|||
Quote:
Nonetheless, Kinook illuminates it in http://www.kinook.com/Forum/showthre...threadid=3908. However, it doesn't diminish the cloud of confusion over the complex multi-indenting Search Criteria. I have to experiment with long hours until the search result matches my intent. Armstrong Last edited by armsys; 01-24-2009 at 10:08 AM. |
#11
|
|||
|
|||
Quote:
Therefore, for the same level, the location does matter. Armstrong |
#12
|
||||
|
||||
Quote:
Let's take for example the search I created, I provided my explanation what it does, with 2 examples that match it. Can you think of item that would match and contradict the search bellow? ((aaa AND iii) OR eee) ..AND ..( ....((bbb AND fff) OR jjj) ....OR ....( ......(ccc OR ggg) ......AND ........hhh ....) ..) |
#13
|
|||
|
|||
Quote:
I'm humbled by your efforts to vindicate your theory. In fact, you're the first one and the only one enlightening us that the same level can mean transcending across inconsecutive Search Criteria (rows). That's awesome. I certainly have no intent to prove you wrong. My posts highlights the critical fact that the Search Criteria construction GUI causes more confusion rather than clarity. My view is based upon the UR Manual (http://www.kinook.com/UltraRecall/Ma...ingstarted.htm): "Sometimes this is not the desired search behaviour. You can explicitly specify precedence using Indenting, which function like parentheses." Obviously your sample Search prove it's not necessarily always the case. On the contrary, your textual Search Criteria (logical expression) is crystal clear to everyone free of any confusion. Hopefully the Search Criteria textual display will be implemented by Kinook in the near future. Armstrong |
#14
|
||||
|
||||
Quote:
"All Criteria Rows at the same indent level (regardless of location) will be evaluated together as if they were enclosed in a parenthesis" That means "transcending across inconsecutive rows" as well. Take whatever is on the same indent level and put it in the parenthesis. I tried one more very trivial example, ... again the results seems to be in line with how I understand the help file: (aaa OR ccc) AND bbb Surely, one would probably not make a confusing search criteria like the previous complicated example, and the rows with the same indent level would be consecutive. |
#15
|
||||
|
||||
Quote:
Quote:
|
|
|