Data Sources
Introduction
Erizos Studio UI Builder supports external database that help with organizing and structuring data. It allows users to add, edit, and manage different database sources. Currently, five types of sources are supported: MSSQL, MySQL, Google Sheets, Google Firebase, and SpreadSheet File.
To access Sources, click on the Database icon, under Sources click Add Sources
Adding a MSSQL Source
- Click the Database icon
- Under Sources, click the Add Sources Icon.
- Select the MSSQL type Source.
- Name your Source.
- Add the Object Configuration for your Source and click Create.
1 2 3 4 5 6 7 8 9 10 |
|
Adding a MySQL Source
- Click the Database icon
- Under Sources, click the Add Sources Icon.
- Select the My SQL type Source.
- Name your Source.
- Add the Object Configuration for your Source and click Create.
1 2 3 4 5 6 7 |
|
Adding a Google Sheet Source
- Click the Database icon
- Under Sources, click the Add Sources Icon.
- Select the Google Sheets type Source.
- Name your Source.
- Add the Object Configuration for your Source and click Create.
1 2 3 |
|
Note
If no apiKey is provided, make sure the Google Sheet share setting of the Sheet you want to use is set to "Anyone with the Link".
Adding a SpreadSheet Source
- Click the Database icon
- Under Sources, click the Add Sources Icon.
- Select the SpreadSheet File type Source.
- Name your Source.
- Type the Name, click Create.
1 2 |
|
Adding a Google Firebase Source
- Click the Database icon
- Under Sources, click the Add Sources Icon.
- Select the Google Firebase type Source.
- Name your Source.
- Add the Object Configuration for your Source and click Save.
1 2 3 4 5 6 7 8 9 |
|
Accessing Sources
The access Sources, users just need to call the function DataService
and provide the name of the Source and the Query as Parameters.
In the Example below, we populate a TextBox when a button is clicked. The button fetches the data from our Source. We have a source named 'MySource' as the first Parameter, the second Parameter is the Query we want to run in our database.
1 2 3 4 5 |
|