$k. ActionResponse

new $k.ActionResponse()

Methods

setData(data) → {$k.ActionResponse}

Data function

Parameters:
NameTypeDescription
dataobject
Since
  • 4.1.0
Returns:

This object.

Type: 
$k.ActionResponse

setFollowup(followup) → {$k.ActionResponse}

Followup function

Parameters:
NameTypeDescription
followupstring
Since
  • 4.1.0
Returns:

This object.

Type: 
$k.ActionResponse

setGlobalContext(globalContext) → {$k.ActionResponse}

Set global context object

Parameters:
NameTypeDescription
globalContextArray.<object>
Since
  • 4.1.0
Deprecated
  • This function is deprecated and might be removed in future releases
Returns:

This object.

Type: 
$k.ActionResponse

setNotification(message, typeopt) → {$k.ActionResponse}

Notification function

Only supported in the following application environment(s): View-Configuration-Mapper

Parameters:
NameTypeAttributesDescription
messagestring
typestring<optional>

Type of the notification that determines how it is presented in the web UI. Possible values are: 'success', 'info', 'warning ', and error'.

Since
  • 4.1.0
Returns:

This object.

Type: 
$k.ActionResponse

setReceiverRole(receiverRole) → {$k.ActionResponse}

the view with the given role will receive the response

Parameters:
NameTypeDescription
receiverRolestring
Since
  • 5.4.0
Returns:

This object.

Type: 
$k.ActionResponse

setSession(session) → {$k.ActionResponse}

Set the session

Parameters:
NameTypeDescription
sessionobject

Either a JSON object or a Session

Since
  • 5.2.0
Returns:

This object.

Type: 
$k.ActionResponse

toJSON() → {object}

Since
  • 4.1.0
Deprecated
  • This function is deprecated and might be removed in future releases
Returns:
Type: 
object