SlideShare a Scribd company logo
1 of 2
Download to read offline
apex_plugin: functions                                                                                                                                                                                                                           apex_plugin_util
    Returns the name attribute which has to be used for a HTML input element              Returns the AJAX identi er which has to be used for the on-demand       function escape (
    if you want that the value of the element is stored in session state when the         call of a plug-in. Note: if the plug-in doesn't have an AJAX callback     p_value in varchar2,
    page is submitted. If you have a HTML input element which returns multiple            con gured, null will be returned!                                         p_escape in boolean ) return varchar2;
    values (eg. select list with multiple="multiple") you have to set p_is_multi_value.   function get_ajax_identi er return varchar2;
    Note: This function has to be called before you write something to the HTTP bu er                                                                             Note: if both values are null, TRUE will be returned as well.
    with HTP.P(RN)                                                                                                                                                function is_equal (
    function get_input_name_for_page_item (                                                                                                                         p_value1 in varchar2,
       p_is_multi_value in boolean )                                                                                                                                p_value2 in varchar2 ) return boolean;
       return varchar2;
                                                                                                      apex_plugin: DA                                             Returns the position in the list where p_value is stored. If it's not found
                                                                                                                                                                  null will be returned.
                                                                                                                                                                  function get_position_in_list (
                                                                                                 type t_dynamic_action is record (
                                                                                                                                                                    p_list in wwv_ ow_global.vc_arr2,
        apex_plugin: plugin                                                                        id      number,
                                                                                                   action varchar2(50),
                                                                                                                                                                    p_value in varchar2 ) return number;
                                                                                                   attribute_01 varchar2(32767), … );
     type t_plugin is record (                                                                                                                                    Outputs the value in an escaped form. It's also taking care of chunking big strings into smaller outputs.
       name      varchar2(45),                                                                                                                                    procedure print_escaped_value (
                                                                                                 type t_dynamic_action_render_result is record (
        le_pre x varchar2(4000),                                                                                                                                    p_value in varchar2 );
                                                                                                   javascript_function varchar2(32767),
       attribute_01 varchar2(32767), … );                                                          ajax_identi er varchar2(255),
                                                                                                                                                                  Outputs a hidden eld to store the page item value if the
                                                                                                   attribute_01     varchar2(32767), … );
                                                                                                                                                                  page item is rendered readonly but not printer friendly
                                                                                                                                                                  procedure print_hidden_if_readonly (
                                                                                                 Render function
                                                                                                                                                                    p_item_name          in varchar2,
         apex_plugin: item                                                                       function <name of function> (
                                                                                                                                                                    p_value         in varchar2,
                                                                                                   p_dynamic_action in apex_plugin.t_dynamic_action,
                                                                                                                                                                    p_is_readonly       in boolean,
     type t_page_item is record (                                                                  p_plugin      in apex_plugin.t_plugin )
                                                                                                                                                                    p_is_printer_friendly in boolean,
       id             number,                                                                      return apex_plugin.t_dynamic_action_render_result;
                                                                                                                                                                    p_id_post x       in varchar2 default null );
       name              varchar2(255),
       label            varchar2(4000),                                                                                                                           Outputs a hidden protected eld to store the page item value.
       plain_label         varchar2(4000),                                                                                                                        procedure print_hidden_protected (
       format_mask           varchar2(255),                                                        apex_plugin: region                                              p_item_name in varchar2,
       is_required         boolean,                                                                                                                                 p_value in varchar2,
       lov_de nition        varchar2(4000),                                                      type t_region is record (                                          p_id_post x in varchar2 default null );
       lov_display_extra       boolean,                                                            id       number,
       lov_display_null       boolean,                                                             static_id varchar2(255),                                       Outputs a SPAN tag for a display only eld.
       lov_null_text        varchar2(255),                                                         name       varchar2(255),                                      procedure print_display_only (
       lov_null_value        varchar2(255),                                                        type      varchar2(255),                                         p_item_name       in varchar2,
       lov_cascade_parent_items varchar2(255),                                                     source     varchar2(32767),                                      p_display_value in varchar2,
       ajax_items_to_submit       varchar2(255),                                                   error_message varchar2(32767),                                   p_show_line_breaks in boolean,
       ajax_optimize_refresh boolean,                                                              attribute_01 varchar2(32767), … );                               p_escape       in boolean,
       element_width          number,                                                                                                                               p_attributes in varchar2,
       element_max_length         number,                                                        Render function                                                    p_id_post x in varchar2 default '_DISPLAY' );
       element_height          number,                                                           function <name of function> (
       element_attributes       varchar2(2000),                                                    p_region         in apex_plugin.t_region,                      Outputs an OPTION tag. The values are always escaped.
       element_option_attributes varchar2(4000),                                                   p_plugin         in apex_plugin.t_plugin,                      procedure print_option (
       escape_output          boolean,                                                             p_is_printer_friendly in boolean )                               p_display_value in varchar2,
       attribute_01         varchar2(32767), … );                                                  return apex_plugin.t_region_render_result;                       p_return_value in varchar2,
                                                                                                                                                                    p_is_selected in boolean,
     type t_page_item_render_result is record (                                                                                                                     p_attributes in varchar2,
       is_navigable boolean default false,                                                                                                                          p_escape     in boolean default true );
       navigable_dom_id varchar2(255) );                                                         apex_plugin: process
                                                                                                                                                                  Returns a Javascript array with all the page items which are really on the
     type t_page_item_validation_result is record (                                              type t_process is record (                                       current and on page 0. p_bind_variable_list are the bind variables returned by wwv_ ow_utilities.get_binds
       message       varchar2(32767),                                                              id         number,                                             function get_depending_ elds (
       display_location varchar2(40), /* if not set the app default is used */                     name           varchar2(255),                                    p_bind_variable_list in wwv_ ow_global.vc_arr2 )
       page_item_name varchar2(255) ); /* if not set the validated page item                       success_message varchar2(32767),                                 return varchar2;
                                             name is used */                                       attribute_01      varchar2(32767), … );                        Outputs a JSON response based on the result of a two column LOV in the format:
                                                                                                                                                                  [{"d":"display","r":"return"},{"d":...,"r":...},...]
     Render function                                                                             type t_process_exec_result is record (                           p_component_name is the name of the page item or report column, ... which is used in case an error has to be displayed.
     function <name of function> (                                                                 success_message varchar2(32767) );                             Note: The HTTP header is initialized with mime type "application/json"
       p_item           in apex_plugin.t_page_item,                                                                                                               procedure print_lov_as_json (
       p_plugin          in apex_plugin.t_plugin,                                                Execute function                                                    p_sql_statement in varchar2,
       p_value           in varchar2,                                                            function <name of function> (                                       p_component_name in varchar2,
       p_is_readonly in boolean,                                                                   p_process in apex_plugin.t_process,                               p_escape            in boolean,
       p_is_printer_friendly in boolean )                                                          p_plugin in apex_plugin.t_plugin )                                p_support_legacy_lov in boolean default false /*internal use only! */);
       return apex_plugin.t_page_item_render_result;                                               return apex_plugin.t_process_exec_result;

