The Snippets view lets you insert reusable programming objects into your code. The Snippets view contains several pieces of EGL code, as well as code for many other technologies. You can use the snippets provided or add your own to the Snippets view. For more information about using the Snippets view, see Snippets view.
To insert an EGL code snippet into your code, do as follows:
Following are the snippets available in EGL:
Snippet name | Description |
---|---|
setCursorFocus | A JavaScriptâ„¢ function that sets the cursor focus to a specified form field on a Web page. |
autoRedirect | A JavaScript function that tests for the presence of a session variable. If the session variable is not present, it forwards the browser to a different page. |
getClickedRowValue | An EGL function that retrieves the hyperlinked value of a clicked row in a data table. |
databaseUpdate | An EGL function that updates a single row of a relational table when passed a record from a PageHandler. |
Related concepts
Snippets view
Related tasks
Using the EGL templates with content assist
Setting the focus to a form field
Testing browsers for a session variable
Retrieving the value of a clicked row in a data table
Updating a row in a relational table