SwatBusinessEntitity (DatasourceObject)
SwatBusinessEntity is a non graphical control which allows the data transfer between front end and back end. The SwatBusinessEntities will be used as Datasource-Objects e. g. in SwatWindows-Objects.
In the Links view of Object Designer the business entity object must be linked to the corresponding graphical control in order to pass data to and from it.
A complete description of the attributes and events of this object can be found at the Client-logic API.
A SwatBusinessEntity provides data from different datasources, e. g. databases, APIs or calculated data based on every data the system has access to.
To create a new SwatBusinessEntity or change an existing one you can use the Business Entity Designer.
SwatBusinessEntity can be used within screens (e. g. SwatWindow or SwatFrame) as datasources for getting data.
Open a screen in the Object Designer.
Drag&drop the needed SwatBusinessEntity from the catalog on the bottom right into the preview panel.
Note
Drop it to a position where the Preview panel is highlighted in green, not in red.
Assign a unique object name in the config tab on the right side.
Click Save.
Now you can link a SwatBusinessEntity to the SwatGrid in the Flow Designer tab on the left side. Choose the link type 'Data'.
If it is the first SwatBusinessEntity you must add a link from 'This object' to the BusinessEntity and choose the link type 'PrimarySdo'.
For other objects the link type is based on the object type of the object, which should be linked to the SwatBusinessEntity. You can find the details in the corresponding object type description.
Access via REST API requests
Every static BusinessEntity can be accesses via REST API (we are still working on the same functionality for dynamic BusinessEntities).
Authentication: Basic Auth, with user credentials
Example: User data via https://[URL of the environment]/restbasic/web/Entities/Akioma/Crm/MasterData/System/User
For options see documentation on https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8094560/RESTful+services#RESTfulservices- QueryStringParameters