Global Data Service request parameters
| Field | Description |
|---|---|
PROD |
Required. The data area or product line name. The default value is the user’s ProductLine attribute in the Lawson Resource Management repository.
Note: If the product line or data area is set in the Resource Management system for the user making the query, this parameter does not have to be included in the query.
|
FILE |
Required. The file name. |
FIELD |
The fields to be displayed, separated by a semicolon. ALL specifies every field in the file. If no fields are specified, this parameter defaults to first 10 fields in the file, or all the fields, whichever is less. These values could be appended to the end of a field name:
|
MAX |
The maximum number of records to return. Queries with a large For XML, the default is 25 records. For CSV, it depends on the value specified in |
INDEX |
The name of the index to use for sorting. The default is the primary index. |
KEY |
The key fields to be used. The keys correspond to the fields in the index being used. Keys can be:
Using the key above would return all records where the value of the first field of the index was 1, the value of the second field of the index was between 3 and 7 (inclusive), and the value of the third index field was a, b, c, or d. If the key value contains spaces, substitute a plus sign (+) for each space. For a key value of all spaces, use the word |
BEGIN |
Specify the beginning record keys. Usage is similar to that of the If
|
SELECT |
Specify a selection expression used as criteria for retrieving records. This parameter functions similar to a SQL The The |
SORTASC |
The list of field names, separated by semicolons, to sort in ascending order. Performance considerations when sorting data |
SORTDESC |
The list of field names, separated by semicolons, to sort in descending order. Performance considerations when sorting data |
COND |
Names of database conditions to use when selecting data, separated by a semi-colon. |
The MAX parameter works in relation to the value defined in com.lawson.ios.dig.db.maxRecsQuery in iosconfig.xml. Consider these scenarios when including MAX in the call:
-
If
com.lawson.ios.dig.db.maxRecsQueryis not configured and ifMAXwas not included in the call, CSV calls have a defaultMAXof 10,000.For example, if number of records returned is more than 10,000, and
NEXT=TRUEwas not included on the call, it throwsNEXT_REQUIRED. If number of records returned is more than 10,000, andNEXT=TRUEwas included on the call, it proceeds with call to next record. -
If
com.lawson.ios.dig.db.maxRecsQueryis not configured and ifMAXwas included in the call,MAXshould never be greater than 10,000. IfMAXis greater than 10,000 and number of records returned is more than 10,000, it throwsMAX_EXCEEDED. Otherwise, it proceeds with normal operation. -
If
com.lawson.ios.dig.db.maxRecsQueryis configured and ifMAXwas not included in the call, CSV calls have a defaultMAXofcom.lawson.ios.dig.db.maxRecsQuery.MAXshould never be greater thancom.lawson.ios.dig.db.maxRecsQuery.In this example,
com.lawson.ios.dig.db.maxRecsQueryis set to 8,888.If number of records returned is more than 8,888, and
NEXT=TRUEwas not included in the call, it throwsNEXT_REQUIRED. If number of records returned is more than 8,888, andNEXT=TRUEwas included on the call, it proceeds to call the next record. -
If
com.lawson.ios.dig.db.maxRecsQueryis configured and ifMAXwas included in the call,MAXshould never be greater thancom.lawson.ios.dig.db.maxRecsQuery.In this example,
com.lawson.ios.dig.db.maxRecsQueryis set to 8,888.If
MAXis greater than 8,888 and number of records returned is more than 8,888, it throwsMAX_EXCEEDED. Otherwise, it proceeds with normal operation.