Script

For all JavaScript-enabled application elements, you can access the JavaScript editor in the Properties dialog on the "Script" tab. Clicking "Edit JavaScript for Desktop" at opens the editor.

Show Menu

If you click the small arrow icon next to the " " button, a menu will appear with the following options:

  • Edit JavaScript for Desktop

  • Edit JavaScript for Mobile Devices

  • Edit JavaScript for All Devices

Open. For example, if you're writing JavaScript that applies only to mobile devices, select the "Edit JavaScript for Mobile Devices" menu.

/ Edit script call

Opens a dialog box where you can select existing JavaScript functions and assign them to an event.

Remove Script Call

Removes the currently selected mapping between the event and the script function from the list.

Changes the order in which functions are called when multiple functions are assigned to an event.

The "Events" column lists all events for the element or page that have JavaScript functions assigned to them. The "Script" column lists the JavaScript function names.

Events written in italics do not work in every context (for example, "ondblclick" does not work in a tree element).

Events written in italics work with buttons only under the conditions described below:

onaddnewrecords

All buttons with the "Add Record" action and the "Custom Table" target control.

target-onload

All buttons with the "Tooltip" or "Grouping" destination page.

target-onunload

All buttons with the "Tooltip" or "Grouping" destination page.

target-onbeforeunload

All buttons with the "Tooltip" or "Grouping" destination page.

When an application is loaded, the associated JavaScript is scanned for comments containing the string //FIXME or //TODO. Results are displayed below the workspace on the " Problems " tab. Double-clicking on a result opens the JavaScript editor. This allows you to set markers in the script.

Call for Papers

All the functions you've written in the JavaScript editor are listed here. They can be selected and assigned to an event. To do so, simply select the event you want. The function will then be executed as soon as the event specified here occurs.

Please note:

For pages, the `onunload` event was selectable. Due to optimizations in various browsers, this event is no longer supported by the respective providers. If you have enabled the event, a corresponding message will appear in the Portal Manager under the "Issues" section. As an alternative, the "onbeforeunload" event has been added to the event list. Please note that this alternative is not an exact substitute for the `onUnload` event. For more information, click here:

https://developer.mozilla.org/en-US/docs/Web/API/Window/unload_event
https://developer.chrome.com/docs/web-platform/deprecating-unload