Paginate a Plugin in the region

Hi guys,.

I work on a plugin of region which is based on a SQL query and would like to paginate the results returned, but I can find no documentation or other resource on the implementation of the part. Can you point me in the right direction or offer some advice on this?

Thank you

Art

Hi Art,

the apex_plugin_util package has everything you need. Take a look at get_data (https://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2163) and get_data2 (https://docs.oracle.com/cd/E59726_01/doc.50/e39149/apex_plugin_util.htm#AEAPI2168), the APIs that do not have a setting p_first_row and p_max_rows . These settings allow you to implement pagination.

Concerning

Patrick

Tags: Database

Similar Questions

  • Creation of Plugin - try to extend the plugin level element to display the region

    Hello

    I have a fairly complex task - I've created a plugin to a type element.
    The element is rendered with a button attached to it.

    Goal - button trigger a dialogue area (it should open in a modal window with a click of a button).
    It should work similar to a field "Date Picker", which opens a calendar with a click.

    I added my point original plugin code, which requires to create a dialog box, and now, I get an error:
    PLS-00306: wrong number or types of arguments in the call to 'RENDER_DESCRIPTION_ML' ORA-06550

    Here is my code:
    function render_description_ml (p_item in apex_plugin.t_page_item,
     
                        p_region  in apex_plugin.t_region,
                                            
                                    p_plugin in apex_plugin.t_plugin,
                                    p_value in varchar2,
                                    p_is_readonly in boolean,
                                    p_is_printer_friendly in boolean )
    
     return apex_plugin.t_page_item_render_result
    
     is
      l_ok_label         apex_appl_plugins.attribute_01%type := nvl(p_plugin.attribute_01, 'Ok');
      l_cancel_label     apex_appl_plugins.attribute_02%type := nvl(p_plugin.attribute_02, 'Cancel');
      l_title            apex_application_page_regions.attribute_01%type := nvl(p_region.attribute_01, p_region.name);
      l_width            apex_application_page_regions.attribute_02%type := p_region.attribute_02;
      l_auto_open        apex_application_page_regions.attribute_03%type := nvl(p_region.attribute_03, 'N');
      l_show_cancel      apex_application_page_regions.attribute_04%type := nvl(p_region.attribute_04, 'Y');
      l_trigger_elements apex_application_page_regions.attribute_05%type := p_region.attribute_05;
      l_onload           varchar2(4000);
      
     l_result apex_plugin.t_page_item_render_result;
     
    begin
    
    -- item --
    
    sys.htp.p('<input type="text" id="'||p_item.name||'" name="'||p_item.name||'" class="text_field" style="width:250px"><span class="ie_fix" style="margin:0 0 -5px 25px">
    <a style="text-decoration:none" href="#">
    <button id="SHOW_DIALOG1" type="button" class="button-gray" /><span>Add/Edit</span></button>
    </a>
    </span>');
    
    -- dialog --
    
    apex_css.
       add_file(
        p_name       => 'jquery.ui.button',
        p_directory  => apex_application.g_image_prefix || 'libraries/jquery-ui/1.8/themes/base/',
        p_version    => null
      );
      --
      -- Include the jQuery-UI Button JavaScript as it is not included by APEX as a default.
      --
      apex_javascript.
       add_library(
        p_name       => 'jquery.ui.button.min',
        p_directory  => apex_application.g_image_prefix || 'libraries/jquery-ui/1.8/ui/minified/',
        p_version    => null
      );
    
      l_onload := 'apex.jQuery("#' ||
        p_region.static_id ||
        '").dialog({' ||
        apex_javascript.add_attribute('autoOpen', (l_auto_open = 'Y')) ||
        apex_javascript.add_attribute('modal', true) ||
        apex_javascript.add_attribute('title', l_title) ||
        apex_javascript.add_attribute('width', to_number(l_width)) ||
        'buttons:{' || '"' || l_ok_label || '":function(){apex.jQuery(this).trigger("dialogregion_ok");$(this).dialog("close");}';
      if l_show_cancel = 'Y'
      then
        l_onload := l_onload || ',"' || l_cancel_label || '":function(){$(this).dialog("close");}';
      end if;
      l_onload := l_onload || '}';
      l_onload := l_onload || ',open:function(){apex.jQuery(this).trigger("dialogregion_open");}';
      l_onload := l_onload || '}).closest("div.ui-dialog").appendTo("form#wwvFlowForm");';
      apex_javascript.add_onload_code(p_code => l_onload);
      if l_trigger_elements is not null
      then
        apex_javascript.
         add_onload_code(
          p_code => 'apex.jQuery("' ||
                   l_trigger_elements ||
                   '").click(function(event) {' ||
                   'apex.jQuery("#' ||
                   p_region.static_id ||
                   '").dialog("open");' ||
                   'event.preventDefault();' ||
                   'return false;' ||
                   '});'
        );
      end if;
      ---
    return l_result;
    end render_description_ml;
    Where I did wrong, please?
    Thank you very much for the review!

    I think that your signature of the function is not going...

    What is your PLUGIN type... agenda or the region?

    If you create an element that displays the dialog box, you must create a plugin to POINT and then simply open the dialog box on the fly

    It should not create a plugin in the region, because control ARTICLE

    Functions of rendering plugin point Type must implement the following interface:

    function  (
        p_item                in apex_plugin.t_page_item,
        p_plugin              in apex_plugin.t_plugin,
        p_value               in varchar2,
        p_is_readonly         in boolean,
        p_is_printer_friendly in boolean )
        return apex_plugin.t_page_item_render_result
    

    Watch this http://www.apex-plugin.com/oracle-apex-plugins/odtug-competition/combobox_208.html which opens a dialog box

  • Incorrect order in the region after upgrade Apex 4.2.2

    We have improved our applications at Apex 4.2.2.00.11 and everything works fine. With the exception of 2 pages. These pages have a parent area (in display point 'Page (1) template body') and two parts of the child, a (seq 10) HTML tag and a region (seq 20) report. But when these pages are executed, the region of report was posted first! I discovered that when I remove the HTML region of its parent, that the original display for this region, HTML has been 'Page (2) template body '. I've changed that to "Page model body (1) ', handed the region HTML to its parent. Now the regiopns appear in the correct order. However when I do an export and import on the production environment, the regions are always displayed in the right order! It seems that during the import, the point of view of a region with a parent area, is ignored.

    Any ideas how to solve this problem?

    Hello

    I think I've identified the cause of your problem. When importing an application we automatically point the value display child parts to 'Page (3) template body', because points of view are not really relevant for regions of the child, but we need for the good sort. Due to a bug, this is not done for regions of type 'Report' and 'calendar '.

    As a solution, can you please assign 'Page (3) template body' to your sub regions and try again. I will file a bug for the issue.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

  • Popup error when using the AJAX or update Action for the region or a State

    Hello

    I had a problem with an application that I developed and I was banging my head against the wall with this for some time without success. Several pages in my application rely on the use of AJAX to refresh a region on the page with the updated data, running every 5 seconds. I have the following code in the foot in my region:

    var refresh_region = function (region_in) {
        try {
            jQuery(region_in).trigger('apexrefresh');
        } catch (e) {
            //Suppress error messages
        } finally {
            setTimeout(function() {refresh_region(region_in)}, 5000);
        }
    }
    refresh_region('##REGION_STATIC_ID#');
    
    
    

    What is happening is that I often have a popup with the title "Message from Web page:" and one of the descriptions following error (with the last being the most common):

    • : Error - HTTP Version not supported
    • Error: error - unknown

    The problem is that this page is used on the kiosks without keyboard, and once the error popup is displayed, the page continues to answer and user interaction to click on the Ok"" button. Another question, which is even more frustrating, is that these windows will accumulate above the other nearly one hundred sometimes profoundly, to the point where, sometimes, I need to force, exit the browser or restart the kiosk. There are also cases where the entire application stops responding and none of the pages will load. The only way to solve this problem is to have my DBA restart Glassfish. He went through some of the papers, but he sees nothing specific that helps him understand why he keeps to himself, but he believes that all these popups eat connections until the server runs.

    This has been a recurring topic since the app went live and I had hoped that with the help of a block try {} catch {} would prevent these popups errors but no luck. I also made a copy of the page today and refresh moved dynamic Action using the timer plugin but the popup always appears. I am following up to see if it happens more often than the AJAX approach.

    In the end, there are two issues here:

    1. What causes the error in the first place?
    2. How can I prevent the error popup windows until I can find #1

    I have tried everything I can find online to disable popups, all of this without a bit of luck:

    • Using try {} catch {}
    • Disable script debugging in Internet Explorer
    • Uncheck 'display a notification of every script error '.
    • Catch the window.onerror event

    Does anyone have any suggestions on how I can avoid these popups?

    I have a copy of the application on apex.oracle.com:

    • Workspace: SCCC_TEST
    • User/Pass: TEST/test
    • Page: 5

    Thank you!

    Once I started to think the ajax Manager that I started, I was wondering if ajax would actually raise an error at all, and it is not just the success of shooting when but throwing an error because it cannot handle the return (error page html for example). I'm not sure.

    You can try to use this code, which will replace the current call and will call _Appel with your own parameters. _Appel is a private member is not accessible so it's probably the best alternative. Not really a hack in my book. The structure is in place, then why not.

    //preserve original function
    var asw_orig = apex.server.widget;
    //override existing function
    apex.server.widget = function(pName, pData, pOptions){
      var lOpts = pOptions;
      //set the error handler function
      lOpts.error = function(){alert("this is my error handler function");};
      //pass along the variables to the original call
      asw_orig(pName, pData, lOpts);
    };
    

    I wondered if maybe the session may have expired at a certain time and therefor, you found these errors, because the update is not aware of this and therefore makes invalid calls. Just throw something out there.

  • Customize the link and the region selector

    Hello

    When you enable customization for the regions (end user can hide/show the region), type of region of the region selector is not updated.
    I have the example here
    https://Apex.Oracle.com/pls/Apex/f?p=39006:4

    Lower left corner, click "Customize".
    Hide parts.

    Hidden areas are still available on the selector in the region.
    I think that it is not logical that you can select the region from the selector of the region, which is not rendered at all =)

    I wonder is this bug, missing feature or customize the link and region selector are not supposed to work "together"?

    Kind regards
    Jari

    Published by: jarola on December 6, 2011 17:21

    Published by: jarola on December 6, 2011 17:34

    Hi Jari,

    I I produced bug # 13476059 - REGION SELECTOR SHOWS AREAS THAT ARE HIDDEN TO CUSTOMIZE the FUNCTION of THE
    and fixed in 4.1.1

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How do you know static id of the region

    Read the JQuery tabs - branching at specific tab thread

    He meniotned he must connect the static region ID.

    Can someone tell me how to know the static id of the region? Looking at my regions, they have seq id no. but don't know how to find the static id of the region? I'm just plugin #REGION_STATIC_ID #?

    my parts are built with jquery. I use apex 4

    Thanks in advance.







    ZenG

    Hello

    You change the region and you should see, in the attributes section, a parameter called 'Static Id' - click on help for this setting and you will see:

    >
    "Enter the value to identify this region. You can reference this value using the #REGION_STATIC_ID substitution string #. Referencing this value can be useful when custom JavaScript development. »
    >

    Andy

  • He can't change the region of my account! Help, please! Thank you ~ ~ ~

    Hello

    I want to change my account area. But I still balance ($0.02) so I couldn't change. Please delete my balance.

    Thank you!

    and now I can not contact the Apple Support it's always show

    We're sorry.

    We are unable to respond to your request at this time. Please try again or come back later.

    1c14bb55-ED82-4B43-9c22-fc79914a022c

    is could someone please help me contact the apple support to clear my balance or help me another way to change the region on my account please!

    Thank you!!

  • normalize the region settings

    Where is to normalize the region settings in Logic pro X 10.2.4?

    Thank you

    Paul

    In the menu of local functions .

  • New update feature Logic-rod of color of the region

    I deal with as a result of the projects on a daily basis. And I would be DELIGHTED If logical offered a feature for bounce comes from the color of the region.

    Currently, I have all parts of color according to the stem. Yellow = brass, Brown = string, Orange = Perc Low, etc.. I select a region, Ctrl + C to select all regions of same color, Ctrl + S for all selected regions in solo. Go to an empty bar at the beginning of the project to clear the cache of any release of the bonded sample, enable cycle and rebound. Wait 10 minutes for it to bounce. Repeat 12 times more.

    I'd like a command that tells, rebound derives from the color of the region. So logic would automatically create these rods and automate this process, so I can go off and do something else, back in 120 minutes and did everything instead of custody of her.

    Please make sense! Thank you!!

    Basically, you export titles as the stems.  It's already easy enough to do.  In addition, this is not the place to request new features, as it won't do anything good.   There is a feedback page that Apple does actually read and follow.  In the Logic Pro X menu, select the option to return.

  • at the end of the region

    I'm going through and check my fades on a comp track.  While zooming in, I would like to move on to the next fade where two regions come together quickly.   Right now I'm having to zoom out and get there... at - it a command which will take you at the end of the selected region or next bland?  For example in pro tools, you can tab your way through crossfades and archive them easily.

    If you select a region - you can press CTRL + end to go at the end of this region.

    If you have the small keyboard - then its control + function + arrow right (takes you at the end of the region) and Ctrl + function + arrow to the left at the beginning).  When you change you fades and ready to move on to the next, simply select the next region then hit the foregoing to move to the end of it, or to the beginning.  It will be right for the fades (front or rear)...

  • I get a message saying that firefox has prevented the dangerous 'adobe flash' plugin of the race

    my flash player IS up-to-date, but firefox crashes and I get this error message
    Firefox prevented the dangerous 'adobe flash' plugin of the race (some im webpage on)
    Let me know how I can fix this? AS SOON AS POSSIBLE

    Hi Janetc69,

    I had the same problem, after having informed me with a few mags of PC online, I simply uninstalled Adobe flash player in my laptop.
    Since then, I got no problem with playback of videos with firefox browser. What more, it seems to work better than before.
    Anyway most of the browsers are slowly remove Adobe flash player on their systems.
    If this does not work you can always reinstall Adobe, try it.

    Good luck!

  • How to remove the old plugins in the add-on Manager

    That is my question. Add-ons Manager shows all of those I want to delete as persons with disabilities. The existing responses do not work because when I get home the Manager of the page the word "delete" is not there. (see attachment)

    Plugins are part of third party software that you have installed on your computer. To uninstall the plugin, you need to remove the application that has installed the plugin in the first place.
    This is not always desired. So I'd keep just those unwanted plugins disabled. They won't hurt.
    There are ways to fix the Windows registry so that these plugins are no longer visible for Firefox and therefore will not be displayed in the Add-ons Manager. But unless you know exactly what you are doing, you should not start playing with it.

  • How can I find all the plugins in the firefox browser

    HI I was wondering if I could ask a question how can I find all the installed plugins in the firefox lasted I would like to be able to know if, for example, if the shockwave plugin is updated and which version is currently installed in the firefox browser lasted.

    Thank you

    Hello Funny78, type Subject: addons in the address bar and then select plugins, add-ons manager opens and you can see the last version of the plugins (and other info), now click on the click to see if your plugins are up to date and see if it is.

    Thank you

  • Hello, my iphone model number is MKQL2GH / A... What is the region of GH?

    Hello, my iphone model number is MKQL2GH / A... What is the region of GH?

    Do you get this model in settings > general > topic? I can't find a region code of GH.

  • When I try to drag an area the length of the region changes. Why?

    Hello, I've been using GarageBand and somehow at some point of the project, he began to shorten the length of the regions trying to drag to another point in the same track, or another track. It did not when I started this project... I was pushing a botton evil? I broke a strange option?

    What version of GarageBand do you use?  Is which way? A software instrument track?  An audio track? A drummer track? A piece of film?

    The path created by dupicating an existing track?

    Have you ever tried to save the project, quit GarageBand and restart the Mac?

Maybe you are looking for