Bind Dynamic Parameters
There are cases where the value of a parameter is not known during the development, but it changes during the applications’ runtime(when your users run the app).
Some examples are:
- Current User Record Id: Based on the current Authenticated user.
- Most popular Post: Needs to be calculated the moment that the Posts are requested.
- Navigate to Post Details Screen after List selection: After your user press on a Post in a List View, you will need to navigate to this specific post. You will need to bind the Post Record Id to the Post Details Screen.
- Login Parameters: During login or register, you need to bind the Text Fields’ values to the Datasource for the email and password values to be sent to the server.
Bind Options
In Kodika, you can bind a dynamic parameter with one of the following ways:
- Design Element: For example, get the value from the text of a Label or the image of an Image View.
- Static/Specific value: The parameter will always have the same constant value each time used.
- List/Grid Selected Item: The parameter will take the value from the selected Cell.
- Current User: Parameter will contain values for the current user, if a user is logged in.
- Function: A Function will be executed and the parameter will have the value of the function’s return argument.
Where to bind?
You can use the bind dynamic parameter feature in:
- Event Actions: Change the value passed to an Event Action.
- Datasource Parameter: Change the value passed to the Kodika Server or the External API Request.