* For a complete refererence check the apex_plugin and apex_plugin_util packages
apex_plugin_util                                                                                                                                                                                 apex_javascript
Executes the query and returns the values for each column.                                                                                                                                  Adds the script tag to load a javascript library.
                                                                                                 Gets the display values for the values speci ed in p_search_value_list.
Note: All column values are returned as a string                                                                                                                                             p_name:      has to be speci ed without .js
                                                                                                 function get_display_data (
 p_sql_statement: SQL statement which should be executed.                                                                                                                                    p_directory: has to have a trailing slash
                                                                                                   p_sql_statement in varchar2,
 p_min_columns and p_max_columns: Used to check if the                                                                                                                                       p_version: version identi er which should be added to the library name
                                                                                                   p_min_columns         in number,
SQL statement complies to the number of required columns.                                                                                                                                    p_skip_extension: if true the extension .js is NOT added
                                                                                                   p_max_columns          in number,
 p_component_name: The name of the page item or report                                                                                                                                      procedure add_library(
                                                                                                   p_component_name in varchar2,
column which is used in case an error has to be displayed.                                                                                                                                    p_name          in varchar2,
                                                                                                   p_display_column_no in binary_integer default 1,
 p_search_type: Use one of the c_search_* constants.                                                                                                                                          p_directory in varchar2 default wwv_ ow.g_image_pre x||'javascript/',
                                                                                                   p_search_column_no in binary_integer default 2,
 p_search_column_no: Column which should be used to restrict                                                                                                                                  p_version       in varchar2 default c_apex_version,
                                                                                                   p_search_value_list in wwv_ ow_global.vc_arr2,
the SQL statement. Has to be in range of p_min_column and p_max_column.                                                                                                                       p_skip_extension in boolean default false );
                                                                                                   p_display_extra in boolean            default true,
 p_search_string: Value which should be used to restrict the query.                                p_support_legacy_lov in boolean           default false /* for internal use only! */ )
 p_ rst_row: Skips all rows before the speci ed row. Can be used for pagination.                                                                                                            Adds a javascript code snippets to the HTML output which is executed at the onload event.
                                                                                                   return wwv_ ow_global.vc_arr2;
 p_max_rows:      Limits the number of returned rows.                                                                                                                                       If an entry with the same key exists it will be ignored.
