external_data
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| external_data [2022/03/31 12:52] – antreas | external_data [2023/11/21 16:00] (current) – chris | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ==== Configuring data connections ==== | ==== Configuring data connections ==== | ||
| + | |||
| The first step in configuring your external data link to PMA.core is to create the connection to the data source. PMA.core supports connection to the following databases | The first step in configuring your external data link to PMA.core is to create the connection to the data source. PMA.core supports connection to the following databases | ||
| * SQL Server | * SQL Server | ||
| Line 17: | Line 18: | ||
| ==== Configure queries ==== | ==== Configure queries ==== | ||
| - | After creating the external database connection we need to create a link between the data and the slides in PMA.core. To accomplish this we need to define an SQL query that will instruct PMA.core how each slide is linked to one or more rows of data in the external connection. To start that we need to click ton Add button in the external data source page | + | After creating the external database connection we need to create a link between the data and the slides in PMA.core. To accomplish this we need to define an SQL query that will instruct PMA.core how each slide is linked to one or more rows of data in the external connection. To start that we need to click the 'Add' |
| === SQL query === | === SQL query === | ||
| {{ :: | {{ :: | ||
| - | Even though the Add Query page seems complicated it is nothing more than an intuitive | + | Even though the Add Query page seems complicated it is just a UI to create an SQL query so that PMA.core can link the external data to the slides provided. The page is divided in two parts, |
| + | The parts that are needed to successfully create the query are: | ||
| * Connection: One of the external connections created earlier (see previous paragraph) | * Connection: One of the external connections created earlier (see previous paragraph) | ||
| * Table name: This field is **automatically** populated after you select the // | * Table name: This field is **automatically** populated after you select the // | ||
| * Display name: A name for this query, just to distinguish between this and other queries | * Display name: A name for this query, just to distinguish between this and other queries | ||
| * Fields to include: This is a list of all fields in the table. It is **automatically** populated after selecting the //Table Name// | * Fields to include: This is a list of all fields in the table. It is **automatically** populated after selecting the //Table Name// | ||
| - | * Match mode: PMA.core offers two ways to link the external data to PMA.core slides. | + | * Match mode: PMA.core offers two ways to link external data to PMA.core slides. |
| * Regular expression: This is an // | * Regular expression: This is an // | ||
| - | * Filter Expression: This is the //WHERE// expression of the query, that have to match the **SLIDE_IDENTIFIER**. This can simply be a column of the table or some other valid SQL WHERE expression | + | * Filter Expression: This is the //WHERE// expression of the query, that has to match the **SLIDE_IDENTIFIER**. This can simply be a column of the table or some other valid SQL WHERE expression |
| * Query preview: This is an important preview of the final query. After each change to the previous fields your changes will be reflected here for final inspection. | * Query preview: This is an important preview of the final query. After each change to the previous fields your changes will be reflected here for final inspection. | ||
| - | As stated an above the **# | + | As stated an above the **# |
| - | Before your query is ready you need to test that it works as expected | + | Before your query is ready you need to test that it works as expected: |
| === Testing === | === Testing === | ||
| - | To test your query for errors and validating | + | |
| + | To test your query for errors and validate | ||
| {{ : | {{ : | ||
| - | Clicking | + | Clicking the "Execute" |
| {{ :: | {{ :: | ||
| ==== Consumption and applications ==== | ==== Consumption and applications ==== | ||
| - | After creating the queries you can now use the [[https:// | + | After creating the queries you can now use the [[https:// |
| - | This is the same API that is used to provide external data in downstream | + | This is the same API that is used to provide external data in downstream |
| {{ :: | {{ :: | ||
| + | |||
| ==== More background ==== | ==== More background ==== | ||
| See [[https:// | See [[https:// | ||
external_data.1648723964.txt.gz · Last modified: by antreas
