- Login User, has two request parameters,
- 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.
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 is to assign a constant value to the Request Parameter.
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 section lists all the screen properties and enables you to get the parameter value from a Screen Property.
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.
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
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.