You need to create a service execution link to facilitate:
Input data flow from a View to a Request Model Class
Triggering of service execution corresponding to the Request Model Class
The service execution link is created between a View and a Request Model Class.
In the Palette, from the Connection section, choose Link.
Click on the required view.
Drag the mouse to the Request Model Class node of an appropriate model.
The Model Class Execution wizard is displayed.
If the Request Model Class does not require any input, the Model Class Execution wizard provides the following options to execute a service:
Button: Choose this option to create a button on the selected view to execute a service
View Initialization: Choose this option to execute a service when the view is loaded at runtime
If the Request Model Class requires an input, the Model Class Execution: Input Details window provides the following options to execute a service:
Form: Choose this option to create a form–based input
Table: Choose this option to create a table–based input
Context: Choose this option to generate code in the view controller for mapping the created context to the existing context
If you have selected a Form or a Table option, follow the steps below to complete the wizard:
Click Next.
Select either a model class property or an entire model class; provide a name to execute the selected model class.
Click Next.
Choose a required editor type from the Editor Type column.
Choose Finish.
If you have selected the Context option, follow the steps below to complete the wizard:
Click Next.
Select either a model class property or an entire model class; provide a name to execute the selected model class.
Click Next.
Map the controller Context Attribute to provide input to the Request Model Class.
Click Next.
Choose Finish.
Note
You cannot create more than one link between a View and a Request Model Class.