shellExec

Opens a file on the front-end platform with the program associated to the file extension.

Syntax

ui.Interface.frontCall("standard", "shellExec",
  [document, action], [result])
  1. document - The document file to be opened.
  2. action - (optional, Windows™ Only!) The action to perform, related to the way the file type is registered in Windows Registry.
  3. result - Holds the execution result (TRUE=success, FALSE=error).

Usage

The "shellExec" front call opens a file on the front-end platform with the program associated to the file extension.

This front call is mainly designed for the Genero Desktop Client on Windows platforms.

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, use the launchURL front call instead, especially if you want to use both the Genero Desktop Client (GDC) and the Genero Web Client (GWC) front-ends.