Interactive report loosing pagination state

Hi I need your help please,
I have a page with 2 reports in a master detail fashion. The master report is an interactive report with a link that when clicked loads the record detail on the second report; this works fine.
However when the page reloads after the click the master (interactive) report is apparently re-queried from the database and the rows change, it goes back to pagination 1 , independently if when I clicked on the record it was in the pagination 3 or 11 or any, as a consequence even when I have the detail loaded in the second report I cannot see the original row in which I cliked on the main report.
How to avoid this?
Thanks,
_OM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hi 170a424f-1515-4eb1-98cc-a0d75da3970c,
Could we get you to go into the profile and change 170a424f-1515-4eb1-98cc-a0d75da3970c to some convenient name, nickname or handle?
Start a new thread.  Yes, that's exactly what the "powers that be" want you to do.  Start a new "thread" not resurrect an old one.  In the general case, your situation may be different enough that a different solution would be warranted.  You can refer to this old thread for reference.  Besides there are a couple things we need to known that affect what the possible solutions can be.  When old, particularly closed threads, are re-opened, additional points cannot be assigned for those who help with the solution.  This is import to some folks.
[And I have to type most this in because copy/paste has not been working for me on the forum.]
Full APEX version
Full DB/version/edition/host
OS Web server architecture (EPG, OHS or APEX listener/host OS)
Browser(s) and version(s) used
Theme used
Template(s) used / modified  -- (Which is relevant/important for some problems.)
Region/item type(s)
Okay, to your question.  I think a solution might be to refresh each region (master, detail) separately -- a partial page refresh. Have you done that before?
Start a new thread of your own and perhaps someone will have the help you need.
Kind regards,
Howard

