Determine the default value with an HTTP query
Via the JSON file, it is possible to determine the default value of a field via an HTTP request. There are the following possibilities:
1) Programmed Controller Endpoint
2) Dynamic API (SQL)
Instead of a value, an entire object is specified. The attributes are described below.
Controller endpoint
|
Property |
Description |
|
url |
The URL of the endpoint |
|
params |
This attribute is a list of KeyValue pairs. Here you can give the URL individual parameters. "key" contains the name of the parameter and "value" the value. |
|
requestType |
Here you can specify whether the query is a "get" or a "post" query. |
"defaultValue": { "requestType": "get", "url": "ResourceController/GetName", "params": [ { "key": "Id", "value": "42" } ]}Dynamic API
|
Eigenschaft |
Beschreibung |
|
api |
The ID(GUID) of the Dynamic API |
|
params |
This attribute is a list of Key Value pairs. Here you can give the URL individual parameters. "key" contains the name of the parameter and "value" the value. |
|
field |
Here you can specify which field from the record is to be displayed. If no field is defined, the first recognised field is taken. |
If multiple records are returned, the first one is selected.
"defaultValue": { "api": "a7dddf82-b89e-4542-b4ef-1e8af6f2942f", "params": [ { "key": "adrnr", "value": "000001" } ], "field": "city"}