Show / Hide Table of Contents

Class NSEventData

Data related to event handlers.

Syntax

Constructors

NSEventData()

Initializes a new instance of the NSEventData class.

Introduced or updated in version: 8.5R08

Declaration
NSEventData

Methods

GetBlockExecution()

Introduced or updated in version: 8.5R08

Declaration
Bool GetBlockExecution()
Returns
Type Description
Bool

Whether the context should stop what it is doing (for example, stop saving a sale).

Examples
NSEventData thing;
Bool blockExecution = thing.GetBlockExecution();

GetException()

Introduced or updated in version: 8.5R08

Declaration
String GetException()
Returns
Type Description
String

String containing error message from handler system if it failed.

Examples
NSEventData thing;
String exception = thing.GetException();

GetInputValues()

Introduced or updated in version: 8.5R08

Declaration
Map GetInputValues()
Returns
Type Description
Map

Environment values sent to the event handler.

Examples
NSEventData thing;
Map inputValues = thing.GetInputValues();

GetMessage()

Introduced or updated in version: 8.5R08

Declaration
String GetMessage()
Returns
Type Description
String

A message to be presented to the user.

Examples
NSEventData thing;
String message = thing.GetMessage();

GetNavigateTo()

Introduced or updated in version: 8.5R08

Declaration
String GetNavigateTo()
Returns
Type Description
String

Where the context should navigate afterwards.

Examples
NSEventData thing;
String navigateTo = thing.GetNavigateTo();

GetOutputValues()

Introduced or updated in version: 8.5R08

Declaration
Map GetOutputValues()
Returns
Type Description
Map

Values sent back to the environment from the event handler.

Examples
NSEventData thing;
Map outputValues = thing.GetOutputValues();

GetStateValues()

Introduced or updated in version: 8.5R08

Declaration
Map GetStateValues()
Returns
Type Description
Map

Values kept between event handlers.

Examples
NSEventData thing;
Map stateValues = thing.GetStateValues();

GetType()

Introduced or updated in version: 8.5R08

Declaration
Integer GetType()
Returns
Type Description
Integer

The type of event we are triggered by. See EventHandlerType

Examples
NSEventData thing;
Integer type = thing.GetType();

SetBlockExecution(Bool)

Introduced or updated in version: 8.5R08

Declaration
Void SetBlockExecution(Bool blockExecution)
Parameters
Type Name Description
Bool blockExecution

Whether the context should stop what it is doing (for example, stop saving a sale).

Returns
Type Description
Void
Examples
NSEventData thing;
Bool blockExecution;
thing.SetBlockExecution(blockExecution);

SetException(String)

Introduced or updated in version: 8.5R08

Declaration
Void SetException(String exception)
Parameters
Type Name Description
String exception

String containing error message from handler system if it failed.

Returns
Type Description
Void
Examples
NSEventData thing;
String exception;
thing.SetException(exception);

SetInputValues(Map)

Introduced or updated in version: 8.5R08

Declaration
Void SetInputValues(Map inputValues)
Parameters
Type Name Description
Map inputValues

Environment values sent to the event handler.

Returns
Type Description
Void
Examples
NSEventData thing;
Map inputValues;
thing.SetInputValues(inputValues);

SetMessage(String)

Introduced or updated in version: 8.5R08

Declaration
Void SetMessage(String message)
Parameters
Type Name Description
String message

A message to be presented to the user.

Returns
Type Description
Void
Examples
NSEventData thing;
String message;
thing.SetMessage(message);

SetNavigateTo(String)

Introduced or updated in version: 8.5R08

Declaration
Void SetNavigateTo(String navigateTo)
Parameters
Type Name Description
String navigateTo

Where the context should navigate afterwards.

Returns
Type Description
Void
Examples
NSEventData thing;
String navigateTo;
thing.SetNavigateTo(navigateTo);

SetOutputValues(Map)

Introduced or updated in version: 8.5R08

Declaration
Void SetOutputValues(Map outputValues)
Parameters
Type Name Description
Map outputValues

Values sent back to the environment from the event handler.

Returns
Type Description
Void
Examples
NSEventData thing;
Map outputValues;
thing.SetOutputValues(outputValues);

SetStateValues(Map)

Introduced or updated in version: 8.5R08

Declaration
Void SetStateValues(Map stateValues)
Parameters
Type Name Description
Map stateValues

Values kept between event handlers.

Returns
Type Description
Void
Examples
NSEventData thing;
Map stateValues;
thing.SetStateValues(stateValues);

SetType(Integer)

Introduced or updated in version: 8.5R08

Declaration
Void SetType(Integer type)
Parameters
Type Name Description
Integer type

The type of event we are triggered by. See EventHandlerType.

Returns
Type Description
Void
Examples
NSEventData thing;
Integer type;
thing.SetType(type);
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top