Description
In B1, it is possible to create data sources and entities based on a Backend Data Source Object (DSO). This implies that there is no need for a physical database with a table in the background. To achieve this, create a Backend DSO and a temporary table. Based on these, an entity is generated. Subsequently, a Data Source Object (DSO) can be created based on the generated entity.
Short description
Create a backend class and a temp table definition → Generate based on the backend class the entity → Generate based on the backend class the DSO→ Generate any object based on the Entity
How to use it
- Create a new BackendDSO in src/backend/BackendDSO
- Create a new file for your backendDSO like “MyDataSource.cls” and a tempTableDefintion like “dsData.i”
‣
‣
- Now go to B1 and create an entity based on the MyDataSource.cls
- Navigate to Integrate → Data → Datasoruce and click on “Generate Entity & Datafields”
- Name: Name of your Entity. For naming convention please add an “Entity” in the end
- Description: Add a short description
- Module: Add a corresponding module
- Definition Source Type: Select the BusinessEntity
- Business Entity: Add the name of your backend DSO
- Create a DataSource
- Navigate to Integrate → Data → Datasoruce and click on “Generate Datasource”
- Name: Name of your DSO. For naming convention please add an “DSO” in the end
- Description: Add a short description
- Module: Add a corresponding module
- Select the BusinessEntity
- Business Entity: Add the name of your backend DSO
- Business Entity Table: Add the name of your tempTableDefinition → Here “eTable”
- Now you can create objects based on your DSO
- Here an example for an Grid / Table
- Navigate to Design → Components → Grids → and click on the button “Generate”
- Name: Name of the grid
- Titel: The title of your grid
- Description: Add a short description
- Entity: Select your created entity
- Fields: Select your fields. If you want to use all than add an “*”
- Module: Select the corresponding module
‣
‣
‣
Result for the grid
Back to Documentation
Back to Home Page