InvokeDialog Method (Python)

Invokes a dialog and returns the syntax generated from that dialog, if any.

Syntax

syntax = SpssOutputUI.InvokeDialog(menuItemPath,desktopParent)

Parameters

menuItemPath. Menu or menu item with path of the dialog to invoke. See below for detailed description.

desktopParent. True specifies that the dialog is parented off the desktop. False specifies that the dialog is parented off an IBM® SPSS® Statistics window.

Note: For release 19.0.0.2 and higher, the bSync parameter (available in previous releases) is deprecated. The InvokeDialog method always runs synchronously, meaning that the scripting process waits until the dialog has been dismissed. Older scripts containing the bSync parameter will continue to function in release 19.0.0.2 and higher, but the value of the parameter will be ignored.

Specifying The Menu Item Path

The value of the menuItemPath parameter is a string specifying the menu path to the desired dialog--for example "analyze>survival>life tables". The greater-than sign (>) is used to separate a menu, its submenus and the menu item. The menu string must correspond exactly to the text on the menus, submenus, and menu items, and is language specific.