Pagination resubmits the query to the database.

I have a standard report fed by a dynamic query to retrive the data based on the parameter passed. All parameters reside on one page and the report it self is on a new page. When user clicks a go button the report is submitted with a dynamic query based on the user input parameters. The report some times takes a minute or two to capture the result set and display and depending on the number of rows fetched spans multiple Paginations. We recently noticed that every time the next x row arrow is clicked the page is resubmitted and the query to the database is resubmitted and this is a bad experience to the user to wait another minute for the page to return next x rows. Please help resolve this issue.

Hi User XY,
this is the standard APEX behaviour, every time you want a new subset (get next/previous page) the query is executed again.
You can:
- read all rows at once
- tune your datamodel and/or query to get faster response
- prepare the data in an APEX Collection (e.g. with APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY*) and let your report read from the collection
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at

Similar Messages

  • The query against the database caused an error in https: site

    Hi
    I have created a new Data source and External content type in sharePoint 2013
    I have also given all the permission to this Content type (including "Users(Windows)")
    I also having edit permission in the Sql-database.
    I have tied almost all the possibilities given in the net for this error.
    still the error("the query against the database caused an error") is there.
    Is this because of "https:/ " in the url?
    Can any one give a suggestion / solution for this?
    Thanks
    S H A J A N

    Hi,
    Can you please check ULS Log as well as event viewer, to see if there's any related error reported?
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • While executing the query in the web template I am  facing below issue

    Hello SAP geniuses,
    Please help me on my issue  ,
    while executing the query in the web template i am  facing below issue.
    The variable for characteristic (region) is appearing but this characteristic (region) is not appearing in the free characteristic zone  but when we are executing the query with out webtemplate it is showing both variable and free characteristic
    can anybody help us to identify what is the issue with the web template.
    Thanks
    Alok

    Hi,
    Plz check ur report and execute at the designer and take its technical name and go to RSRT. log out and log in and try..
    if not check ur authorisation.
    Regards....KP

  • Problem while changing the query of the field in Oracle apps 11.5.10

    Hello All,
    Requirement:
    User want to change the query of the LOV attached to Ordered item field on Line items tab on the Sales order form in Order managment
    Block name = 'LINE'
    Field name = 'ORDERED_ITEM_DSP'
    LOV attached to this field in FMB: ITEMS
    LOV attached to this field in front end: ENABLE_LIST_LAMP
    Problem: Following code is firing at all points (Debug messages are appearing at all points) but Query of the LOV attached to item is still same.
    How can in FMB LOV is "ITEMS" and in front end "ENABLE_LIST_LAMP"
    My guess is there is some problem with the LOV name which we are passing in the code below. Because LOV name attached to item are different in front end and FMB. There is no LOV in FMB which has “SYSTEM ITEMS Description” kind of structure.
    I have written following code in custom.pll (l_chr_rg_query is query taken from the record group attached to “ITEMS” named LOV with some modifications ex: rownum<6 so that it will show only 6 records in LOV if it is really firing our query for LOV)
    IF ( form_name = ‘OEXOEORD’
    AND block_name = ‘LINE’
    AND field_name = ‘ORDERED_ITEM_DSP’
    AND event_name = ‘WHEN-NEW-ITEM-INSTANCE’
    THEN
    MESSAGE (‘message1’);
    l_chr_rg_name := ‘XXLION_UNIFORM_CODE_RG’;
    l_chr_rg_query :=
    ‘SELECT item, item_id, item_description, inventory_item_id,item_identifier_type,null           item_identifier_type_meaning, ‘
    || ‘inventory_item, address, cust_address, item_definition_level ‘
    || ‘FROM oe_return_items_v ‘
    || ‘WHERE (sold_to_org_id = :parameter.lov_num_param1 OR sold_to_org_id IS NULL)’
    || ‘ and rownum < 6 ORDER BY item’;
    MESSAGE (‘message2’);
    l_rg_id := FIND_GROUP (l_chr_rg_name);
    MESSAGE (‘message3’);
    IF ID_NULL (l_rg_id)
    THEN
    MESSAGE (‘Creating record group here’);
    l_rg_id :=
    CREATE_GROUP_FROM_QUERY (l_chr_rg_name, l_chr_rg_query);
    END IF;
    errcode := POPULATE_GROUP (l_rg_id);
    MESSAGE (‘ERROCODE is : ‘ || errcode);
    L_lov_id := FIND_LOV (‘ITEMS’); --My guess is this LOV name is the source of problem.
    MESSAGE ('Error code is4');
    SET_LOV_PROPERTY (l_lov_id, group_name, l_rg_id);
    MESSAGE ('Error code is5');
    SET_ITEM_PROPERTY ('LINE.ORDERED_ITEM_DSP', lov_name, 'ITEMS');
    END IF;

    I found that there is no problem with code. My problem is not technical, its a functional problem.
    It is related to Inventory's "System Items" KFF.
    Can anybody tell me, to this "System Items" KFF, one value set is assigned. but it is of none type of value set. so from where the values in LOV are coming?

  • Which Table Store the Query in the Query Manager?

    Hello, I have looking for the table which store all the query inside the Query Manager.
    From this i can retrieve the query without open the program.
    Please help. Thanks.

    Hi William,
    Try this Queries in MSSQL Server Management Studio and dont use Query Generater.
    1. Run this Query, Result: Query Manager Details
    SELECT * from OQCN
    2. Run this Query, Result: Query Details on Query Manager
    SELECT * from OUQR
    Regards,
    Madhan.

  • Publising the query in the role.

    Hello experts,
    Requirement:
    I was asked to assign an existing queryin the system to a particular role which is also already existing.
    Action Performed:
    I have published the query in the BEX query designer in the specified role with Publish in role option.
    Issue:
    I am able to see the query in the role in PFCG(ZS_XX_BEX_MENU ) .
    But the same i am unable to see  in Query designer when I try to open the query from the role in which I publised.
    I come out BEX and logged in again but still i am unable to see the query in the role.
    Could ayone help me to reslove this issue.
    Regards,

    Hi
    Yo can  go to the open queries in the query designer->just click (highlight) the query and then click on the third option from the left it is assign to the role.
    It wil take you to the all the role options.
    just click on your particular role and say creat.
    it will assign the query to that role.
    you can chjeck it in the roles tab.
    Also can try this
    try S_RS_FOLD to give the possibility to select query from Infoarea
    Hope this helps
    Many thanks
    Kiran

  • IAm getting the error when iam opening the query in the Designer

    hi
    I had opened the query in the DEvelopement and i had got the error message that Bex transport request is not available or not suitable
    I Got this error for the first time
    can any body help regarding this
    Please search the forum before posting a thread
    Edited by: Pravender on Feb 4, 2012 11:08 AM

    you need to cretae a new transport request to make changes to your query
    pls see Bex Transport request is not available

  • Need to save the query under the correct role

    Hi Experts,
    I need to save the query under the specific role. So is there anyway to find the query location by role??
    Thanks
    Regards,
    Arpan

    Hi,
    RSZCOMPDIR --> RSRREPDIR -->AGR_HIER
    From RSZCOMPDIR get all the entries of queries.
    compid is query name, take compuID and pass to RSRREPDIR.
    get genuniid and pass to AGR_HIER's sap_guid.
    AGR_NAME in AGR_HIER is role name.
    please check this.
    -Sriram
    Message was edited by: Sriramvijay R
    Message was edited by: Sriramvijay R

  • Log the query of the "Execute Query Task"

    Hi,
    I want to log/watch the query executed by the "Execute query Task". It's a query  with different variables, the different variables i can see in one of the debug windows and these looks OK, but the query doesn't do what's expected. So i want to see the whole query, is that possible?
    Query logging on the database server isn't an option. The server is an oracle server and the dba doesn't want to change this setting.
    Thanks,
    Dennis

    You could use a single variable to store your entire query, and use that in your Execute SQL task. Basically, you need to set the variable to evaluate as an expression, then build your query string in the variable. You can use this to combine your
    other variables into the query, and see it as one value at runtime.
    I am using SSIS 2008. I know I can do it with a variable. But I was wondering why SSIS does not allow you to log the query easily. Just for this, I will have to create a variable and a script task :(

  • How to put variable selection and the query result the same screen

    Dear all,
       how can I put the variable selection and the query result in the same screen? Please advise. Thanks.
    Jin Ming

    Not sure if you are saying you want the prompts on the same page as the results... however in 7.0 with BEx Analyzer, you can insert a text object from the design toolbar and assign it to the variable.... this way, lets say you run query for period 6, then the text object will display "6" on the same area where the query results are.

  • Universe Designer vs BEx query - Can't see the query in the OLAP Cubes list

    Hello Experts,
    We are facing a rather strange issue:
    While creating a connection to an existing BEx query - which wasn't being used by BO before - we aren't able to see that one query in a long list of available multiproviders/queries on the universe side.
    We already checked the option on BEx analyser to authorize external access to the query, with ODBO.
    The connection type we're using is the same for all the other universes built on top of BEx queries: SAP BW Client. Again, we already have a bunch of universes built using this method, but we can't seem to find the BEx query in the OLAP Cubes list.
    Does anyone have a lead on what may be causing this issue?
    Our environment is:
    - SAP BOE XI R3.1 SP2
    - SAP BW 3.5
    - BEx Analyser
    - Integration Kit
    Best Regards,
    Francisco

    Hi,
    i don't know, you'd have to search the BW-BEX component for notes.
    I noticed it with a revision of SAP GUI Front End tools 720 SP7 i think
    I applied the latest corrections (SP08 or 09) and that tickbox worked ok again.
    You might notice - as i did - that when you go back to check the bex query - that property becomes 'magically' unselected/
    Regards.
    H

  • Set_block_property does not called the query from the where clause

    Hi all,
    I have two blocks in the Oracle form 6i. Master link with the detail. Because of the data is quite huge if I have the auto query when the form is loaded hence I have two enter parameter created of From_date and To_date together with button to execute the query when that two parameter is being filled.
    I have the following quotes in the button of when-button-pressed :-
    BEGIN
    set_block_property('act_vw_sale_comm', default_where, 'invh_dt >='''|| to_date(:act_vw_sale_comm.fdate,'dd/mm/yyyy') ||''' and invh_dt <= ''' || to_date(:act_vw_sale_comm.tdate,'dd/mm/yyyy')||'');
    go_block('act_vw_sale_comm');
    execute_query;
    set_block_property('act_vw_sale_comm', default_where, '');
    END;
    However, nothing being displayed when I click on the button. Anything wrong on the above statement ? Please help me. thanks.
    Rgds
    Lim

    BEGIN
    go_block('act_vw_sale_comm');
    set_block_property('act_vw_sale_comm', default_where, 'invh_dt >= '''|| :FDATE ||''''' AND invh_dt <= '''|| :TDATE ||'''');
    execute_query;
    --set_block_property('act_vw_sale_comm', default_where, '');
    END;
    Now, I have the above statement, but still the same when try to execute the query, this time, the screen execute but does not show anything and close my form straight away. Why!
    Anyone can help me?
    Thanks
    Lim

  • View and the query for the view giving different datasets

    I have a view created with the below syntax.
    CREATE OR REPLACE FORCE VIEW vw_name (/*column names*/ )
    AS SELECT /*column names*/ from tables
    When I execute the query with which the view is constructed , I m getting different data set which contains 4690 rows
    and when I exeute the view I m getting dataset which contains only 4657 rows.
    Can you please explain why the differnce in count when the source for both is the same.

    Can you please explain why the differnce in count when the source for both is the same.Answer should be one of the following
    1. The two query are not same
    2. The table data has been modified
    3. You are seeing at the wrong thing (manual error)

  • RESTRICT THE QUERY IN THE REPORT

    Hi.
    I have created a Data-Block which doesn't based on a table. In this Block I
    have a Text-Item which I need to restrict my Query.
    For example I write in the Text-Item the "empno" 7788. If I click the OK-Button
    then reports should start and it must show me a report of all Information of
    this employee.
    To do this I have created in Forms a Report. When Reports Builder start I can
    write my Query. I wrote:
    SELECT * FROM emp WHERE empno=:control.empno;
    But it doesn't work so. What must I do.

    You need to pass the value in your Form item to the report as a parameter - read up in the reports documentation about creating and using Reports parameters

  • What will be the query for the below stated problem..??

    Dear Sir
    I want that in Incoming payment after selecting a Customer when we right click and select payment means under checks tab the bank details of that customer should be there i.e. According to Bank Code its Branch and Account no be shown with the help of a query. If anyone knows the query for this please let me know...

    Hello jyotasna ,
    Let me try explain
    SAP Process :-
    When you make incoming payment with Cheque or bank then this is not complete sale cycle.
    Bank Offset Account      Debit
    Customer Account          Credit
    You should make deposit(Banking>Incoming Payment>Deposit) for which you have made incoming payment.and here we put all info for bank account
    Bank Account  Debit
    Bank Offset account Credit
    Why :-
    Suppose your client said that he deposit your cheque in bank in this date but due same bake issue or cheque issue the same cheque deposited in next day.
    In this senario if i made this entry in SAP then we need to modify it  based on Bank Reconciliation Statement(BRS)
    We also have bank reconciliation set for same
    Is there any confusion ?
    Thanks
    Manvendra Singh Niranjan
    Edited by: Manvendra Singh Niranjan on Jul 13, 2011 1:10 PM

Maybe you are looking for

  • PHP/Oracle Web Application Framework

    Hi, for people hopping on the Oracle/PHP bandwagon, there's a PHP object oriented Web Application framework that supports Oracle 8.0.5, Oracle 8i, 9i and 10G. It's called 'Achievo ATK' and can be found on http://www.achievo.org/atk It makes developin

  • Invoice simulation issue

    Dear Gurus, PO has has raised for 4 items each with Qty 500 item1 500 qty   value 4990 Eur item2 500 qty    value 4990 Eur item3 500 qty    value  460 Eur item4 500 qty     value 460 Eur GR happened for item1 491 qty   value 4900.18 Eur item2 500 qty

  • How to use multipe songs with a slideshow ?

    Yesterday suddenly some clients came over to see my work. Besides showing them the albums i thought it would be cool to also to show them a slideshow. I knew lightroom could do this, so i quickly selected a bunch of foto's and went to the slideshow m

  • New to Java: Forcing Open development? Can I choose?

    Dear brewers, I am only just delving into the world of java. Though aware and savvy of the things that make the world of computing tick, I cannot claim to have vast proramming experience. I have been exposed to C and C++ and the frustrations that com

  • What is the logic hierarchy of Library?

    I understand that the logic hierarchy of Aperture Library is: Library/Projects/Folders/Albums but really don´t understand very well the meaning of "folders" beacuse when I import a folder into a Project it becomes an Album. Only when a folders contai