function get_data (                                                                                                                                                                         If p_key is null the snippet will always be added.
                                                                                                 Returns a jQuery selector based on a comma delimited string of page item names.
  p_sql_statement in varchar2,                                                                                                                                                               p_code: javascript code snippet. eg: $s('P1_TEST', 'abc');
                                                                                                 function page_item_names_to_jquery (
  p_min_columns         in number,                                                                                                                                                           p_key: name of the key. eg: APEX_WIDGET
                                                                                                   p_page_item_names in varchar2 )
  p_max_columns          in number,                                                                                                                                                         procedure add_onload_code(
                                                                                                   return varchar2;
  p_component_name in varchar2,                                                                                                                                                                p_code in varchar2,
  p_search_type       in varchar2 default null,                                                                                                                                                p_key in varchar2 default null);
                                                                                                 Returns a cleaned up version of a comma delimited string of page item names
  p_search_column_no in varchar2 default 2,                                                      where all spaces are removed, colons are replaced with a comma and the page item
  p_search_string in varchar2 default null,                                                                                                                                                 Adds a code snippet which is included inline into the HTML output
                                                                                                 names are converted to uppercase. This is important for JavaScript code, because page
  p_ rst_row       in number default null,                                                                                                                                                  eg. You can use this procedure to add new functions or global variable declarations.
                                                                                                 item names are case sensitive in the browser.
  p_max_rows         in number default null,                                                                                                                                                Note: if you want to execute code, you should use add_onload_code
                                                                                                 function cleanup_page_item_names (
  p_support_legacy_lov in boolean default false /* internal use only! */ )                                                                                                                  If an entry with the same key exists it will be ignored.
                                                                                                    p_page_item_names in varchar2 )
  return t_column_value_list;                                                                                                                                                               If p_key is null the snippet will always be added.
                                                                                                    return varchar2;
                                                                                                                                                                                             p_code: javascript code snippet. eg: $s('P1_TEST', 123);
