Create a Record using Datasource
Tip: You can use Manage Records to create a Record without running the application.
For your users to create new Records in your application, you will need to add a Create a Record Datasource.
Note: To create a Record of the special User Data Type, you will need to use the Register User Datasource.
- Navigate to the Screen that you want to add the Datasource.
- Press the Datasource button.
- Press the + Create datasource button.
- Select the Kodika Server tab.
- Select the Data Type of the Record that you want to create.
- Select Create a
Data Type Name
. - Bind the parameter values.
- Connect at least the parameters of the On Success response.
- Press Save.
- Close Datasource popup.
- Create a Start a Datasource Request Event Action and connect it to an Event.
Request Parameters
Updated Properties
Bind the properties of the new Record with values.
Responses
Note: If any of the validations failed, the On Success response is not called, and only the respective failure response is called.
On Success
Called when the Record is created successfully.
Parameters:
- New Record: The new record.
On Error
Called when there is an unknown error that is not handled by the other responses.
Parameters:
- Error: A text with an error message.
When Offline
Called when the user has no Internet connection.
Parameters:
- Error: A text with an error message.