Using Shortcuts ORACLE APEX
What is a Shortcut?
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.
Shortcut Types:=
PL/SQL Function Body
 
HTML Text
 
HTML Text with Escaped Special Characters
 
 
- 
 
Text with JavaScript Escaped Single Quotes
 
 
- 
 
Message with JavaScript Escaped Special Quotes
 
 
 
Creating a Shortcut:=
- Navigate to the Shared Components page:
- On the Workspace home page, click App Builder.
 
- Select an application.
 
- On the Application home page, click Shared Components.
The Shared Components page appears.
 
 
 
- Under Other Components, select Shortcuts.
 
- Click Create.
 
- For Create Shortcut, select From Scratch and click Next.
 
- On Shortcut Attributes:
- Name - Enter the name by which the shortcut will be referenced.
 
- Type - Select a shortcut type. Options include:
- 
 
- 
 
HTML Text with Escaped Special Characters
 
 
- 
 
Text with JavaScript Escaped Single Quotes
 
 
- 
 
Message with JavaScript Escaped Special Quotes
 
 
 
 
- Shortcut - Enter the text of the shortcut. The shortcut must be less then 30,000 characters in length.
 
- Error Text - Enter the text to display if an error should occur during the processing of a shortcut.
 
- Build Option - Select a build option for this component.
 
 
- Click Create.
New shortcuts are added to the Shortcuts page (also referred to as the Shortcut repository).
 
 
Calling Shortcut in apex page:
 
 
 
0 Comments