|
|
|
|
|
|
|
|
|
|
- Parameters passed to the window to open
- Window opening mode
- Limitation
- Closing a window
- Title of the window to be opened
- Application in the background: Specific case from Android 10
<Window>.OpenMobileWindow (Function) In french: <Fenêtre>.OuvreFenêtreMobile Opens a window in a mobile application. Remarks: - This function replaces <Window>.OpenChild used to open windows in a mobile application. Only the mobile feature will be presented in this documentation page. For more details, see <Window>.OpenChild.
- <Window>.OpenMobileWindow can be used in all IDEs to allow for cross-platform code. Functions or procedures that use <Window>.OpenMobileWindow can be shared between several products without generating any compilation error.
Remarks: - By default, the window retains focus once open.
- <Window>.OpenMobileWindow can also be used to pass parameters to the child window.
- In standard syntax, these parameters are passed directly.
WIN_EditOrder.OpenMobileWindow(gnOrderID)
MyMobileWindow is Window WIN_EditOrder
MyMobileWindow.OpeningOptions.Title = "Edit Order"
MyMobileWindow.OpeningParameters.OrderNumber = gnOrderID
MyMobileWindow.OpenMobileWindow()
Syntax
Opening a window (standard syntax) Hide the details
<Window>.OpenMobileWindow([<Parameter 1> [... [, <Parameter N>]]])
<Window>: Window name Name of the mobile window to open. <Parameter 1>: Type of value sent to the window (optional) First parameter to be passed to the "Global declarations" event of the window to open. This parameter is passed by value and is considered a variable global to the window. This parameter cannot be a variable of type array (arrays can only be passed by reference). <Parameter N>: Type of value sent to the window (optional) Nth parameter to be passed to the "Global declarations" event of the window to open. This parameter is passed by value and is considered a variable global to the window. This parameter cannot be a variable of type array (arrays can only be passed by reference). Subscription-exclusive new featureRemarks Parameters passed to the window to open The parameters are retrieved in the "Global declarations" event associated with the window. The first line of code of this event must correspond to the following line: PROCEDURE <Window> (<Parameter 1> [, ... [, <Parameter N>]]) where: - <Window> must correspond to the name of the window.
- <Parameter N> must correspond to the parameters expected. Note: These parameters are passed by value, not by reference.
For more details, see Window with parameters.
Window opening mode The window opens as a non-modal window: - the opened window becomes the current window.
- after the window opening, the processes following the call to <Window>.OpenMobileWindow in the parent window are run.
- the user will have the ability to click one of the parent windows of opened window.
 The controls found in the parent windows cannot be accessed by the user as long as a child window is opened.
Limitation <Window>.OpenMobileWindow must not be called in the "Initialization" event associated with the project. Closing a window A window opened with <Window>.OpenMobileWindow can be closed with Close (without parameters) from any event associated with the window or a control in the window. Title of the window to be opened By default, the window title is the one defined in the editor (in the "General" tab of the description window). To change the window title:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|