Request Parameters
The Request Parameters section of a Datasource represents the parameters that are necessary to be sent to the Kodika Server or the API in order to parameterize the request.
Examples
- Login User, has two request parameters,
email
and thepassword
. - Search/Display multiple Records, have various parameters in order to filter and order the server Data Records.
- An External API that returns the current weather could have a city and the date-time as request parameters.
How to connect them
To assign a value to a Request Parameter, you have to press on the + and select one of the following options.
Tip: You can check the Bind Dynamic Parameters section or press on each option to navigate to its help section.
Static Value
Static Value is to assign a constant value to the Request Parameter.
Design Element
Design Element section lists all the design elements of your screen. The ones that can provide a value to the selected parameter will show a + button.
Note: Parameter Data type should match the Design Element’s Data type. For example, you cannot bind an Image View with a Text Parameter.
Screen Property
Screen Property section lists all the screen properties and enables you to get the parameter value from a Screen Property.
Function
Function section shows all the screen’s functions that their return type match the parameter’s Data Type.
Current User
One extra section will be visible if you have enabled the Kodika Server. The Current User section lists all the properties of the Current User and enables you to bind the value of a Current User property to the parameter.
Note: Property Data Type and Parameter Data type should match, for the + button to be displayed.
Tip: Ensure that when the parameter is requested during the application’s run, the user will be logged in, else the Datasource will fail.
Kodika Server Parameters
Each Kodika Server request has different required and optional parameters. You can find a list of all the parameters in each request type help section.
- User Data Type
- Other Server Data Types
External API
Every API Request parameter will be listed in order to bind a value to it. Datasource will automatically send the value to the API when the Datasource is called during the application’s run.