Class: ActionResult

$k. ActionResult

new $k.ActionResult()

Methods

activatePanel(panelView) : $k.ActionResult

Function to set the panel of the given view as activatedResult

Only supported in the following application environment(s): View configuration mapper

Name Type Description
panelView $k.PanelView
Since:
  • 5.4.0
Throws:
Type Description
$k.exception.ObjectNotFound

If the panel cannot be found

Returns:
Type Description
$k.ActionResult

activatePanelConfiguration(panelConfiguration) : $k.ActionResult

Function to set the panel of the given view as activatedResult

Only supported in the following application environment(s): View configuration mapper

Name Type Description
panelConfiguration $k.PanelConfiguration
Since:
  • 5.4.0
Throws:
Type Description
$k.exception.ObjectNotFound

If the panel cannot be found

Returns:
Type Description
$k.ActionResult

element() : $k.SemanticElement

Function to get the result element

Only supported in the following application environment(s): View configuration mapper

Since:
  • 5.4.0
Returns:
Type Description
$k.SemanticElement

model() : object

Function to access the model result of the action

Only supported in the following application environment(s): View configuration mapper

Since:
  • 5.4.0
Returns:
Type Description
object SemanticElement or TopicCollection

setElement(element) : $k.ActionResult

deprecated: Function to set an element as result - use setModel() instead

Only supported in the following application environment(s): View configuration mapper

Name Type Description
element $k.SemanticElement
Since:
  • 5.4.0
Deprecated
  • This function is deprecated and might be removed in future releases
    Returns:
    Type Description
    $k.ActionResult

    setModel(model) : $k.ActionResult

    Function to set the model as result of the action

    Only supported in the following application environment(s): View configuration mapper

    Name Type Description
    model object

    SemanticElement or SemanticElementCollection

    Since:
    • 5.4.0
    Returns:
    Type Description
    $k.ActionResult

    setRecomputePanel(recomputePanel) : $k.ActionResult

    Use this function to allow or suppress recomputation of views on the action panel. By default, recomputation is allowed.

    Only supported in the following application environment(s): View configuration mapper

    Name Type Description
    recomputePanel boolean
    Since:
    • 5.4.0
    Returns:
    Type Description
    $k.ActionResult