PowerServerLabel object

A PowerServerLabel system object is used to group and send multiple requests to the server in merge mode.

As suggested by the object name, this object and its functions only take effect when the application is deployed via the PowerServer project. This object and its functions will not be executed or modify how the application works in the traditional client/server environment (they will be ignored when the application is deployed via the PowerClient project or the Application project).

Properties

PowerServerLabel property

Datatype

Description

MergeEnabled

Boolean

Enables the StartMerge and EndMerge functions. The default value is true.

MaxMergeCalls

Long

The maximum number of merged requests between StartMerge and EndMerge. The default value is 100.

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.

Results[]

PowerServerResult

The result of the request merged operation.


Events

PowerServerLabel event

Occurs

Constructor

When the user object is created.

Destructor

When the user object is destroyed.


Functions

PowerServerLabel function

Datatype returned

Description

ClassName

String

Returns the name assigned to the user object.

EndMerge

Integer

Indicates the merge mode stops and requests will be submitted immediately.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service.

GetParent

PowerObject

Returns a reference to the name of the parent object.

PostEvent

Boolean

Adds an event to the end of the message queue of the user object.

StartMerge

Integer

Indicates the merge mode starts.

TriggerEvent

Integer

Sends an event to the user object and executes the script associated with the event.

TypeOf

Object

Returns the type of the user object.