Advanced version of get_data, returns the column values with original data types.                Writes the data of the page item meta data into the HTTP bu er.                             p_key: identi er for the code snippet. If speci ed and a code snippet with the same name has
 p_data_type_list: If provided checks that the data type for each column matches to              procedure debug_page_item (                                                                 already been added the new code snippet will be ignored.
the speci ed data type in the array. Use the constants c_data_type_* for available data types.     p_plugin in wwv_ ow_plugin.t_plugin,                                                     procedure add_inline_code(
function get_data2 (                                                                               p_page_item in wwv_ ow_plugin.t_page_item );                                                p_code in varchar2,
  p_sql_statement in varchar2,                                                                   procedure debug_page_item (                                                                   p_key in varchar2 default null);
  p_min_columns in number,                                                                         p_plugin          in wwv_ ow_plugin.t_plugin,
  p_max_columns in number,                                                                         p_page_item           in wwv_ ow_plugin.t_page_item,                                     Escapes a text so that it can be used in JavaScript without problems.
  p_data_type_list in wwv_ ow_global.vc_arr2 default c_empty_data_type_list,                       p_value          in varchar2,                                                            Replaces  with , / with /, " with u0022, ' with u0027, tab with t,chr(10) with n.
  p_component_name in varchar2,                                                                    p_is_readonly        in boolean,                                                         function escape (
  p_search_type in varchar2 default null,                                                          p_is_printer_friendly in boolean );                                                        p_text in varchar2 ) return varchar2;
  p_search_column_no in varchar2 default 2,
  p_search_string in varchar2 default null,                                                      Writes the data of the region meta data into the HTTP bu er.
  p_ rst_row      in number default null,                                                        procedure debug_region (
  p_max_rows        in number default null )                                                       p_plugin in wwv_ ow_plugin.t_plugin,
  return t_column_value_list2;                                                                     p_region in wwv_ ow_plugin.t_region );
                                                                                                 procedure debug_region (                                                                          apex_css
Gets the display value for the value speci ed in p_search_string.                                  p_plugin          in wwv_ ow_plugin.t_plugin,
 p_component_name: The name of the page item or report column, ... which                           p_region          in wwv_ ow_plugin.t_region,                                            Adds the style tag to load a css library.
 is used in case an error has to be displayed.                                                     p_is_printer_friendly in boolean );                                                       p_name:        has to be speci ed without .js
 p_display_column_no: Column which should be returned from the SQL statement.                                                                                                                p_directory: has to have a trailing slash
 Has to be in range of p_min_column and p_max_column.                                            Writes the data of the dynamic action meta data into the HTTP bu er.                        p_version: version identi er which should be added to the library name
 p_search_column_no: Column which should be used to restrict the SQL statement.                  procedure debug_dynamic_action (                                                            p_skip_extension: if true the extension .css is NOT added
 Has to be in range of p_min_column and p_max_column.                                              p_plugin       in wwv_ ow_plugin.t_plugin,                                               procedure add_ le (
 p_search_string: Value which should be looked up.                                                 p_dynamic_action in wwv_ ow_plugin.t_dynamic_action );                                     p_name         in varchar2,
 p_display_extra: If set to TRUE and a value isn't found, the search value will be                                                                                                            p_directory in varchar2 default wwv_ ow.g_image_pre x||'css/',
 added to the result instead.                                                                    Writes the data of the process meta data into the HTTP bu er.                                p_version      in varchar2 default c_apex_version,
 Note: In the case multiple rows are returned by the query, just the rst one is returned.        procedure debug_process (                                                                    p_skip_extension in boolean default false );
function get_display_data (                                                                        p_plugin in wwv_ ow_plugin.t_plugin,
   p_sql_statement in varchar2,                                                                    p_process in wwv_ ow_plugin.t_process );                                                 Adds a CSS style snippet which is included inline into the HTML output
   p_min_columns          in number,                                                                                                                                                        eg. You can use this procedure to add new css style declarations.
   p_max_columns           in number,                                                                                                                                                       If an entry with the same key exists it will be ignored.
   p_component_name in varchar2,                                                                                                                                                            If p_key is null the snippet will always be added.
   p_display_column_no in binary_integer default 1,                                                                                                                                          p_style: CSS style snippet. eg: #test { color:# f }
   p_search_column_no in binary_integer default 2,                                                                                                                                           p_key: identi er for the style snippet. If speci ed and a style snippet with the same name has
   p_search_string in varchar2,                                                                                                                                                             already been added the new style snippet will be ignored.
   p_display_extra in boolean            default true,                                                                                                                                      procedure add (
   p_support_legacy_lov in boolean           default false /* for internal use only! */ )                                                                                                      p_css in varchar2,
   return varchar2;                                                                                                                                                                            p_key in varchar2 default null );

More Related Content

Recently uploaded

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 

