Sources
Last updated
Last updated
The Source Designer displays the list of all existing sources (not adapter). If another source has been set up, only the default source (such as an MS SQL Server in the screen shot) is displayed.This is generated automatically when creating a new app.
There is also a button to create new sources. If you create a new source, a new window opens in which you can select an available adapter with which you want to create a source. Next, the name can be set. This is useful because you can create multiple data sources for one app.
Once the source is added, classes can be created for that data source. This is done in the class designer. In the header of the designer, on the left side, there is a selection field with which you can select a data source.
If you now select the newly added source, all classes you create are assigned to this source. I.e. the actions of this class are executed on the data source and the fields of an instance of this class are stored or read in this data source. This applies however only if CRUD capabilities (create, read, update, delete) are supported by the source.
Actions of a class can only be executed if the data source also supports them.
For more information on class creation see chapter Data Modelling.
After a new class has been created and you want to save, the message "Source not configured" appears. But only if this source is not already used for other apps and has already been configured.
The configuration of the source is done in the default app Team. There is the entry Sources. When you open this page, all sources that are assigned to at least one class appear. These are divided into configured and non-configured sources.
Sources listed in the Not Configured tab can now be configured. Clicking on a source opens another page with the button Configurate Adapter. Clicking on the button displays the individual configuration of this adapter. After all required information has been filled in and no errors are displayed, the configuration can be saved.