Show TOC

Procedure documentationCreating a Service Execution Link Locate this document in the navigation structure

 

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.

Procedure

  1. In the Palette, from the Connection section, choose Link.

  2. Click on the required view.

  3. 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:

          1. Click Next.

          2. Select either a model class property or an entire model class; provide a name to execute the selected model class.

          3. Click Next.

          4. Choose a required editor type from the Editor Type column.

          5. Choose Finish.

        • If you have selected the Context option, follow the steps below to complete the wizard:

          1. Click Next.

          2. Select either a model class property or an entire model class; provide a name to execute the selected model class.

          3. Click Next.

          4. Map the controller Context Attribute to provide input to the Request Model Class.

          5. Click Next.

          6. Choose Finish.

Note Note

You cannot create more than one link between a View and a Request Model Class.

End of the note.