The Data Viewer enables you to view a Logical Unit database (LUDB), add debugging capabilities and improve testing and defect resolution times.
Since an LUDB is in-memory, it can be viewed by dumping it into an SQLite file which can be shared via email or a common file directory for additional investigations using the Fabric Studio. This file can also be used to execute SQL queries and for analysis. Data Viewer files are saved under the LU VirtualDB_Data directory in: \Fabric\[project name]\Implementation\LogicalUnits\[LU name]\VirtualDB_Data.
Click for more information about Logical Units.
Note that the Data Viewer runs on the Fabric local server. Therefore you must deploy the LU to the Fabric local server before running the Data Viewer on this LU.
Click for more information about deploying LU to the Fabric debug server.
Go to the Project Tree, click Logical Units and verify that the LU has a green icon, indicating that it is deployed to the debug server. If the LU has a white icon like the test LU in the image above, deploy it to the debug server before running the Data Viewer on it. Do either:
Click next to the selected LU to open the Data Viewer window.
Set the Sync Mode in the top left pane. The default Sync mode is ON.
In the Instance ID field (top central pane) complete the Instance ID or Instance ID by Function fields.
Click Play to generate a new Data Viewer file. Fabric runs the GET LUI command on the debug server of the selected Instance ID. Each sync of LUI creates a new *.db SQLite file for the LU instance. The LU instance is displayed in the tree.
Note that if you set the Sync Mode to OFF and the Instance ID does not exist in the debug server, the following error message is displayed:
Instance '[LU Name]:[Instance ID]' was not found and sync is disabled.
Click the Instance ID to open the Instances Tree dropdown list.
Click a table to display its data and then right click the table to open a context menu with the following options:
a. Show Data, displays the table’s data.
b. Show Schema, displays the table’s structure.
c. Show Indexes, displays the table’s indexes, if defined.
Click for more information about Logical Units.
The Logical Unit DB Viewer has the following areas:
This area has the following components:
When clicked, loads and displays an external Data Viewer file.
Set the Sync Mode for the GET LUI command, initiated by the execution of the Data Viewer. The options are On, Off, and Force. The default mode is On.
To complete this field, do either:
For example:
Instance ID by function: fnCreateInstID (205):
if (i_id!=null && !i_id.isEmpty()){
return Integer.sum(Integer.valueOf(i_id),10)+"";
}
return "0";
#### Play
When clicked, retrieves and saves the data file of the Instance ID for debugging.
The Instance Tree area (top left) displays a tree of available data files in the following order:
The Instance DB Tree area (bottom left) displays the Table Tree which includes:
To display the values of a table in the tree, right click the table and select either:
Click for more information about References.
(Bottom right) Displays the data or schema requested with the row count.
Print results. |
|
Export results as an Excel file. |
|
Filter results by one or more columns. |
|
Toggle groupings. |
|
Toggle summaries. |
The SQL scripting area is used to write and run SQL statements on a selected LUDB (upper right pane).
The following options are supported:
Run and execute the SQL statement from the scripting area on the selected DB file:
Notes
The latest Data Viewer file can be used in the following components:
The Data Viewer enables you to view a Logical Unit database (LUDB), add debugging capabilities and improve testing and defect resolution times.
Since an LUDB is in-memory, it can be viewed by dumping it into an SQLite file which can be shared via email or a common file directory for additional investigations using the Fabric Studio. This file can also be used to execute SQL queries and for analysis. Data Viewer files are saved under the LU VirtualDB_Data directory in: \Fabric\[project name]\Implementation\LogicalUnits\[LU name]\VirtualDB_Data.
Click for more information about Logical Units.
Note that the Data Viewer runs on the Fabric local server. Therefore you must deploy the LU to the Fabric local server before running the Data Viewer on this LU.
Click for more information about deploying LU to the Fabric debug server.
Go to the Project Tree, click Logical Units and verify that the LU has a green icon, indicating that it is deployed to the debug server. If the LU has a white icon like the test LU in the image above, deploy it to the debug server before running the Data Viewer on it. Do either:
Click next to the selected LU to open the Data Viewer window.
Set the Sync Mode in the top left pane. The default Sync mode is ON.
In the Instance ID field (top central pane) complete the Instance ID or Instance ID by Function fields.
Click Play to generate a new Data Viewer file. Fabric runs the GET LUI command on the debug server of the selected Instance ID. Each sync of LUI creates a new *.db SQLite file for the LU instance. The LU instance is displayed in the tree.
Note that if you set the Sync Mode to OFF and the Instance ID does not exist in the debug server, the following error message is displayed:
Instance '[LU Name]:[Instance ID]' was not found and sync is disabled.
Click the Instance ID to open the Instances Tree dropdown list.
Click a table to display its data and then right click the table to open a context menu with the following options:
a. Show Data, displays the table’s data.
b. Show Schema, displays the table’s structure.
c. Show Indexes, displays the table’s indexes, if defined.
Click for more information about Logical Units.
The Logical Unit DB Viewer has the following areas:
This area has the following components:
When clicked, loads and displays an external Data Viewer file.
Set the Sync Mode for the GET LUI command, initiated by the execution of the Data Viewer. The options are On, Off, and Force. The default mode is On.
To complete this field, do either:
For example:
Instance ID by function: fnCreateInstID (205):
if (i_id!=null && !i_id.isEmpty()){
return Integer.sum(Integer.valueOf(i_id),10)+"";
}
return "0";
#### Play
When clicked, retrieves and saves the data file of the Instance ID for debugging.
The Instance Tree area (top left) displays a tree of available data files in the following order:
The Instance DB Tree area (bottom left) displays the Table Tree which includes:
To display the values of a table in the tree, right click the table and select either:
Click for more information about References.
(Bottom right) Displays the data or schema requested with the row count.
Print results. |
|
Export results as an Excel file. |
|
Filter results by one or more columns. |
|
Toggle groupings. |
|
Toggle summaries. |
The SQL scripting area is used to write and run SQL statements on a selected LUDB (upper right pane).
The following options are supported:
Run and execute the SQL statement from the scripting area on the selected DB file:
Notes
The latest Data Viewer file can be used in the following components: