In this article:

Features of Input Parameters of SAP Data Source Resource

Features of Input Parameters of JSON Data Source Resource

Features of Input Parameters of Foresight Data Source Resource

Resource Parameters

Input parameters can be used to get resource data slice. Partial data loading reduces timeout on data request from data source. To specify input parameters in data source resource requests, specify values of parameters available after resource import. When values of parameters are specified, only the data corresponding to the specified data request conditions is selected from the resource.

Table resource input parameters are divided into two types: scalar and table.

NOTE. Setup of default values is available only for scalar values of parameters. An empty table is a default value for table values of parameters.

Resource's input parameters can be added via requests from a mobile device or in administrator console.

IMPORTANT. To integrate with table data sources, input parameters must satisfy the conditions.

Determine a method for adding input parameters using mobile application status in the drop-down list of the Mobile Application State column:

NOTE. Parameter value is set only on data request. The request must contains parameter value to avoid errors.

NOTE. Parameter data type in the mobile platform database, source data type in the data source, and parameter name cannot be changed.

Set up caching if required and click the Save button. The resource is added to the list of data source resources.

Features of Input Parameters of SAP Data Source Resource

Transfer of empty values (null, "null" or "") for input parameters of SAP data source resource differs depending on the version of Foresight Mobile Platform:

TIP. It is recommended to use Foresight Mobile Platform 25.03 or later to ensure correct sending of empty values of input parameters to SAP data source.

Mobile platform server interacts with SAP data source based on a strict dependency on data type and its value according to the rules:

Empty values are not sent to SAP data source.

NOTE. The "Null", "NULL", "nUlL" values and similar are automatically converted to lower case "null" by mobile platform server. If the "null" value is considered as non-empty for the data type, it is sent to SAP data source in the original form. For example, if mobile platform server gets a parameter with the RAWSTRING data type and the "Null" value, it is converted to the "null" value for further check. In this case, "null" is considered as non-empty for the RAWSTRING data type that is why mobile platform server sends "Null" in the original form to SAP data source.

The example of handling empty values of scalar input parameters

Example of handling empty values of table input parameters

Features of Input Parameters of JSON Data Source Resource

When editing JSON data source resource, set input parameters manually:

To add a set of parameters:

  1. Enter parameter name in the box in the Parameter Name column.

  2. Select mobile application status in the drop-down list of the Mobile Application Status column.

  3. Set the parameter value in the box in the Value column depending on the selected mobile application status.

NOTE. The box is available if the Unavailable, Variable, or Function mobile application status is set.

  1. If required, click the Add button to add the next parameter or repeat the previous steps.

  2. Click the Save button.

After executing the operations the set of parameters is added.

To edit the parameter, change contents of table fields and click the Save button.

To delete the parameter from the table, click the Delete button next to the parameter.

Features of Input Parameters of Foresight Data Source Resource

When data of Foresight data source resource is cached, the set of resource input parameters depends on object type:

NOTE. Parameters are set from administrator console. The group of elements and dimension elements selection are set via a mobile device using API request.

NOTE. Parameter and groups of elements are set from administrator console. Attributes are set via a mobile device using API request.

See also:

Import of Data Source Resources | Cache Control