2.90:Database Export: Difference between revisions
| Line 26: | Line 26: | ||
{| | {| | ||
| style="padding:25px; vertical-align:top" | | | style="padding:25px; vertical-align:top" | | ||
The thing to understand about the document displayed on the right is that there is a combination of single instance data | The thing to understand about the document displayed on the right is that there is a combination of single instance data (single fields of information) married with multi-instance data (table displaying a dynamic amount of rows), i.e. - a one-to-many relationship. The single instance data ('''Last Name''', '''First Name''', '''Employee ID'''), as a result of only being listed once on the document, will only be collected once, but needs to be married to each row of information from the table. While the single instance data is only collected once, it will be reported many times. This document is meant to show flattening inherited data structures. | ||
|| [[File:database_export_002.png|1000px]] | || [[File:database_export_002.png|1000px]] | ||
|} | |} | ||
| Line 32: | Line 32: | ||
{| | {| | ||
| style="padding:25px; vertical-align:top" | | | style="padding:25px; vertical-align:top" | | ||
The second document is collecting only information from the table | The second document is collecting only information from the main table, but there is Personally Identifiable Information (PII) in the table that should be protected. As a result, it will export its information to two tables (with the assumption that the second table is "protected.) This document is meant to demonstrate how to export to multiple tables via one step in a '''Batch Process'''. | ||
|| [[File:database_export_003.png|1000px ]] | || [[File:database_export_003.png|1000px ]] | ||
|} | |} | ||
Revision as of 17:45, 14 April 2020
Database Export is one of the main ways to Deliver data Collected in Grooper.
A completed Content Model and accompanying Batch for what will be built can be found by following this link and downloading the provided file. It is not required to download to understand this article, but can be helpful because it can be used to follow along with the content of this article. This file was exported from and meant for use in Grooper 2.9
About
The most important goal of Grooper is to deliver accurate data to line of business systems that allow the information to be integrated into impactful business decisioning. Tables in databases remain, to this day, one of the main vessels by which this information is stored. Grooper's Database Export activity is the mechanism by which this delivery is performed. Database Export uses a configured Data Connection to establish a link to (Microsoft SQL Server or ODBC-compliant) tables in a database and intelligently populate said tables.
Two key distinctions about Grooper's Database Export activity are its ability to take full advantage of its sophisticated hierarchical data modeling to flatten complex/inherited data structures, and the ease of delivery to multiple tables at once.
How To
| ! | Some of the tabs in this tutorial are longer than the others. Please scroll to the bottom of each step's tab before going to the step. |
Understanding the Forms
Understanding the Content Model
Index Data
Before the Database Export activity can send data, it must have data. It's easy to get in the habit of testing extraction on a Data Field or a Data Model and feel good about the results, but it must be understood that the information displayed when doing so is in memory, or temporary. When the Extract activity is successfully run against a document it creates Index Data and marries it to the document via a JSON file called Grooper.DocumentData.json. A couple of ways to verify its existence are as follows.
Configuring a Data Connection
In order for the Database Export activity to run, it needs an established connection to a database and subsequent table(s). Grooper can connect to an existing database and import references to its tables, or easily enough, you can have Grooper create the database FOR you AND create tables based on data structures present in Grooper!The following setup will have Grooper create the database and its tables.
It is worth noting that this article cannot tell you specifics about permissions in your environment. The configuration for this article is using Microsoft SQL Server, not ODBC, and has given the active Active Directory user full DB Admin privileges to the SQL environment.
With a connection to the SQL environment established, we can make Grooper create our database for us.
This Data Connection is not complete until a table references has been imported. A database has been created and is connected to, and Grooper did the work for us there, so let's keep that up to get tables made. Two different tables need to be created and references imported, due to the two different Document Types and the subsequent Data Models. The following process will describe importing the first table, and will simply need to be repeated for the second table (the second table will not consist of the same inheritance notions discussed on step 5 because the scope considered for the Database Export 02 Document Type only has a Data Table and no Data Fields.)

