Breyta

Deila með


TestPage.RunPageBackgroundTask(Integer [, var Dictionary of [Text, Text]] [, Boolean]) Method

Version: Available or changed with runtime version 4.0.

Runs the page background task codeunit in a child session and waits for its completion. Note that page background task completion triggers are not invoked by default; see parameter "RunCompletionTriggers".

Syntax

Results :=   TestPage.RunPageBackgroundTask(CodeunitId: Integer [, var Parameters: Dictionary of [Text, Text]] [, RunCompletionTriggers: Boolean])

Parameters

TestPage
 Type: TestPage
An instance of the TestPage data type.

CodeunitId
 Type: Integer
Specifies the ID of the codeunit to run.

[Optional] Parameters
 Type: Dictionary of [Text, Text]
Specifies a collection of keys and values that are passed to the OnRun trigger of the codeunit that runs when the page background task session is started.

[Optional] RunCompletionTriggers
 Type: Boolean
Runs the completion triggers after the completion of the code unit. Default value is false.

Return Value

Results
 Type: Dictionary of [Text, Text]
The dictionary of results for the page background task.

TestPage Data Type
Get Started with AL
Developing Extensions