Recently uploaded (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Cheatsheet for APEX Plug-Ins

  • 1. apex_plugin: functions apex_plugin_util Returns the name attribute which has to be used for a HTML input element Returns the AJAX identi er which has to be used for the on-demand function escape ( if you want that the value of the element is stored in session state when the call of a plug-in. Note: if the plug-in doesn't have an AJAX callback p_value in varchar2, page is submitted. If you have a HTML input element which returns multiple con gured, null will be returned! p_escape in boolean ) return varchar2; values (eg. select list with multiple="multiple") you have to set p_is_multi_value. function get_ajax_identi er return varchar2; Note: This function has to be called before you write something to the HTTP bu er Note: if both values are null, TRUE will be returned as well. with HTP.P(RN) function is_equal ( function get_input_name_for_page_item ( p_value1 in varchar2, p_is_multi_value in boolean ) p_value2 in varchar2 ) return boolean; return varchar2; apex_plugin: DA Returns the position in the list where p_value is stored. If it's not found null will be returned. function get_position_in_list ( type t_dynamic_action is record ( p_list in wwv_ ow_global.vc_arr2, apex_plugin: plugin id number, action varchar2(50), p_value in varchar2 ) return number; attribute_01 varchar2(32767), … ); type t_plugin is record ( Outputs the value in an escaped form. It's also taking care of chunking big strings into smaller outputs. name varchar2(45), procedure print_escaped_value ( type t_dynamic_action_render_result is record ( le_pre x varchar2(4000), p_value in varchar2 ); javascript_function varchar2(32767), attribute_01 varchar2(32767), … ); ajax_identi er varchar2(255), Outputs a hidden eld to store the page item value if the attribute_01 varchar2(32767), … ); page item is rendered readonly but not printer friendly procedure print_hidden_if_readonly ( Render function p_item_name in varchar2, apex_plugin: item function <name of function> ( p_value in varchar2, p_dynamic_action in apex_plugin.t_dynamic_action, p_is_readonly in boolean, type t_page_item is record ( p_plugin in apex_plugin.t_plugin ) p_is_printer_friendly in boolean, id number, return apex_plugin.t_dynamic_action_render_result; p_id_post x in varchar2 default null ); name varchar2(255), label varchar2(4000), Outputs a hidden protected eld to store the page item value. plain_label varchar2(4000), procedure print_hidden_protected ( format_mask varchar2(255), apex_plugin: region p_item_name in varchar2, is_required boolean, p_value in varchar2, lov_de nition varchar2(4000), type t_region is record ( p_id_post x in varchar2 default null ); lov_display_extra boolean, id number, lov_display_null boolean, static_id varchar2(255), Outputs a SPAN tag for a display only eld. lov_null_text varchar2(255), name varchar2(255), procedure print_display_only ( lov_null_value varchar2(255), type varchar2(255), p_item_name in varchar2, lov_cascade_parent_items varchar2(255), source varchar2(32767), p_display_value in varchar2, ajax_items_to_submit varchar2(255), error_message varchar2(32767), p_show_line_breaks in boolean, ajax_optimize_refresh boolean, attribute_01 varchar2(32767), … ); p_escape in boolean, element_width number, p_attributes in varchar2, element_max_length number, Render function p_id_post x in varchar2 default '_DISPLAY' ); element_height number, function <name of function> ( element_attributes varchar2(2000), p_region in apex_plugin.t_region, Outputs an OPTION tag. The values are always escaped. element_option_attributes varchar2(4000), p_plugin in apex_plugin.t_plugin, procedure print_option ( escape_output boolean, p_is_printer_friendly in boolean ) p_display_value in varchar2, attribute_01 varchar2(32767), … ); return apex_plugin.t_region_render_result; p_return_value in varchar2, p_is_selected in boolean, type t_page_item_render_result is record ( p_attributes in varchar2, is_navigable boolean default false, p_escape in boolean default true ); navigable_dom_id varchar2(255) ); apex_plugin: process Returns a Javascript array with all the page items which are really on the type t_page_item_validation_result is record ( type t_process is record ( current and on page 0. p_bind_variable_list are the bind variables returned by wwv_ ow_utilities.get_binds message varchar2(32767), id number, function get_depending_ elds ( display_location varchar2(40), /* if not set the app default is used */ name varchar2(255), p_bind_variable_list in wwv_ ow_global.vc_arr2 ) page_item_name varchar2(255) ); /* if not set the validated page item success_message varchar2(32767), return varchar2; name is used */ attribute_01 varchar2(32767), … ); Outputs a JSON response based on the result of a two column LOV in the format: [{"d":"display","r":"return"},{"d":...,"r":...},...] Render function type t_process_exec_result is record ( p_component_name is the name of the page item or report column, ... which is used in case an error has to be displayed. function <name of function> ( success_message varchar2(32767) ); Note: The HTTP header is initialized with mime type "application/json" p_item in apex_plugin.t_page_item, procedure print_lov_as_json ( p_plugin in apex_plugin.t_plugin, Execute function p_sql_statement in varchar2, p_value in varchar2, function <name of function> ( p_component_name in varchar2, p_is_readonly in boolean, p_process in apex_plugin.t_process, p_escape in boolean, p_is_printer_friendly in boolean ) p_plugin in apex_plugin.t_plugin ) p_support_legacy_lov in boolean default false /*internal use only! */); return apex_plugin.t_page_item_render_result; return apex_plugin.t_process_exec_result; * For a complete refererence check the apex_plugin and apex_plugin_util packages
  • 2. apex_plugin_util apex_javascript Executes the query and returns the values for each column. Adds the script tag to load a javascript library. Gets the display values for the values speci ed in p_search_value_list. Note: All column values are returned as a string p_name: has to be speci ed without .js function get_display_data ( p_sql_statement: SQL statement which should be executed. p_directory: has to have a trailing slash p_sql_statement in varchar2, p_min_columns and p_max_columns: Used to check if the p_version: version identi er which should be added to the library name p_min_columns in number, SQL statement complies to the number of required columns. p_skip_extension: if true the extension .js is NOT added p_max_columns in number, p_component_name: The name of the page item or report procedure add_library( p_component_name in varchar2, column which is used in case an error has to be displayed. p_name in varchar2, p_display_column_no in binary_integer default 1, p_search_type: Use one of the c_search_* constants. p_directory in varchar2 default wwv_ ow.g_image_pre x||'javascript/', p_search_column_no in binary_integer default 2, p_search_column_no: Column which should be used to restrict p_version in varchar2 default c_apex_version, p_search_value_list in wwv_ ow_global.vc_arr2, the SQL statement. Has to be in range of p_min_column and p_max_column. p_skip_extension in boolean default false ); p_display_extra in boolean default true, p_search_string: Value which should be used to restrict the query. p_support_legacy_lov in boolean default false /* for internal use only! */ ) p_ rst_row: Skips all rows before the speci ed row. Can be used for pagination. Adds a javascript code snippets to the HTML output which is executed at the onload event. return wwv_ ow_global.vc_arr2; p_max_rows: Limits the number of returned rows. If an entry with the same key exists it will be ignored. function get_data ( If p_key is null the snippet will always be added. Returns a jQuery selector based on a comma delimited string of page item names. p_sql_statement in varchar2, p_code: javascript code snippet. eg: $s('P1_TEST', 'abc'); function page_item_names_to_jquery ( p_min_columns in number, p_key: name of the key. eg: APEX_WIDGET p_page_item_names in varchar2 ) p_max_columns in number, procedure add_onload_code( return varchar2; p_component_name in varchar2, p_code in varchar2, p_search_type in varchar2 default null, p_key in varchar2 default null); Returns a cleaned up version of a comma delimited string of page item names p_search_column_no in varchar2 default 2, where all spaces are removed, colons are replaced with a comma and the page item p_search_string in varchar2 default null, Adds a code snippet which is included inline into the HTML output names are converted to uppercase. This is important for JavaScript code, because page p_ rst_row in number default null, eg. You can use this procedure to add new functions or global variable declarations. item names are case sensitive in the browser. p_max_rows in number default null, Note: if you want to execute code, you should use add_onload_code function cleanup_page_item_names ( p_support_legacy_lov in boolean default false /* internal use only! */ ) If an entry with the same key exists it will be ignored. p_page_item_names in varchar2 ) return t_column_value_list; If p_key is null the snippet will always be added. return varchar2; p_code: javascript code snippet. eg: $s('P1_TEST', 123); Advanced version of get_data, returns the column values with original data types. Writes the data of the page item meta data into the HTTP bu er. p_key: identi er for the code snippet. If speci ed and a code snippet with the same name has p_data_type_list: If provided checks that the data type for each column matches to procedure debug_page_item ( already been added the new code snippet will be ignored. the speci ed data type in the array. Use the constants c_data_type_* for available data types. p_plugin in wwv_ ow_plugin.t_plugin, procedure add_inline_code( function get_data2 ( p_page_item in wwv_ ow_plugin.t_page_item ); p_code in varchar2, p_sql_statement in varchar2, procedure debug_page_item ( p_key in varchar2 default null); p_min_columns in number, p_plugin in wwv_ ow_plugin.t_plugin, p_max_columns in number, p_page_item in wwv_ ow_plugin.t_page_item, Escapes a text so that it can be used in JavaScript without problems. p_data_type_list in wwv_ ow_global.vc_arr2 default c_empty_data_type_list, p_value in varchar2, Replaces with , / with /, " with u0022, ' with u0027, tab with t,chr(10) with n. p_component_name in varchar2, p_is_readonly in boolean, function escape ( p_search_type in varchar2 default null, p_is_printer_friendly in boolean ); p_text in varchar2 ) return varchar2; p_search_column_no in varchar2 default 2, p_search_string in varchar2 default null, Writes the data of the region meta data into the HTTP bu er. p_ rst_row in number default null, procedure debug_region ( p_max_rows in number default null ) p_plugin in wwv_ ow_plugin.t_plugin, return t_column_value_list2; p_region in wwv_ ow_plugin.t_region ); procedure debug_region ( apex_css Gets the display value for the value speci ed in p_search_string. p_plugin in wwv_ ow_plugin.t_plugin, p_component_name: The name of the page item or report column, ... which p_region in wwv_ ow_plugin.t_region, Adds the style tag to load a css library. is used in case an error has to be displayed. p_is_printer_friendly in boolean ); p_name: has to be speci ed without .js p_display_column_no: Column which should be returned from the SQL statement. p_directory: has to have a trailing slash Has to be in range of p_min_column and p_max_column. Writes the data of the dynamic action meta data into the HTTP bu er. p_version: version identi er which should be added to the library name p_search_column_no: Column which should be used to restrict the SQL statement. procedure debug_dynamic_action ( p_skip_extension: if true the extension .css is NOT added Has to be in range of p_min_column and p_max_column. p_plugin in wwv_ ow_plugin.t_plugin, procedure add_ le ( p_search_string: Value which should be looked up. p_dynamic_action in wwv_ ow_plugin.t_dynamic_action ); p_name in varchar2, p_display_extra: If set to TRUE and a value isn't found, the search value will be p_directory in varchar2 default wwv_ ow.g_image_pre x||'css/', added to the result instead. Writes the data of the process meta data into the HTTP bu er. p_version in varchar2 default c_apex_version, Note: In the case multiple rows are returned by the query, just the rst one is returned. procedure debug_process ( p_skip_extension in boolean default false ); function get_display_data ( p_plugin in wwv_ ow_plugin.t_plugin, p_sql_statement in varchar2, p_process in wwv_ ow_plugin.t_process ); Adds a CSS style snippet which is included inline into the HTML output p_min_columns in number, eg. You can use this procedure to add new css style declarations. p_max_columns in number, If an entry with the same key exists it will be ignored. p_component_name in varchar2, If p_key is null the snippet will always be added. p_display_column_no in binary_integer default 1, p_style: CSS style snippet. eg: #test { color:# f } p_search_column_no in binary_integer default 2, p_key: identi er for the style snippet. If speci ed and a style snippet with the same name has p_search_string in varchar2, already been added the new style snippet will be ignored. p_display_extra in boolean default true, procedure add ( p_support_legacy_lov in boolean default false /* for internal use only! */ ) p_css in varchar2, return varchar2; p_key in varchar2 default null );