Application DesignData Service Block: Get First Row

In a business rule designed in the Configurator, you can add a Get First Row component block to retrieve the first row in the result of a query of a JDBC data service and add the data to the data mapClosed A repository for the data for use when responding to a print request. Each data map entry is composed of a name (key) and a value..

Tip: Before you can add a component block to a business rule, you must create a component set by specifying a trigger that controls when component blocks in the component set are run.

Property Description

Data Ref

A property of the print job or the name of a data map entry where the row of data will be saved to the data map. If the data map entry does not already exist, it is created.

Tip: Unless the query is designed to retrieve a value appropriate for one of the items in the following list, it is recommended that you select Manually Entered and enter the name of a data map entry where the row of data can be saved.

You can select from the following for a data ref.

Data Service

The fully-qualified path to an existing data service in Loftware Enterprise SP.

Tip: You can use the Relative Path check box to control whether the path is represented as an absolute path or a relative path. Using a relative path may be helpful if an object is likely to be transferred to a different Loftware Enterprise SP instanceClosed A Loftware Application Server and a Loftware Database Server that are associated with each other by a Loftware Enterprise - SP License.. The check box is available to select after the object has been saved for the first time. For more information, see Relative Paths.

Use Parameters?

Whether to add parameters for use in the data service.

Note: This functionality is comparable to editing the data service in Data Services Data Services and adding parameters. However, the parameters exist only when this business rule is used to run the data service.

Tip: You can use a parameter to define the query to be run by the data service.

Tip: You can add or remove parameters by clicking Add or Remove.

Parameter Name

The name (key) of a parameter that can be used in the data service defined in Data Services Data Services. For a list of built-in parameters, see the section following this table.

Parameter Value

A print job property or the name of a data map entry to be used in the data service. Also, whether to interpret it as a literal value or as a data map entry. If the data map entry does not already exist, it is created.

You can select from the following for a data ref.

Built-in Parameters

ClosedJDBC Data Service Parameters

ClosedFile Data Service Parameters

ClosedHTTP Data Service Parameters

ClosedSOAP Web Service Data Service Parameters