Reset pagination for a region

Is there a way to reset pagination for a region and not the whole page?
If I have a report region R1 with a clickable link to another report region on the same page R2, I would want each click on R1's link to reset pagination only for R2, not for the whole page! Otherwise I lose my place in R1's resultset.
Thanks

What is the rationale for this? How would an answer help you?Well, obviously it wouldnt if I wanted to do just that, but I am the curious sort. I just wanted to understand what the reason for it was from a architecture/design perspective.
Put reports on different pages so that resetting
pagination on a page doesn't reset pagination on
reports that you don't want pagination reset for.Yeah, I guess, but changing pages just for this reason doesnt quite seem right. It disrupts the user experience to flip between pages

Similar Messages

  • Reset pagination for reports after window reload

    Hi friends,
    I have a apex report, whose content dynamically changes based on a drop down value. The issue is if i am in 3rd page for a selected dropdown value and then change the dropdown value, the report data for the newly selected dropdown value will be in page 3. is there any was to start from 1st page when a new value is selected form the dropdown.
    In my current implementation i have created a branch with a condition to navigate to the same page after hitting the submit button
    Below are the html elements on the screen
    1. drop down select box.
    2. submit button
    3. apex report.

    As part of the branch click the "reset pagination for this page" option

  • Conditional Pagination for Multiple Regions

    Apex 3.1.1, theme 16, Search Engine 1,2,3,4 (set based pagination)
    Hello,
    I'm working on an application that uses conditional pagination. We have a select list item where the user can choose how many result rows they want to see on a page. If the result rows returned are less than what the user selects (there is only one page of results), the pagination is hidden so the "1" doesn't display. This works great except where there is a page with more than one report region. Is it possible to restrict the $('.pagination') to each region? Maybe using the region static ID? I'm new to Javascript and Apex so I don't know how to reference the pagination for a particular region or if this is even possible. Thanks.
    Script located in each Region Footer:
    <script type="text/javascript">
      if ( #TOTAL_ROWS# > &P302_RESULT_ROWS. )
        $('.pagination').show();
      else
        $('.pagination').hide();
    </script>Lisa

    Not got jQuery installed, but as far as I understand I don't see any reason why what you suggest won't work. #REGION_STATIC_ID# is substituted in the region footer, and &ndash; in standard report templates at least &ndash; the pagination elements are descendants of the #REGION_STATIC_ID# element:
    <script type="text/javascript">
      if ( #TOTAL_ROWS# > &P302_RESULT_ROWS. )
        $('##REGION_STATIC_ID# .pagination').show();
      else
        $('##REGION_STATIC_ID# .pagination').hide();
    </script>

  • Reset pagination

    Hi.,
    I am using a link in my bar chart. In the new page there is showing a report. I need to give reset pagination for that page so that whenever I enter there by clicking the link it should display the the first 'n' set of records. I have tried to create an unconditional branching to the new page in which I have given the reset pagination. But in my first page I am using a button which is just submitting and showing the same page. As I have given the branching it is going to the new page when I click the button. Can anyone help me to resolve this.?
    Any help will be appreciated.
    Thanks & Regards
    Charls

    Hi,
    Please see URL syntax
    http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/concept_url.htm#sthref105
    In URL you can reset pagination
    >
    ClearCache:
    To clear cached items on a single page, specify the numeric page number. To clear cached items on multiple pages, use a comma-separated list of page numbers. Clearing a page's cache also resets any stateful processes on the page. Individual or comma-separated values can also include collection names to be reset or the keyword RP, which resets region pagination on the requested page. The keyword APP clears cache for all pages and all application-level items in the current application and removes sort preferences for the current user. The keyword SESSION achieves the same result as the APP keyword, but clears items associated with all applications that have been used in the current session.
    >
    If you report is interactive, use RIR or CIR instead of RP
    Regards,
    Jari

  • Question about clear page and reset pagination

    Hi,
    I have a question about clear pages and the reset pagination in an URL. What is the reason why a clear page doesn't also trigger a reset pagination on the pages which are cleared?
    I can't really imagine a business case where it makes sense to clear all data of page items on a page and don't reset the pagination of reports on that page which probably use a page item in there where clause...
    The drawback of this behavior is that a developer always has to set the reset pagination checkbox when he clears the target page and the even bigger drawback is that if you specify other pages to clear, you can't reset pagination for them, because reset pagination only works for the target page.
    Thanks for your input.
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

    Enhancement request filed, thanks,
    Scott

  • Reset pagination process V2

    This may be my environment having gone a little corrupt but in V2 (upgraded from v1.6) i don't seem to be able to find the option to create a process of type 'Reset Pagination For Page(s) (PageID,PageID,PageID)' which was available in V1.6
    and those 'Reset Pagination for Page(s)' processes that were created in V1.6 seem to now only reset the pagination for the page the process is defined even though the page ids of the pages to be reset are specified
    is this reset option still available in V2 or do i need to reinstall my environment??

    A workaround for what? The previous posts explain the
    workaround for the original problem.Scott: Your earlier post in this thread says
    "Farhan - We took those out by mistake. They will most likely become available again in a patch. Thanks for pointing it out"
    Yes, the version on htmldb.oracle.com does not have this problem, but the generally available HTML DB 2.0, which is what most customers would have on their site, would have this problem.
    Update: htmldb.oracle.com seems to have been changed, my earlier statement "Click on Add Process. Choose PL/SQL. On the next page, in the drop-down list for Process Type, you can see the "Reset Pagination for pages (pageid,pageid,....)" is no longer true. I can no longer do this.
    And there is no workaround for it, as you mentioned earlier.
    Thanks
    Message was edited by:
    Vikas

  • How not to search in the search result – reset pagination?

    I have a sql query report where I have created a text field where a use can input a search criteria, that is used in the where clause. This works perfect. But when pagination is used and you navigate to the next result set and input a new search criteria the search is only done in the displayed result set not the full data set. As far as I can figure out from other posts in this forum I have to reset the pagination when the search button is pressed. I can no figure out how to do this. People have mentioned using braches or processes or Clear Cache?. Can anybody please guide me in the right direction?
    I use version 1.6

    Well if it is setup like mine, there will be a "Branch to Page or URL" branch dependent on the "Go" button being selected.
    In this branch, immediately to the right of the "Page" to branch to, set the "reset pagination for this page".

  • How can I decouple the pagination for a global region?

    I was having a delightful time using a common region defined on a global page when I determined that pagination setting was begin carried from one page to the next.  Arghhhh!  So for example, if I have paged to the second set (page) of rows (11-20) on Page 1 and then I go to Page 2, the second set (page) of rows (11-20) is displayed there.   If I go to a page which only has a first set of rows (1-10), I get the pagination error "Invalid set of rows requested, the source data of the report has been modified. Reset Pagination".  And when I click to reset, it just repeats the error.  [I suppose it tries to display the second set or rows (11-20) again -- which doesn't exist.  What's that saying about insanity?]  
    How can I decouple the pagination for a global region? I want it to operarate just as it would if it were not sharing a common region.  So if I'm looking at rows (11-20) on page 1, I can go to any other page beginning with rows 1-10 there.  Then return to page 1 where I left off with rows 11-20 displayed.  One solution is NOT to paginate but that's not my preferred solution.
    Howard

    Howard(...inTraining) wrote:
    I was having a delightful time using a common region defined on a global page when I determined that pagination setting was begin carried from one page to the next.  Arghhhh!  So for example, if I have paged to the second set (page) of rows (11-20) on Page 1 and then I go to Page 2, the second set (page) of rows (11-20) is displayed there.   If I go to a page which only has a first set of rows (1-10), I get the pagination error "Invalid set of rows requested, the source data of the report has been modified. Reset Pagination".
    The fact that there are different numbers of rows returned on different pages implies that the reports have some local page dependencies, so why try to use a global component? What's the actual requirement? How many pages does the report have to appear on? (Please say it is a report and not a tabular form...)
    How can I decouple the pagination for a global region? I want it to operarate just as it would if it were not sharing a common region.
    The point is that a global region is just that: a single region that happens to be displayed on multiple pages. It does not create multiple instances of a region on different pages. (Specifically, a region has a single region ID, and this is used to reference it whether it appears on one page or all of them. The region ID is used by the report for the purposes of AJAX refresh, pagination etc.)
    A similar situation was discussed a long time ago. I'm rather surprised that Scott regarded it as a bug: the fact that it doesn't seem to have been "fixed" or have a bug number attached may indicate that the others on the APEX team disagreed with him? I haven't tried the workaround he suggested, however I don't think it's likely to be prove a useful line of attack for your issue, as (1) it resets pagination rather than preserving it; and (2) it doesn't appear to be compatible with the AJAX PPR pagination used in more recent versions of APEX.
    I can't see any straightforward "solution" (largely because I don't think there's really a problem: the exhibited behaviour is exactly how I expect/want global regions to behave). Pagination processing is undocumented. The current 4.2 apex.widget.report.paginate JS method is specifically annotated as "for internal use only". Search the forum for custom pagination techniques. Messy looking hacks for IRs have previously been suggested.
    So if I'm looking at rows (11-20) on page 1, I can go to any other page beginning with rows 1-10 there.  Then return to page 1 where I left off with rows 11-20 displayed.  One solution is NOT to paginate but that's not my preferred solution.
    Assuming that there aren't too many pages involved, the other obvious option is to create unique regions on the required pages. You can achieve some level of reusability by creating SQL Query (PL/SQL function body returning SQL query) reports based on an external function so that there's only a single SQL source to be maintained.
    Explain the requirement in more detail. Pagination is not the only option for reducing the quantity of displayed information. Often it's better to display some of all of the data, rather than all of some of it...

  • How to reset viewScope for a particular ADF region

    I have following usecase.
    I navigate to a page (say cloud home page). while calling this page couple of parameters are set in view scope.
    1. viewScope.keyAttrs.target
    2. viewScope.keyAttrs.type
    The page has a ADF region ( say inventory) embedded.
    For this region I want above parameters in view scope to be null. Can I set a flag or something to make it null?

    My requirement is specific to Enterprise Manager so closing the thread.

  • Pagination and Reset Pagination

    I do not understand what pagination means
    and what "reset pagination" does.
    I think I need an example where I can observe
    the difference between using or omitting
    a pagination reset.
    I created a page with a report and a search tool.
    Apex created automatically a Reset Pagination Process.
    However, I was not able to observe the behavior
    of this process.
    The following explanation of the manual did not help me either:
    "In Report regions, resets pagination back to the first result set.
    The Application Express engine keeps track of where the user is
    within a given result set. This process category returns the user
    to the beginning result set. In other words, this category resets
    the counters associated with the report region to return the first
    part of the result set the next time the result set displays."
    Any better explanation/example?
    Thank you very much,
    Marios

    Pagination gives you "pages" of your result set.
    For example if you have a report that queries from the EMP table, and there are 100 rows in the emp table. If your report is set to display 20 records, then you have 5 "pages" of your report. The pagination allows the user to move from page to page of the result set, ie. rows 1-20, then rows 21-40 and so on.
    If the user has moved to say the 3rd "page" of the result set (rows 31-40) and you they somehow navigate back to this report but the parameters change and the query only returns 25 rows, if the pagination is not reset, then the report will attempt to look at the 3rd page of your result set ,which now does not exist. So this will cause an error.
    So when you navigate to a report, if there is a chance that the parameters have changed which will result in a different number of rows being returned by the query, then you should reset the pagination. Or always reset the pagination when the user changes parameters and queries the report again.

  • Bug report: App Builder always resetting pagination

    See my earlier post about this at
    Re: PPR breaks browser Back button
    I thought (mistakenly, it turns out) that the PPR stuff was to blame for the App Builder main page always "resetting" to the first set of rows.
    But when I created a report using a PPR template at
    http://htmldb.oracle.com/pls/otn/f?p=24317:138
    paginate to the 3rd set of rows, run some other page and come back to the PPR page, it does indeed properly remember which set it was on i.e. pagination is NOT reset.
    But when I do the same thing in the App Builder...Go to the 3rd set of pages, run a page from there. Now when I click on the Edit Application link on the Developer Toolbar, it throws me back to the first set of pages :-(
    I just realized the reason is that the Edit Application link in the Developer Toolbar is
    http://htmldb.oracle.com/pls/otn/f?p=4000:1:3150046948585447489::NO:1,4150,<b>RP</b>:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:24317,138,24317,138,138
    It has the RP in there that does the pagination reset! Why?
    The same link in Version 1.6 is
    f?p=4000:1:1514638425792267178::NO:1,4150:FB_FLOW_ID,FB_FLOW_PAGE_ID,F4000_P1_FLOW,F4000_P4150_GOTO_PAGE,F4000_P1_PAGE:102,80,102,80,80
    No RP there.
    What is the reason for this change?
    Thanks

    You could delete 20 pages by just staying on the page
    detail pages and hitting delete, I've done exactly
    that before.Carl, not sure what you mean. I outlined my exact steps to delete a page above and how it keeps throwing me back to Page 0, etc.
    What do you men by "staying on the page detail pages and hitting delete"? You click Delete once, you are taken to the Delete Confirmation page.
    So how can you delete multiple pages at once?
    [I had another feature request some time back about being able to export or delete "Page Groups" that would come in handy here as well]
    Deleting 20 pages is an edge case lets say you had 11
    pages your pagination shows 1-10 you go to page 11
    and delete it you'd have the same problem. As I said, its the same thing as any email client or any software really displaying a list of items and you open an item and delete it. Where to go next? There should be options for this kind of thing.
    You can be
    fairly certain that there will be some sort of report
    enhancement that if you try and return rows of say
    20-30 and there are only 19 the report engine will
    return you 10-19 so you don't get a broken report.Yup, this is a very common "newbie" mistake where there is a search filter on a report region and a branch back to the same page. If I forget to reset pagination on the Branch Attributes page, and Search 1 returns 25 and I am on 20-25 and I start another Search that returns 10 rows, the report "breaks" since it tries to display Rows 20-25 of 10!
    Are you saying that the "reset pagination" checkbox on the Branch page will no longer be necessary in upcoming versions? The report engine will be smart enough to "figure out" what set of rows to return based on what rows (x to y) the page was "stuck at" before?
    Thanks

  • Custom pagination for APEX 4.2 interactive report using Page Zero

    Hi,
    I want to implement an «Custom pagination for APEX 4.2 interactive report» using a «page zero».
    I recently migrate from Apex 3.1 to Apex 4.2 and my «Custom pagination for APEX 3.1 interactive report» using a «page zero»  is not working any more.
    So now I try to adapt an excellent example of Jari Laine for 4.0 but using a page zero.
    I put the code JavaScript to Page zero but I must create an dynamic action to fire only for an interactive report region.
    It’s a good idea?
    Thank you

    Thought I would try once more with my DatePicker question.
    On the Apex.Oracle.Com website I have created a 1 page application that has an Interactive Report.
    [url http://apex.oracle.com/pls/apex/f?p=15655:1]
    user = 'test'
    password = 'test'
    I have 2 questions :
    (1) In IE7, press 'Actions', 'Filter'. On the Column dropdown list, select 'Order Timestamp'.
    Notice the prompt icon to the right of the 'expression'. This should change to the Datepicker, but in IE7 it does not. Try the samething in Firefox or Chrome and the Datepicker will appear.
    Is this a BUG, or does Apex 4.02 not support IE7 ?
    (2) In Firefox or Chrome, where you can now see the Datepicker, you will notice that it is the new style picker, not the old style ( called 'classic' ). I want to change it so that it shows the 'classic' datepicker not the new, but cannot see how to do it, if indeed you actually can.
    I would really appreciate it if someone could take a look and let me know if I am going mad, or if we need to get all our users onto IE8. We have now gone live with Apex 4.02 and need to resolve these issues.
    Thanks in advance.
    Edited by: DooRon on 10-Mar-2011 05:13

  • Need to reset pagination...

    Hello,<br>
    I have a dynamic "group by" report looking like this:<br><br>
    <b>[link]</b>   [value<b>1</b>]   [number of records for this value]<br>
       [other type of link]   [details record<b>1</b> for value<b>1</b>]<br>
       [other type of link]   [details record<b>2</b> for value<b>1</b>]<br>
    ...<br>
       [other type of link]   [details record<b>m</b> for value<b>1</b>]<br>
    <b>[link]</b>   [value<b>2</b>]   [number of records for this value]<br>
    <b>[link]</b>   [value<b>3</b>]   [number of records for this value]<br>
    <b>[link]</b>   [value<b>4</b>]   [number of records for this value]<br>
    <b>[link]</b>   [value<b>5</b>]   [number of records for this value]<br>
    ....<br>
    <b>[link]</b>   [value<b>n</b>]   [number of records for this value]<br><br>
    where [value<b>1</b>] - [value<b>n</b>] - all available values for the group by field.<br>
    Clicking the <b>[link]</b> link displays the same page with all the details records (records type of <br>
    "[other type of link]   [record<b>m</b> for value<b>n</b>]") for the corresponding <br>
    [value<b>n</b>] value. <br>
    <br>
    The number of records for every value in group by field might be different.<br><br>
    Is there a way to set up the pagination to the <b>first page</b> every time the <b>[link]</b><br>
    is clicked? <br>
    The way it's done now: it remembers the page you are on and often the <br>
    report is displayed blank until you clicked the <b>1</b> (the first page link). <br>
    I am using the <b>"Search Engine 1,2,3..."</b> pagination, APEX v. 2.0.0.00.49.<br>
    Thank you.<br>
    Zhanna<br>

    Have you tried using the reset pagination (RP) keyword in the clearcache position in the URL of your link?
    Earl

  • AJAX calling report from one page to another not Reseting Pagination

    I have links on one page that when clicked are calling a report on another page and loading it in a DIV with AJAX. The problem I am having is that the reports on the 2nd page are built dynamicly depending on the link you click. If you are viewing lines 16-30 and go to a report that only has like 5 lines, you get the Need to Reset Pagination error.
    Invalid set of rows requested, the source data of the report has been modified.Reset Pagination>
    In the htmldb_Get line, I thought you could set it to reset pagination when it fires. The AJAX is below. Does the RP need to be somewere else? or am I just missing something...
    function doReport(pC,pM) {
    document.getElementById('report_drop').innerHTML = 'Loading Page...';
    var tableRow = document.getElementById('reports');
    tableRow.style.display = 'block';
         var get = new htmldb_Get(null,$x('pFlowId').value,'RP',2);
            get.add('P2_CODE',pC)
            get.add('P2_MPC',pM);
         gReturn = get.get(null,'<clip>','</clip>');
         get = null;
         $x('report_drop').innerHTML = gReturn;
       init_htmlPPRReport($x('report_drop').getElementsByTagName('DIV')[0].id.replace('report',''));
         return;
    }So from what I understand the line below should be resetting this
         var get = new htmldb_Get(null,$x('pFlowId').value,'RP',2);   Edited by: Matt.Smith on Jul 18, 2011 12:08 PM

    Hi,
    Source setting for that form page item P1_COUNTRY is
    Source Used:"Only when current value in the session state is null"
    Source Type: Static Assignment.Since i build this form along with report.
    Is im missing something.
    Regards,
    Mini

  • How to Reset Pagination Page called by a button defined in Select Statement

    Its easy to reset the pagination for a page that is called using a 'Button' such as 'Create'.
    But
    I've defined a button in my records list by using the this entry in the select statement:
    (some characters have been removed to allow for its inclusion in this post)
    href="f?p=&APP_ID.:12:&SESSION.::NO::P12_SEARCH_BLDG1,P12_SEARCH_FLOOR:'||BLDG_ID||','||ID||'">'
    || 'img src="#IMAGE_PREFIX#connections.gif" border="0" alt="Icon 4"'
    ||
    "CONNECTIONS",
    It works great, Except, I need to reset the pagination for the page, (P12_),
    Because I have similar buttons defined on other pages that also call page, (P12_).
    Can you help me?

    Hi Gary,
    see the f?p URL format at http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/concept.htm#BEIHCICF chapter "Clearing Session Cache for Two Pages While Resetting Pagination"
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Maybe you are looking for