User interface / Front end calls |
This table shows the built-in functions implemented by the front ends in the "standard" module. Additional modules and functions are available for front-ends, but are specific to the front-end type. Refer to the front-end documentation for more details.
The names of front-end functions and pre-defined parameters are case-sensitive.
Function Name | Description | GDC CLIENT | HTML5 CLIENT |
---|---|---|---|
execute | Executes a command on the workstation with or
without waiting. Parameters:
Returns:
|
Yes | No |
feinfo | Returns front end properties like the front end type, the workstation operating system type. Parameters:
Returns:
See Table 2 for property names and descriptions |
Yes | Yes |
shellexec | Opens a file on the workstation with the program
associated to the file extension. Parameters:
Windows™ Only!: - the action to perform, related to the way the file type is registered in Windows Registry (Optional). Returns:
Important: Under X11 Systems, this uses xdg-open,
which needs to be installed and configured on your system. Kfmclient
will be used as a workaround when xdg-open is not available.
Tip: In order to view a document (like a PDF for example), if
that document can be displayed by web browsers, we recommend you
to use the launchurl function instead. Especially if you
want to use the both GDC and the GWC front-ends.
|
Yes | No |
launchurl | Opens an url with the default url handler - typically
your default browser (http urls), or your default mailer (mailto urls). Parameters:
Supported schemes depend on your system configuration. |
Yes | Yes |
getenv | Returns an environment variable set in the user
session on the front end workstation. Parameters:
Returns:
|
Yes | No |
getwindowid | Returns the local window manager identifier of
the window corresponding to the AUI window id passed as parameter. Parameters:
Returns:
|
Yes | No |
opendir | Displays a file dialog window to get a directory
path on the local file system. Parameters:
Returns:
|
Yes | No |
openfile | Displays a file dialog window to get a path to
open a file on the local file system. Parameters:
Returns:
|
Yes | No |
savefile | Displays a file dialog window to get a path to
save a file on the local file system. Parameters:
Returns:
|
Yes | No |
cbclear | Clears the content of the clipboard. Parameters: none. Returns:
|
Yes | No |
cbset | Set the content of the clipboard. Parameters:
Returns:
|
Yes | No |
cbget | Gets the content of the clipboard. Parameters: none. Returns:
|
Yes | No |
cbadd | Adds to the content of the clipboard. Parameters:
Returns:
|
Yes | No |
cbpaste | Pastes the content of the clipboard to the current
field. Parameters: none. Returns:
|
Yes | No |
mdclose | Unloads a DLL or shared library module. Parameters:
Returns:
|
Yes | No |
setreportfont | Override the font used for report generation for
the current application. You can simply copy/paste the font string
from the "Report To Printer" font panel from GDC Monitor. An empty
or null string reset to the default behavior. Parameter:
|
Yes | No |
setreportprinter | Override the printer configuration used for report
generation for the current application. You can simply copy/paste
the printer string from the "Report To Printer" printer panel from
GDC Monitor. An empty or null string reset to the default behavior. Parameter:
|
Yes | No |
setwebcomponentpath | Defines the base path where Web
Components are located, when GDC is directly connected to the
runtime system. This is ignored when GDC is connected to the GAS. Parameter:
Returns:
|
Yes | No |
hardcopy | It allows you to print a screenshot of the current window. Parameters:
Returns:
|
Yes | No |
Property name | Description |
---|---|
fename | The name of the front end. |
fepath | The installation directory of the front-end executable. |
ostype | The operating system type (Windows , OSX, HPUX, AIX®, SOLARIS, LINUX). |
osversion | The version of the operating system. |
numscreens | Number of screens available. |
screenresolution | Returns the screen resolution (with optional screen number parameter). |
ip | Returns the ip address of the interface used for the connection. |
datadirectory | Returns the directory name that can be used for temporary file transfer. This directory is cleaned at front-end startup and end, and is common to all front-end instances. |
isActiveX | Returns the 1 if front-end runs in active x mode (GDC specific). |
target | Returns platform target code name (for instance: "w32vc80" for Win32). |
outputmap | Returns the GWC application output map of the current application. This option is only supported with a GAS >= 2.22.00. |