ModalDialog Add-on

enaio® editor 11.10 »

The ModalDialog add-on includes freely configurable modal dialogs. These modal dialogs allow the user to implement a wide variety of business processes and scenarios as it flexibly integrates an additional business logic used to interact with enaio® client and enaio® webclient.

From a technical perspective, modal dialogs behave like a web page in a WebControl/iFrame built on HTML5, JavaScript, and CSS. The integration can access enaio® services and project-specific services in order to analyze, structure, and process index data and workflow data.

The 'MDA' license is required for the ModalDialog add-on.

We offer the ModalDialog API to facilitate communication between the modal dialog and enaio®. The ModalDialog API combines the relevant APIs of enaio® client and enaio® webclient to enable joint implementation. Special events and methods arrange for the exchange of information and offer various interactions.

The ModalDialog add-on can be integrated into (workflow) forms.

  • enaio® client

    • The ModalDialog add-on can be assigned to a text field. URL, localizable window titles, and localizable tooltips are specified via EXTRA entries.

      This integration can only edit the data in the AddOn field.

    • The ModalDialog add-on can be called via a script. This could be done, for example, via an OnClickItem event by clicking a button on the form.

      With this integration, all fields on the form can be edited.

  • enaio® webclient

    • The ModalDialog add-on can be called via a script.

      Assignments to a text field are not yet supported by enaio® webclient.

The ModalDialog API documentation also contains a demo project that you can integrate into development or test installations to test and analyze ModalDialog add-on functions.

The ModalDialog add-on is not yet available for enaio® mobile and enaio® webclient on mobile devices.

Integration as a Text Field Add-on

Use the file selection dialog to select the axaddbrowserdlg.dll file located in the enaio® editor installation directory and the administration components.

The properties of the EXTRA entries are in JSON format.

The entries in the configuration field are structured as follows:

EXTRA00

URL

EXTRA01 Window title. Can be localized into the languages of the object definition.
EXTRA02 Tooltip. Can be localized into the languages of the object definition. Optional.
EXTRA03 Icon ID of the icon of the add-on button. Optional.

Example:

EXTRA00="https://optimalsystems.github.io/enaio-webclient-demo-modal-dialog-addon/index.html"
EXTRA01={"captions": [{"langid": "de_DE","value": "API-Test AddOn"},{"langid": "en_US","value": "API Test AddOn "},{"langid": "fr_FR","value": "API Test AddOn "}]}
EXTRA02={"tooltips": [{"langid": "de_DE","value": "Test AddOn"},{"langid": "en_US","value": " Test AddOn "},{"langid": "fr_FR","value": " Test AddOn "}]}
EXTRA03=1073742352 

Integration as an 'OnClickItem' Event for enaio® client

In enaio® editor-for-events, the script is assigned to a button as an 'OnClickItem' client event.

Example:

Dim ret : ret = 0
' URL to addons html/JS implementation
OXHelp.WriteProfString "DATA", "EXTRA00" , "https://optimalsystems.github.io/enaio-webclient-demo-modal-dialog-addon/index.html", osFile
' Title of addons dialog window, multilingual window titles can be passed in JSON format
OXHelp.WriteProfString "DATA", "EXTRA01" , " ModalDialog API Test Addon ", osFile
ret = Application.OpenModalBrowserDialog(osFile)
resultcode = ret
writetofile

Integration as an 'OnClickItem' Event for enaio® webclient

In enaio® editor-for-events, the script is assigned to a button as an 'OnClickItem' web client event.

formHelper.openModalDialog("https://optimalsystems.github.io/enaio-webclient-demo-modal-dialog-addon/index.html", " ModalDialog API Test Addon ", 1000, 1000);