Table Mirroring
Created by Harry Lewis, Modified on Mon, 16 Dec at 11:10 AM by Liubov Kabir
Applies to:
- Velixo NX
What is Table Mirroring?
Many Velixo functions create Excel arrays (a single function can return multiple rows/columns).
Certain Velixo functions (GI, SI.QUERY) can express their output as either an Excel array or as an Excel table, and the TOTABLE function can convert an Excel array to an Excel table.
These functions can send their entire output "as is" to a table (Full Mirroring mode) or can send selected columns in a specified order to the table (Per Column Mirroring mode)
All of these functions use the same basic techniques for creating tables. Let's explore examples of those techniques.
TABLE OF CONTENTS
- TOTABLE function - convert entire array to a table (with columns in same order) - Full Mirroring
- GI function (Velixo NX only) - send entire out to a table (with columns in same order) - Full Mirroring
- TOTABLE function - convert entire array to a table (changing column order) - Per-Column Mirroring
- SI.QUERY function - send entire array to a table (changing column order) - Per-Column Mirroring
- TOTABLE function - include (and maintain) user-entered data with the table - Per-Column Mirroring
Examples
TOTABLE function - convert entire array to a table (with columns in same order) - Full Mirroring
=TOTABLE(B10#,,,P9) Description Creates a table (based on the results of the array defined in cell B10) and places that table starting in cell P9.
Result Note: This method is referred to as Full Mirroring Mode - meaning that the entire results (and ONLY the results) from the original array are included in the resulting table. |
GI function (Velixo NX only) - send entire out to a table (with columns in same order) - Full Mirroring
Certain Excel features do not work with Excel arrays but, rather, require that data be in an Excel table. As a result, it can be convenient to have the option to create such a table from our generic inquiry data. This example... =GI("Demo", "AR-Invoices and Memos", "Type eq 'Credit Memo'", "Type,ReferenceNbr,Status,Customer,PostPeriod,Amount", FALSE)
...would return data from the AR-Invoice and Memos generic inquiry and display it as an Excel array:
If, however, we modify the function by adding a value for the (Velixo NX only) OutputColumn1 parameter... =GI("Demo", "AR-Invoices and Memos", "Type eq 'Credit Memo'", "Type,ReferenceNbr,Status,Customer,PostPeriod,Amount", FALSE, H2)
Description: This returns data the data from the generic inquiry and displays it as an Excel table starting in cell H2.
Result: Note: the GI() function still resides in cell A2, and the same data is returned. However, the results are displayed as an Excel table starting in the cell specified in in the OutputColumn1 parameter. |
TOTABLE function - convert entire array to a table (changing column order) - Per-Column Mirroring
=TOTABLE(B10#, {2,1}, FALSE, K9, M9, I9, L9, N9, J9) Description Creates a table (based on the results of the array defined in cell B10) as follows:
This technique - where we both...
... is referred to as per-column mirroring mode
Result |
SI.QUERY function - send entire array to a table (changing column order) - Per-Column Mirroring
=SI.QUERY("Sage","Project",,"RECORDNO,PROJECTID,PROJECTTYPE,NAME",TRUE,,A5,B5,D5,C5) Description: Instead of displaying the results of the query starting in the cell containing the SI.QUERY function, the function Cell A2 displays the specified fields from the Project object in an Excel data table located in the cells specified by the OutputColumns parameters (cells A5, B5, D5, and C5) |
TOTABLE function - include (and maintain) user-entered data with the table - Per-Column Mirroring
In this example, we have added a calculation to the end of our table: In order to maintain those calculated values when we refresh our report, we need to use per-column mirroring mode. =TOTABLE(A6#,{1,2,3,4},,I5,J5,K5,L5,M5,N5) Description This function creates a table (based on the results of the array defined in cell A6) as follows:
By using per-column mirroring mode, when the report is refreshed, the user-specified calculations in the highlighted column will be maintained (even if the results end up displaying different records). |
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article