Scripting environment and terminology

This section provides an overview of the UI Designer and Custom Page Designer scripting environments. It also explains some terms that are used with the products.

Terminology

These terms are used in the script windows of the designers.

Term Meaning
Objects The form and custom page objects that you can customize with scripting.
Events

Most designer objects have events associated with them. Many of the available events are typical JavaScript events, including OnClick, OnBlur, and OnFocus; others are specific to Lawson objects.

See "Events" for a list of events that are associated with each object.

Field Name Field name typically refers to transactional entities on Lawson application forms and is used in this context within the UI Designer. Sometimes called the "f-number," a field name most often takes the form: '_f' followed by a number. If part of a detail area, the field name would include row information: '_f23r0'.
Objects Viewer A tool built into the scripting interface that provides developers with information about the object model of Lawson Portal.

UI Designer scripting environment

The UI Designer script window is a JavaScript development environment. These components are available from the environment:

  • Text editing tool that provides auto-indenting

  • The ability to select objects from a form and associate them with events. When you make certain selections within the environment, a JavaScript function stub appears automatically in the script window.

The right pane of the window displays data elements or functions that are available on the form. The All Elements dropdown selection displays data objects and other interface objects that show on the form, such as buttons and tabs. (All Elements does not display functions.)

The following form clip shows a close-up view of the objects display pane.

The Data Objects view shows the transaction fields (but not field names). All data objects, including those that are hidden on the form are available. For custom forms, any objects that you have created or renamed through the UI Designer are available when you select All Objects. The standard data elements for the form are displayed when you select Data Objects.

The Functions view shows the methods that are available through the form object (lawForm).

More detailed information about each data object and function can be found in the Objects Viewer. See "Objects Viewer".