|
|
| Product | |
| Support | |
| Everything Else | |
| A Short Tutorial for the OS X Power Query | |
| Introduction |
The Power Query window (the Power Query Term Specifier) has been completely redesigned. The new interface takes advantage of many features available in OS X. Because of the radical departure from the Power Query seen in Classic Helix, this technote provides detailed information on using the OS X Power Query. This technote essentially provides the OS X equivalent to the information found in section 9.4.3 of The Helix Reference. In the tutorial below, you can click each image to see it at full-size. |
| About Power Queries |
A power query can be used to construct a complex search statement using one or more logical search expressions. Helix then retrieves just those records in which field and/or abacus values meet the criteria in the search statement. Unlike the Form Query, which is limited to joining multiple statements with and logic, the Power Query can use and, or and not logic, nesting groups within groups. The OS X Power Query displays queries that were created in Classic using the new interface. The Classic Power Query is limited to using only and and or operators with limited nesting options. An OS X Power Query that uses the new, advanced logic should function correctly in Classic Helix, but the "Completed Search Statement" can not be viewed in the Classic Power Query window. Clicking the "Clear" button will remove the OS X Power Query so a new one can be defined in Classic Helix. |
| The Power Query Window |
The dialog starts out with only a single line popup control and expands as needed as more information is required. To use a power query, you do the following:
|
| Invalid Search Statements |
|
| Tooltips |
The OS X Power Query window features extensive tooltips. Every control in the window has an explanatory tooltip that explains the item's purpose. Since the (+) & (-) buttons allow you to add and remove both logical operators and search statements, these tooltips also describe the effects of option-clicking. |
| Nested Logical Operators |
To remove a statement from the query, click the (-) button to its right. Clicking on the (-) button next to a logical operator removes that logical operator and moves all nested statements out one level. To remove a logical operator and its nested statements, option-click the (-) button next to the logical operator. Clicking the (+) button next to a logical operator adds another search statement at the same level as the logical operator. Option-clicking the (+) button adds a new logical operator inside that logical group. Clicking the (+) button next to a search statement adds another search statement at the same level as the search statement. Option-clicking the (+) button adds a new logical operator at the same level, nested inside this search statement's logical operator. These options allow the user to create very complex, deeply nested logical operations in the Power Query window, far surpassing the capabilities of the Classic Power Query. Any query logic that can be constructed in an abacus in Design Mode can be created using the OS X Power Query. An OS X Power Query that uses advanced nesting should function correctly in Classic Helix, but it can not be viewed in the Classic Power Query window. The "Completed Search Statement" area appears to be empty. Clicking the "Clear" button in the Classic Power Query window removes the OS X Power Query so a new one can be defined. |
| Permanent Power Query Criteria |
A collection designer has the ability to attach permanent criteria to a Power Query. These criteria can not be changed in User Mode, and can not even be seen. The OS X Power Query window gives indication when permanent restrictions are attached by changing the label at the top of the window from Set Search Criteria to Add to Predetermined Search Criteria. Contrast this to the Classic Power Query, which gives no indication whatsoever that permanent criteria are attached. |
| Power Query is Always Cold |
In Classic Helix a Power Query can be either hot or cold. (A hot query recalculates the attached views whenever any search criteria is changed.) In this regard, the OS X Power Query is always cold, as it does not recalculate attached views until the window is closed or the Apply button is clicked. (If you are pining over the loss of the ‘Hot’ Power Query, do not despair. All you have to do is hit the Enter key on the keyboard after making a change. That will trigger the Apply button, causing the query to refresh immediately.) |
| Demo Movie |
Here is a short movie showing the new Power Query in action. See this and other video tutorials on the QSA ToolWorks YouTube tutorial channel. |