ftos.context.response.setData

IMPORTANT!  
Starting with v24.3.0, this is renamed from setData to ftos.context.response.setData.

Passes a JSON object from a server automation script (triggered by a callAction function) to the result parameter of the client-side callback function. The JSON object is attached to the <result parameter name>.UIResult.Data property.

ftos.context.response.setData is compatible with callAction, callActionByName, callActionAsync, and callActionByNameAsync functions.

This is a routes method for business service components.

Syntax

Copy
function ftos.context.response.setData(dataSet: any): void
 
Parameter Description
dataSet JSON object containing key – value pairs for the data set you wish to pass to the client-side callback function.

Examples