Salesforce

SetContextFocus (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

SetContextFocus (Magic xpa 3.x)

Sets the focus on the current window of a given context.

Syntax:

SetContextFocus (context name)

Parameters:

context name: A string value representing the context name.

Returns:

True if the context exists and the focus is switched to that context; otherwise it returns False.

Example:

SetContextFocus ('Property Sheet') – will set the focus on the current window of the context that is named 'Property Sheet'.

Note:

If the context exists, the focus will be switched to the current program of the running context.

If the focus cannot be set, for example, due to another context opening a modal window, the function will fail.

If the context program has no window, setting the focus will seem as if the current window is being left and no other window is in focus.

When the context exists, the function always returns True.

If the context does not exist, the focus will not be modified and the function will return False.

Exceptions:

This function is not supported for Rich Client tasks.

See also:

The Online Samples project (program MT06)

Reference
Attachment 
Attachment