A serviceRequest uses information specified on the server-side in the nexaweb-data.xml file to access external data. You specify information for a serverRequest to use on the server side in a dataRequestDefinition. The dataRequestDefinition either includes an SQL statement to access the external data or references an SQL statement specified in the nexaweb-sql.xml file.
Therefore, creating a serviceRequest on the server requires the following major steps:
Specifying the information to process the request on the server
Creating a serviceRequest in the UI file
You can create the information to implement a serviceRequest on the server as follows:
|
Method |
Description |
Use To |
|
Drag and drop table or column from the Data Source Explorer view |
Drag and drop a table or column from the Data Source Explorer view onto the serviceRequests folder in the Data view. This launches the Create Database Connection wizard and then the Create SQL Service Request wizard. |
Creates:
You then create a serviceRequest in the UI file that references the dataRequestDefinition. |
|
|
Drag and drop a table or column from the Data Source Explorer view onto a table in the UI file. This launches the Create sqlSelect Statement wizard. |
Creates an sqlSelect statement to use as a serviceResourceReference in a dataRequestDefinition; does not prompt you to create a database connection. |
|
Right click on table or column in the Data Source Explorer view |
Right click on the table or column in the Data Source Explorer view that contains the data to use in the UI and select Nexaweb > Create SQL Service Request. This launches the Create SQL Service Request wizard with connection information automatically completed. |
Prompts you to select what type of SQL statement to create to use as a serviceResourceReference in a dataRequestDefinition. You then create a serviceRequest in the UI file that references the dataRequestDefinition. |
|
|
Right click on Service Requests folder in the Data view and select Create Service Request. |
Creates an sqlSelect statement to use as a serviceResourceReference in a dataRequestDefinition; does not prompt you to create a database connection. |