Opens an info box, lookup window, related window,
secondary window or dialog of a specified class.
This method is generated for
you when you drag-and-drop a window class from a Task Modeler
catalog onto the Script box in the Object Activator.
Syntax
<window class name> [( ? [, ? ...] )].Window.Create()
Parameters
Window class name
Name of the window class you drag-and-drop from the catalog to
the Script box in the Object Activator. It is generated
automatically.
[( ? [, ? ...] )]
Question marks are placeholders for creation arguments in the
call. They depend on whether you have defined properties for the
window class you are opening. For each user-defined property with
an Argument Position in the window, a placeholder appears together
with a subnode in the Script tree where you can specify the
value(s) to be passed to the opening window.
Example: no parameter
Customers.Window.Create()
In this case, you can also use
WindowCreate method and the syntax will be:
WindowCreate(Customers)
Example 1 : with creation arguments
Search_Results(Variables.esd_date_1(),Variables.esd_number_1()).Window.Create()
Example 2: with creation arguments
SearchDialog( Self(), query.destination(), query.family_name() )
Window.Create()
Object
Window.
NOTE:
On a dialog, you cannot use the Create() method to call a
related or lookup window. Instead, to call a lookup window from a
dialog, use the Related Column property of a Text Box object.
|