← Return to the list of available actions
Category: General
Action location: Table, Variable, Button
Previous names: Returning a servlet to a variable (up to 1.0.43)
Available from version: 1.0.3
The action returns the response from the webservice and writes it to the variable after the occurrence of the event: change of the variable, change in the table or pressing the button (depending on the place where the action is assigned).
Leaving an empty conditional field is the same to setting it to "the truth".
Action location | The "Conditional execution" parameter | Action call condition |
---|---|---|
Table | Activates the action | Table update, i.e. adding, deleting or editing a row. |
Variable | Activates the action | Change the value of the variable on which the action is located |
Button | Activates the action | Pressing the button on which the action is located |
Parameter name | From version | Description | Parameter type | Default value | Field type | Comments and restrictions |
---|---|---|---|---|---|---|
Servlet path* | 1.0.3 | Servlet path, whose returned value will be saved to the variable. | Text | Editable field | Servlet must be placed in the project. The path should contain the prefix "api/" | |
Servlet parameter's name* | 1.0.3 | List of servlet parameter names | Table of text values | Editable field | ||
Servlet parameter's value* | 1.0.3 | List of servlet parameter values | Table of text values | Editable field | Parameter values are passed as text, so webservice should accept text values | |
Result variable* | 1.0.3 | Variable to which the servlet result will be saved | Variable | Editable field |
|
Parameter*- required field
The servlet in the client project should be in a package starting with com.suncode
The following servlet accepts a parameter named userName of the text type. Its result should be written to a logical variable.
@Controller @RequestMapping( "/user" ) public class UsersController { @Autowired private UserExistenceChecker checker; @RequestMapping( value = "user-exists", method = RequestMethod.GET ) public @ResponseBody Boolean getUser( @RequestParam String userName ) throws Exception { return checker.userExists( userName ); } }
1.0.3
- Adding a component
1.0.43
- Blocking the possibility of adding shares to the acceptance button
- Renaming from "Returning servlet to variable" to "Returning webservice result to variable"
1.0.57
- Update of the dynamic form
Add Comment