Salesforce

SetWindowFocus (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

SetWindowFocus (Magic xpa 4.x)

Passes the focus to another window.

Syntax:

SetWindowFocus (Window Name)

Parameters:

Window Name: an alpha string

Returns:

Logical (exists or does not exist)

Example:

SetWindowFocus ('Customer Transaction')

Note:

During runtime, if the window does not exist (the name does not exist or the name is blank or Null), focus will remain on the current window and the function will return False.

If the function is used on Magic xpa windows, the window name is the same as the form name.

In Online forms, the function only works on forms set with the Show in window menu property set to Yes.

Platform specific:

This function is not supported for mobile devices.

Exceptions:

This function is not supported in Rich Client and Web Client tasks.

See also:

The Online Samples project (program TF06)

Since version: 2.3

Reference
Attachment 
Attachment