Creating a serviceRequest in the UI File

To create a serviceRequest in the UI, follow these steps:

1. Either:

Right click:

  • In the UI file

  • In the Nexaweb Data perspective

  • On a table, tree, tree-table, listBox or comboBox component

and select New > Service Request

Select Tools > Service Request

 The Create Service Request wizard starts.

2. Complete the Create ServiceRequest dialog as follows:

image\img00285.gif

Select location of the service request:

Click in the appropriate radio button to select:

- Embedded Service Request (Client Only)

- Service Request (Client and Server)

Select the type of service request:

Click on the type of service request to create:

- REST Web Service

- SOAP Web Service

- Data Base Service

 

 Click Next.

 The appropriate dialog appears for whichever type of service request you selected.

 See the following sections to create the various types of service requests.

 

 

image\img00286.gif

DataRequestID: Click the arrow to select the ID of an existing dataRequestDefinition ID, or click New to specify the server-side information for this serviceRequest. For more information on creating a new dataRequestDefinition, see Specifying Server-side Information for a serverRequest.

ID: Specifies an ID for this serviceRequest. Nexaweb Studio automatically creates an ID of serviceRequest with a numbered suffix incremented by one for each additional serviceRequest that you create, or you can specify your own.

onFailure\onSuccess: Optionally, specify an MCO or Macro to run when the request fails or succeeds. Click Advanced to create one. For more information on creating an event, see Connecting Business Logic to the User Interface.

Target: Specify an existing document data source through which you can bind this data to the UI, or click New to create one. Nexaweb Studio copies the data from the data base to the document data source for use in the UI. For more information on creating a document data source, see Creating a Data Source.

Optional Arguments: Click Add to specify a parameter for this serviceRequest. Specify the parameter name in the Name field and a value for this parameter in the Value field.

3. Click Finish.
Nexaweb Studio adds the serviceRequest to the UI file and disp
lays the name of this serviceRequest under the Service Requests folder in the Data view.