This section describes how to create and use shortcuts.
Topics:
Using shortcuts enables you to avoid repetitive coding of HTML or PL/SQL functions. You can use a shortcut to define a page control such as a button, HTML text, a PL/SQL procedure, or HTML. Once defined, you can invoke a shortcut using specific syntax unique to the location in which the shortcut is used. Shortcuts can be referenced many times, thus reducing code redundancy.
You can use shortcut within the following locations:
The Region Source attribute of regions defined as HTML Text (with shortcuts). See "About Regions."
Region Header and Footer Text attribute. See "Specifying a Region Header and Footer."
Item Label attributes, Pre Element Text, Post Element Text, and Default Value attribute.
Region Templates attributes. See "Creating Custom Themes."
This section describes the types of shorcut supported by Oracle Application Express.
Topics:
When you create a shortcut you select a shortcut type. Oracle Application Express supports the following types of shortcuts:
Use this type of shortcut to reference a shortcut inside of a JavaScript literal string. This shortcut defines a text string. When the shortcut is referenced, it escapes the single quotation marks required for JavaScript.
Use this type of shortcut to reference a translatable message at runtime. Since this shortcut does not have a shortcut body, the name of the shortcut must match the corresponding message name. At runtime, the name of the shortcut expands to the text of the translatable message for the current language.
Before you can incorporate a shortcut in your application, you must define it and add it to the Shortcuts repository. This section describes how to define and reference a shortcut.
Once you create a shortcut, you can alter it by editing attributes on the Edit Shortcut page.
To edit an existing shortcut:
See Also: