APEX shortcut variables are best in dynamic use in Javascript code. We can fetch data from database or can use any hard coded text.
Under the shared components we have pretty awesome feature of APEX shortcut.
We have several source type available to populate the shortcut variables.
- PL/SQl Function body
- HTML Text
- HTML Text with Escaped Special Chars
- Images
- Text with JavaScript Escaped Special Chars
- Message
- Message with JavaScript Escaped Single Quotes
PL/SQL function can be followed by
Create or replace function get_date
return date
as
begin
return sysdate;
end get_date;
Two types of common shortcuts can be like below.
1). HTML
2). PL/SQL
Scope declaration
var plsql_msg = '"PLSQL_MSG"';
var html_msg = '"HTML_MSG"';
These variables can be used in JavaScript for multiple purposes.
alert(html_msg);
alert(plsql_msg);
No comments:
Post a Comment
Please do not add any spam links or abusive comments.