Similar Messages

  • Interactive report with pagination

    Hi,
    i have create an interactive report with pagination .i have follow instraction form
    [http://dbswh.webhop.net/apex/f?p=BLOG:READCAT:0::::CATEGORY:10800346812869]
    i have put JQuary in Page HTML HEADER .
    Now it show me that code in header in my page .No value in my pagination select list.
    How can i solve this problem.
    Thanks

    Hi friends,
    i have sort out that problem,
    i have jus put JQuary code in JavaScript Section.
    Thanks

  • Can't see interactive report page pagination icon

    Version 3.2.0.00.27
    When my interactive report first appears, it displays "1-15" in the pagination region. It does not show an icon to let me display the next 15 rows.
    However, if I modify the report (as a user), and save that version (as "temp") so that I now have the "Working Report" and "temp" tabs, the pagination now includes the next page icon (i.e. 1-15 ->)
    What do I need to do to have the next-page icon appear in my default report?
    Thanks,
    -Ken

    Hi Sharmila,
    About privilege it4s ok, I have full control, all the permissions.
    When I do "Refresh Portlet Repository" it gives me this ....
    Portlet Repository Refresh Status
    Started By: RENATO
    Started On: August 27, 2002 09:38:17
    Completed On: August 27, 2002 09:38:36
    Refresh Status: Complete
    Refresh Result: Succeeded
    View Details:
    Error: Unable to perform query (WWV-10202)
    ORA-01722: invalid number (WWV-11230)
    No row returned.
    Could be this error the problem ?
    If yes, do you have any ideia about how to deal with it ?
    Thanks !
    Best Regards,
    Renato

  • Issue with Interactive Report

    I have a report that grabs over 10,000 rows (it's an inventory). When I run it from sql plus, it is pretty fast. When I run it from a standard report, again it's pretty fast. However, my interactive report takes about 2 min to load. I did a p_trace and got this result from the accompanying TKPROF
    <pre>
    select
    ROWID as apxws_row_pk,
    "MASTER_STYLE",
    "STYLE_DESCR",
    "STYLE_LINK",
    "STYLE",
    "COLOR_NO",
    "COLOR_DESCR",
    "LINEPR",
    "RETAIL_PRICE",
    "AVL",
    count(*) over () as apxws_row_cnt
    from (
    select * from (
    select style,
    style_link,
    style_descr,
    color_no,
    color_descr,
    avl_qty,
    linepr,
    retail_price,
    master_style,div,
    k_apex.return_avl_matrix(style,color_no,k_apex.f_get_value('WHOUSE'),:global_cust_no) AVL
    from nkw.vw_style_chooser
    where (div = :global_div_no or :global_div_no is NULL)
    ) r
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    order by ROWID
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 2 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 17 0.67 0.65 271 62548 8700 17
    total 19 0.67 0.65 271 62550 8700 17
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 61 (recursive depth: 1)
    Rows Row Source Operation
    17 WINDOW SORT
    10000 COUNT STOPKEY
    10000 NESTED LOOPS
    10000 NESTED LOOPS
    10000 NESTED LOOPS
    10000 NESTED LOOPS SEMI
    10000 TABLE ACCESS FULL INVENTORY_M
    10000 INDEX UNIQUE SCAN PK_ITL (object id 31210)
    10000 TABLE ACCESS BY INDEX ROWID COLOR_M
    10000 INDEX UNIQUE SCAN PK_COLOR_NO (object id 30737)
    10000 TABLE ACCESS BY INDEX ROWID COSTING_M
    10000 INDEX UNIQUE SCAN PK_CS_STYLE (object id 30759)
    10000 TABLE ACCESS BY INDEX ROWID COSTCOLS
    10000 INDEX UNIQUE SCAN PK_CCL_SKU (object id 30752)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    db file scattered read 26 0.01 0.03
    db file sequential read 70 0.00 0.06
    </pre>
    Is there a way to only have it start with a few hundred rows to speed up the process?
    Thanks,
    Scott

    What is the pagination type that you have selected in the in the interactive report ? (Pagination type is under "Pagination" tab of interactive report attribute). Ensure that it is not set to "Row ranges X to Y of Z". That can be one of the reason for slow performance.
    Regards,
    Ashish
    http://www.dbcon.com

  • Mixing of interactive report and classic report fails the RESET PAGINATION process.

    I have a tab page where i got 3 different reports REPORT_A (classic), REPORT_B(interactive)  and REPORT_C (CLASSIC) in the same alphabetic order. I have a reset pagination page process which will always fire (without any condition) when you visit the page via tab.
    The reset pagination process which exists in the before header stage is firing but not resetting the interactive report. It does affect the subsequent classic report REPORT_C as well. The REPORT_A would reset pagination fine since it exists before the interactive report. Is this a know bug in apex?
    I created a test demo application with exact steps to reproduce the problem. The steps are in the demo website itself.
    http://apex.oracle.com/pls/apex/f?p=56638
    U: testuser
    P: password
    Apex Version: 4.2.4.00.08
    In my real application i would have a dropdownlist in the page based on which I would filter the data. The dropdownlist will have a corresponding after-submit branch which will handle the reset pagination & RIR absolutely fine. But when we visit the website through tab the above problem would crash the page.
    I tried solutions like gReport.search('SEARCH') but that will fix only the interactive report, not the classic REPORT_C. That is just a hack anyway.
    Any ideas.?

    Ramani_vadakadu wrote:
    in classic report pagination need to be make it up max rows in APEX_SCHEMA(APEX_040200) itself. i was fixed this issue long back myself,but right now i don't remember which table! so please check the schema and track it.
    This makes very little sense to me. Please explain this in detail. Are you advocating making changes to APEX metadata by executing DML on tables in the APEX_040200 schema? Doing so will leave your APEX instance in an unsupported an possibly inoperable state.

  • How to load only first set of rows only in pagination of interactive report

    Hi all,
    Iam using 3.2 x and database 10g.
    I have created interactive report and it contains 500000 records. and iam using pagination x to y but background it loads complete rows from database.
    To load complete 500000 records page taking 10 minutes.So My reqiurement is I need to load first set of rows like 500 rows and Once i click next button then only it should load next set of rows like 501 to 1000.
    Please tell any idea to resolve the above problem.
    thanks
    balu

    Balu,
    try to trace your page to see how your statement can be tuned. To do that add &p_trace=YES to the URL.
    This creates a standard Database Trace file which can be analyzed with TKPROF or SQL Developer or similiar tools.
    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

  • 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

  • Pagination Reset Error on Interactive Report

    I have an interactive report that shows 15 rows per "page." My user clicks next page at the bottom to say the 3rd page (rows 31-45) and then clicks on a column header and types a valid value in the search box for the column. The interactive report then returns an error that says
    Invalid set of rows requested, the source data of the report has been modified.
    Reset Pagination
    I have an unconditional branch on the page that resets pagination. However, I don't believe the interactive report is actually submitting the page when it returns this result. Is this just a bug with interactive reports or did I miss something?
    For reference, we're using Apex 4.0.2.00.07
    Theme 11. Green Spring

    Hi,
    Bit same kind of post here
    Reset pagination with dynamic action?
    Regards,
    Jari

  • Pagination on interactive report - how to move it on my layout

    okay, I am working with the basic interactive report, no tweaks. My end user doesn't seem to worry about much horizontal scrolling, although it goes against my personal web dev standards to do that without significant necessity. But with the templates as they are, the pagination for the next/prev set of records is WAAAY over to the right. I find this bothersome, and for the benefit of my user, I would like to left-align this. I've looked on Google, done a search in this forum, and checked the APEX docs, not much leaping out at me. I suspect I can tweak a div class on some template, not having an easy time finding that.
    helpful thoughts on this? TYIA, and points for a working idea.

    Hi,
    Have you try change "Pagination Display Position" from Interactive Report Attributes?
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Interactive Report Download and Session State Protection

    I have created an Interactive Report in an APEX application that I have enabled
    session state protection for. The issue I am having is with the "Download"
    functionality of the interactive report to a .csv file.
    The URL created by selecting Download from the drop down (javascript:gReport.controls.download();)
    is built or constructed without a checksum thus causing the error below.
    Error
    No checksum was provided to show processing for a page that
    requires a checksum when one or more request, clear cache, or argument
    values are passed as parameters.
    The anchor tag containing the URL (/f?p=app_id:page:session_id:CSV:) is contained within
    &lt;div id="apexir_CONTROL_PANEL_DROP" class="drop_panel
    clearfix" style=""&gt;
    Running the following: Application Express 3.1.0.00.32 on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Is there a way to add a checksum to this? OR does anyone have any ideas on how to work around this?
    Edited by: Bryce Tuohy on Feb 26, 2009 10:08 AM

    WORKAROUND:
    1.) Create hidden ITEM on page (I named it P23_PREPARED_CSV_DOWNLOAD_URL).
    Enter the following for the ITEM
    as the SOURCE_TYPE : PL/SQL Function Body
    as the SOURCE: return apex_util.prepare_url('f?p=&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.:CSV:')
    2.) Create BUTTON that executes javascript to open POPUP window with this url.
    a.) Create Button and enter
    &lt;a href="javascript:popupURL('&P23_PREPARED_CSV_DOWNLOAD_URL.')"&gt;Download and Save to CSV file&lt;/a&gt;as the "Text Label/Alt"
    Originally had custom code for javascript POPUP and this is not needed .... just use the APEX javascript function.
    Edited by: Bryce Tuohy on Mar 5, 2009 10:47 AM

  • How to run a EXECUTE IMMEDIATE statement in a Interactive Report

    Hello all!!
    I need to make a dinamic construction of a query to execute in a Interactive Report, but the Region Source only allows simple SELECT statements. There is any way to run a EXECUTE IMMEDIATE statement in a Interactive Report Region Source?
    Regards Pedro.

    Thank you Andy for your reply.
    I have been testing for a while the use of a collection in the interactive report but i am unable to load data in the interactive report.
    I created the collection successfully in the SQL Commands with the code:
    declare
    v_sql varchar2(32000);
    begin
    v_sql:='select ename, job from emp';
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY('coleccao_emp',v_sql,'NO' );
    end;
    I tested successfully the creation of the collection with the query:
    SELECT c001, c002
    FROM APEX_collections
    WHERE collection_name = 'COLECCAO_EMP'
    My problem is: the data of the collection are returned in the SQL Commands but when i run the query statament in an interactive report, report or even a Pl/Sql region in my application the data aren't displayed, only the message (No data found).
    Can someone explain why, besides the collection is populated the interactive can not print the results.
    Regards Pedro.

  • Interactive report jquery not executed on pagination

    recently i fell into another problem when using jquery in an interactive report.
    in the page header i do this
    <script type="text/javascript">
    $(document).ready( function() {
       var pageID = $('#pFlowId').val();
       $('.Artikelinfo').each( function(i) {
                var $item = $(this);
                var get = new htmldb_Get(null,pageID ,'APPLICATION_PROCESS=GET_ARTIKEL_INFO',0);
                get.addParam('x01', $item.attr('artnr'));
                $item.attr('rel', get.url());
                $item.attr('relTitle', $item.html());
                return true;
       $('.Artikelinfo').cluetip({
             arrows: true,
             tracking: true,
             titleAttribute: 'relTitle'
    });in the link attributes of a column i put this:
    target="_blank" class="Artikelinfo" artnr="#NUMMER#" rel="" reltitle=""it works like charm... but only on the first page.
    as soon as a change page the jquery is not executed, the attributes are not set.
    i think this is because while pagination of the IR the actual page is not reloaded.
    how can i achieve that that the jqury part is executed after pagination?
    u can find an example here [http://apex.oracle.com/pls/otn/f?p=19645:1] username "user1" password "abc123"
    hover over the first column u will see a cluetip.
    afer the first pagination, the hoverhelp is lost
    thanks
    peter

    below is from http://api.jquery.com/ajaxComplete/
    "Register a handler to be called when Ajax requests complete. This is an Ajax Event."
    "Whenever an Ajax request completes, jQuery triggers the ajaxComplete event. Any and all handlers that have been registered with the .ajaxComplete() method are executed at this time."
    I'm looking into this now...
    Also need to know how to AJAX refresh the IR report to get the changes I did through an AJAX call... ??????
    Anyone???

  • SQL statement with Function returns slow in Interactive Report

    I have an Interactive Report that returns well but when I add in a function call in the where clause that does nothing but return a hard coded string of primary keys and is compared to a table's primary key with a like operator the performance tanks. Here is the example:
    get_school2_section(Y.pk_id,M.pk_id,I.section,:P577_SECTION_SHUTTLE) LIKE '%:' || I.pk_id || ':%'
    I have the values hard coded in the return of the function. There are no cursors run in the function, there is no processing done in the function. It only declares a variable. Sets the variable, and returns that variable back to the SQL statement.
    I can hard code the where clause value to look like this:
    ':90D8D830A877CCFFE040010A347D1A50:8ED0BBFDEAACC629E040010A347D6471:9800B8FDBD22B761E040010A347D0D9A:' LIKE '%:' || I.pk_id || ':%'
    This returns fast. When I add in the function call which returns the same hard coded values, the page goes from returning in 1 to 2 seconds to 45 or more seconds.
    Why does adding a simple function call into the where clause cause such a deterioration in performance.
    Edited by: alamantia on Aug 17, 2011 7:39 AM
    Edited by: alamantia on Aug 17, 2011 7:40 AM

    So you are telling me that the where clause with a function call will NOT run the function on every row? Please explain that to me further?
    if you have code that is the following:
    select a,b,c from a_table where a > 2 and b < 3 and function_call(c) > 0You are telling me that Oracle will NOT call that function on EVERY row it tries to process in the select?
    Thank you,
    Tony Miller
    Webster, TX
    I cried because I did not have an office with a door until I met a man who had no cubicle.
    -Dilbert
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Interactive report--hide statement?

    hi
    I am making an interactive report,but my hide statement is not working.my code is like:
    START-OF-SELECTION.
      SELECT matnr
             mtart
             matkl
      INTO CORRESPONDING FIELDS OF TABLE itab1
      FROM mara  WHERE matnr IN p_matnr.
      WRITE:/4 'Material No.' ,22 'Material Type' ,
             37 'Material Group'.
      WRITE:/ sy-uline.
      LOOP AT itab1.
        WRITE:/4 itab1-matnr ,20 sy-vline ,22 itab1-mtart ,
               35 sy-vline ,37 itab1-matkl,sy-uline.
        HIDE itab1-matnr.
      ENDLOOP.
    AT LINE-SELECTION.
      CASE sy-lsind.
        WHEN '1'.
          SELECT amatnr bmaktx INTO CORRESPONDING FIELDS OF TABLE itab2
          FROM ( mara AS a INNER JOIN makt AS b ON amatnr = bmatnr )
          WHERE a~matnr = itab1-matnr.
          WRITE:/ sy-uline.
          WRITE:/4 'Material No.' ,22 'Material Text'.
          WRITE:/ sy-uline.
          LOOP AT itab2.
            WRITE:/4 itab2-matnr ,20 sy-vline ,22 itab2-maktx,
                     sy-uline.
          ENDLOOP.
    here when my at line-selction is working,in select query,hide is not updated,its contains the last record value f itab1,where it should have value i selected from display.
    thus my seconday list is showing the value of last record of itab1 all time.
    please tell,how to make it working?
    vipin
    Edited by: Vipin on Jun 18, 2008 5:23 PM

    Hi,
    Check the example code , this will help you.
    REPORT demo_list_hide NO STANDARD PAGE HEADING.
    TABLES: spfli, sbook.
    DATA: num TYPE i,
    dat TYPE d.
    START-OF-SELECTION.
    num = 0.
    SET PF-STATUS 'FLIGHT'.
    GET spfli.
    num = num + 1.
    WRITE: / spfli-carrid, spfli-connid,
              spfli-cityfrom, spfli-cityto.HIDE: spfli-carrid, spfli-connid, num.
    END-OF-SELECTION.
    CLEAR num.
    TOP-OF-PAGE. WRITE 'List of Flights'.ULINE. WRITE 'CA CONN FROM TO'. ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
    CASE sy-pfkey.
    WHEN 'BOOKING'.
    WRITE sy-lisel.
    ULINE.
    WHEN 'WIND'.
    WRITE: / 'Booking', sbook-bookid,'Date ', sbook-fldate.ULINE. ENDCASE.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'SELE'.
    IF num NE 0. SET PF-STATUS 'BOOKING'. CLEAR dat. SELECT * FROM sbook WHERE carrid = spfli-carridAND
    IF sbook-fldate NE dat.connid = spfli-connid. dat = sbook-fldate. SKIP. WRITE / sbook-fldate.POSITION 16.
    ELSE. NEW-LINE. POSITION 16.
    ENDIF.
    WRITE sbook-bookid.
    HIDE: sbook-bookid, sbook-fldate, sbook-custtype,
    sbook-smoker, sbook-luggweight, sbook-class.ENDSELECT. IF sy-subrc NE 0.
    WRITE / 'No bookings for this flight'.
    ENDIF.
    num = 0.
    CLEAR sbook-bookid.
    ENDIF.
    WHEN 'INFO'.
    IF NOT sbook-bookid IS INITIAL.
    SET PF-STATUS 'WIND'.
    SET TITLEBAR 'BKI'.
    WINDOW STARTING AT 30 5 ENDING AT 60 10.
    WRITE: 'Customer type :', sbook-custtype,
    / 'Smoker :', sbook-smoker,
    / 'Luggage weight :', sbook-luggweight UNIT 'KG',
    / 'Class :', sbook-class.
    ENDIF.
    ENDCASE.
    Regards,
    Raj.

  • Saving checkbox-state to table in Interactive Report

    Hi,
    I have been working with the information on http://www.apexninjas.com/blog/wp-content/uploads/2012/03/Checkboxes_in_Interactive_Reports.pdf to create an interactive report with a column containing a checkbox for each row.
    My report contains the following (simplified):
    Task_id, Employee_id, Checkbox_column
    The checkbox_column keeps track of which employees work on which tasks, so it could be:
    Task_id, Employee_id, Checkbox_column
    1               1                         0
    1               2                         1
    1               3                         0
    signifying that only employee 2 works on task 1.
    Now, I need to be able to change the 0 to 1 by clicking the checkbox, which already is possible, but I have problems saving that row to the database. Saving the checkbox state is also included in the PDF I used (page 12-14, 'Saving the checkbox state #2'), but I don't really understand where to put the scripts, I haven't worked with scripts and processes before so I could use some help understanding which script I need to put where. All in all, it's not too much code, I just don't understand where to put it.
    The scripts mentioned in the PDF are:
    The first one is a SQL-statement or a package, I imported the package in my environment, so I won't put the SQL here
    This is the only one I know where to put:
    <script type="text/javascript">
    function getCurIRTab()
    var temp_base_report_id = $v('apexir_report_id');
    return temp_base_report_id;
    </script>
    This I don't know where to put:
    <script type="text/javascript">
    document.getElementById('P_IR_REPORT_ID').value = getCurIRTab();
    </script>
    the PDF says:
    Now, create a hidden (just hidden, not protected!) item called P_IR_REPORT_ ID inside a HTML region.
    Important! This region has to be rendered afterthe Interactive Report, so create it in the “after footer” display point!
    In this regions’s footer paste the following JavaScript code, that will assign the hidden item P_IR_REPORT_ID the value of the Interactive Report ID.
    But can we create a region in the after footer?
    This I don't know where to put because the document doesn't specify it:
    apex_ir_query.ir_query_where
    (:APP_ID,--application id
    99,--page id
    :SESSION,--sesion ID
    : P_IR_REPORT_ID -–interactive report ID);
    This I don't know where to put, but I guess it's a 'processing' process:
    declare
    whereStmt varchar2(2000);
    sqlStmt varchar2(2000);
    begin
    whereStmt := apex_ir_query.ir_query_where(:APP_ID,
    99,
    :SESSION,
    :P_IR_REPORT_ID);
    sqlStmt := 'update CHK_TEST set SELECTED = 0 where SELECTED= 1'||whereStmt;
    execute immediate sqlStmt;
    if APEX_APPLICATION.G_F01.COUNT>0 then
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    update CHK_TEST
    set VALID_LINE = 1
    where SELECTED_ID = APEX_APPLICATION.G_F01(i)
    and VALID_LINE = 0;
    END LOOP;
    end if;
    end;
    Can I please get some help understanding where exactly to put these scripts?
    I've been looking around on the forum and Google but I can't find the detailed answer to what I'm looking for anywhere.
    I am currently working with the test environment Oracle supplied us, because we are testing if we can use APEX at our company.
    The version is Application Express 4.2.2.00.11 and it's running on Oracle 11g.
    Just ask if you need any more info.
    Thanks for the answers!
    NDG

    Please put together an example application on apex.oracle.com and provide developer credentials.  This would help prevent multiple posts back and forth about try this, try that, now try this, now try that......
    But until you do that try this:
    I think you already know that the following goes in the page html header.
    <script type="text/javascript">
    function getCurIRTab()
    var temp_base_report_id = $v('apexir_report_id');
    return temp_base_report_id;
    </script>
    Alternately, since you are on apex 4.2 you could just add it to the Page Attributes->JavaScript->Function and Global Variable Declaration field (without the script tags):
    function getCurIRTab()
    var temp_base_report_id = $v('apexir_report_id');
    return temp_base_report_id;
    Now you need to create an HTML region (in display point "after footer").  Then you create the P_IR_REPORT_ID hidden item inside your new region.
    In the region definition you will put the following code into the region footer:
    <script type="text/javascript">
    document.getElementById('P_IR_REPORT_ID').value = getCurIRTab();
    </script>
    Alternately, you could try to add the line to the Page Attributes->JavaScript->Execute when Page Loads field:
    document.getElementById('P_IR_REPORT_ID').value = getCurIRTab();
    This is just an example of the procedure call you will make in your page process.
    apex_ir_query.ir_query_where
    (:APP_ID,--application id
    99,--page id
    :SESSION,--sesion ID
    : P_IR_REPORT_ID -–interactive report ID);
    It is included in this code which you will put into a page process.
    declare
    whereStmt varchar2(2000);
    sqlStmt varchar2(2000);
    begin
    whereStmt := apex_ir_query.ir_query_where(:APP_ID,
    99,
    :SESSION,
    :P_IR_REPORT_ID);
    sqlStmt := 'update CHK_TEST set SELECTED = 0 where SELECTED= 1'||whereStmt;
    execute immediate sqlStmt;
    if APEX_APPLICATION.G_F01.COUNT>0 then
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    update CHK_TEST
    set VALID_LINE = 1
    where SELECTED_ID = APEX_APPLICATION.G_F01(i)
    and VALID_LINE = 0;
    END LOOP;
    end if;
    end;
    Ok, clear as mud!

Maybe you are looking for

  • Kerberos double hop works internally, but not when published via TMG

    Hi all,           Have 2 x IIS 8.5 servers internally with .net applications on them The IIS servers have been configured to use a domain account for their apppool... and credentials are pass successfully from the front end server to the back end ser

  • Smart forms in web dynpro abap

    how to use smart forms in web dynpro abap ???? what are the steps??

  • MM-SUS XI configuration

    Hi experts I am configuring XI MM-SUS and I have a problem, my Idocs goes from R/3 to XI and after tries to go to SRM SUS but some error accur and no log exists, I think the problem is in my Receiver and sender agrements and I don't know what is the

  • Smartview Shared Connections 11.1.2.2

    We have upgraded to 11.1.2.2 from 11.1.1.3 and the shared connection doesn't display essbase servers alone. It displays R&A framework and Planning but not essbase . Couple of diagnostics that I ran : 1. http://server:port/13080/aps/APS returns hyperi

  • Renewing public key certificate used for Seeburger AS2

    My general question is when a public key certificate, used for Seeburger AS2 payload decryption and digital signatures, needs to be renewed, how carefully do the certificate renewal steps need to be coordinated for a seamless transition?  More specif