This article is outdated, you can access the most current version here: https://doc.onedata.de/apps/apps-docs/odml-documentation/AppBuilder/datasources/Datasources.html
Article Content
Overview
Datasources are the definitions of data which should be visualized by Elements. Datasources itself do not request any data, this only happens if they are actually used inside an element which is part of the layout which is currently shown. While in classic ONE DATA everything had to be done with result tables, there are 3 `schema` options within Apps:
data as
table
(close to what we had with result tables)- data as
list
(ideal for filling drop-downs) - data as
string
(used e.g. for KPIs)
Depending on the data source type not all `schema` options can be used, however there is a specific datasource available which is able to convert from tables to lists or strings, and from lists to strings.
Application order of data-transformations
- Datasource transformations (e.g. SQL at the Datasource)
- SyncSet filters (e.g. A Table will be filtered after you click on a BarChart Bar)
- Element transformations (not applied if getting distinct values and "distinctValuesUseAllTransformations" is not set) (e.g. SQL at the Element)
- User filters (e.g. Applied Single/Multi Select Filter)
- User sorting (e.g. ASC or DESC sorting of a table column
All currently available datasources
REST Endpoints
Datasource Origin | Possible Schemas | Description |
rest | table, list, string | Data from rest endpoints, json response can be limited via json-path expressions to match the specified schema. |
Example
Raw
Datasource Origin | Possible Schemas | Description |
raw | table, list, string | Raw data specified by the user, it has to match the given schema. |
Example
Datasource
Datasource Origin | Possible Schemas | Description |
datascource | list, string | Takes another datasource and transforms its data to the given schema (e.g. to a list by selecting a column out of a table, or to a string by selecting a row of a column). |
Example
Job
Datasource Origin | Possible Schemas | Description |
job | table | Data from workflow job resulttables, when used in e.g. highcharts visualizations all data is retrieved |
Example
Data Table
Datasource Origin | Possible Schemas | Description |
datatable | table | Data from standard ONE DATA datasets, when used in e.g. highcharts visualizations all data is retrieved |
Example
Connection
Datasource Origin | Type | Description |
connection | table | A ONE DATA connection, which is referenced through the id of the connection. Currently only database connections are supported and allow the retrieval of a database table. The target table can be specified directly via a tableName or a baseQuery, which is a SQL query that is executed on the database to retrieve the table data. Similar to the frt datasource filterOptions and dataOptions are also supported and forwarded to the databse when set. |
Example
Filterable Result Table (FRT)
Note that FRTs are deprecated and will no longer be supported in newer versions of ONE DATA! Use Data Tables instead.
Datasource Origin | Possible Schemas | Description |
frt | table | Data from FRTs, when used in e.g. highcharts visualizations, the amount of data specified in the pagination will be retrieved. Only special FRT-tables will later on provide the current FRT features with filtering, etc. |
There are currently thre ways to specify the target FRT:
- frtId or dataId: the id of the target FRT (it is advisable to use this option).
- frtId: The frtId can be looked up in the workflows Filterable Result Table Processor in the tab ab "Json-results"
- dataId: The dataId of a FRT can be looked up in the ONE DATA Datatable-Tab (more information can be found here)
- frtId: The frtId can be looked up in the workflows Filterable Result Table Processor in the tab ab "Json-results"
- frtId and workflowJobId: The frtId and the workflowJobId of the job that generates that FRT (this option is mainly kept for backwards compatibility)
Example
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