Refreshing the report DA

Hello.

We have an application built with apex 4.2.5.

Application has a single element. The user enters the value in this element and press to enter.

Application must insert data into the table area and updating of database, then the newly inserted record is broadcast in the report area.

We use a dynamic action for the integration of the database. After that, the same DA refreshes the region.

The problem - the application still displays the old record, newly inserted not one. If we use Refresh region action twice (just to test), second discount return new record.

It seems as if the refreshment area is too fast to return new record.


We have a DA with the first real action for the insertion of data in the database and the second real action for the updating of the region.

How can we resolve this? So the user gets newly inserted record and us do not use Refresh twice.

Thank you.

Kind regards

Dejan

Hello.

I solved the problem by adding dbms_lock.sleep (0.8); After the insertion process.

Otherwise, the discount is too fast.

We use this application across the Canada. Data is in one place. 0.8 second sleep gives insert enough time.

Kind regards

Dejan

Tags: Database

Similar Questions

  • Refresh the report to modal page

    Hello

    I use Apex 5 and with a modal page, I'm not be able to refresh the report that calls this page.

    • I have a region to report on a regular page.
    • I add a button to call the modal page.
    • I record my data, I click on save and return to the page of the appellant.

    My report is not updated. If I create a 'classic form on a page with the report' and the form is modal, when I return to the report, the data is refreshed.

    What should I do to refresh the data?

    Thank you.

    Hello

    on your calling page that contains the report, add dynamic action on the button (or region) who listens to the event "dialog closed." As an action we "Refresh" and indicate your area of report.

    As soon as your modal dialog box is closed, this event will be raised in the calling page and your report will cool off. If you look at our sample Application database, you will find several examples of using this technique.

    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

  • refresh the report after you close the modal popup

    Hello

    I try to call page editing as popup modal as in this example below.

    http://Apex.Oracle.com/pls/Apex/f?p=45420:3:0:no:

    It works fine, but after you change/update a registration and closing of the edit page, is not refresh the main report page (first). How can I change so it refresh the report calling when closed. Please NOTE: I do not want to refresh the whole page, but only the report after you close the page modal popup.

    Apex 4.2

    Thank you in advance... regards

    It worked, now missed me the branching code and the parameter by js... Thank you

  • How to refresh the report region change which column of report selection list

    Hello
    I worked with apex 4.2 and I create a classic report with list (named loved) select a column in the list change in report, update the table with the new value via JavaScript (change) call and woke up very well, and I change the color of the line was updated to make it different from the other lines now I want to update to the report after doing update without submitting the page to show the new color of line update.
    I called javascript:apex.submit() in the update function, but

    My Question
    1. How do I refresh the report after change report column list without sending page
    2-can we enter column name selection list report to submit the Page to refresh the report area


    Thank you
    Ahmed

    See my answer above!

    Here's what I did:

    • Created two hidden page items

    • Created a dynamic action on the page with three real actions. (1) set the item values page. (2) to execute code to update the plsql table. (3) update the region report

    Thank you
    Vikram

  • Refresh the report

    I have a page that has 3 regions.
    Region 1: Chart with animation
    Region 2: Report1 with a link to Report2
    Region 3: I2

    Currently, if I click on the link to Report1, and then the page is sent and I2 is updated, as well as the graph.

    Ideally I would click the link to Report1 and up-to-date data in Report2, without refreshing the page, IE, the table is not updated.
    I tried to play with partial page refresh, but cannot make it work.

    I have a workspace on oracle [http://apex.oracle.com/pls/apex/f?p=4550:1:]

    Workspace: GUSCRIGHTON
    Usernane: ANGUS. [email protected]
    Password: terminator

    Request 33310 GUS_TEST
    Page 43

    Thanks in advance

    Gus

    Hello Gus, c.

    Check your application in the workspace, if the feature works or not?

    What I did is:



    • Writes a javascript function in the header of the region region of employees to refresh the region:

      
      



    • Writes a javascript function in the HTML Page header of your page:

      
      

      The above function is an AJAX call that calls an application process: the SET_ITEM_VALUE that does nothing.
      But the line of code:

      ajaxRequest.add('P43_SHOP_ID',parseInt(p_shop_id));
      

      Adds a parameter to the AJAX request that sets the value of the element for the P43_SHOP_ID element.



    • After the completion of the AJAX call to the line of code:

      EmployeesRefresh();
      

      calls the function to refresh the report used.



    • Finally changed the link in the column to the column SHOP_ID report details of the shop:


      • Target : URL


      • URL :

        javascript:f_set_shop_id('#SHOP_ID#');
        





    • I checked the above features on Mozilla Firefox 11.0.

      I hope that helps!
      Kind regards
      Kiran

  • Refresh the report SQL (Send Page element)

    I want to add a lookup field in a SQL report. I have something like this
    SELECT * FROM emp
    WHERE  emp_no  LIKE  :P1_SEARCH || '%'
    I want to make the asynchronous search on KeyPress. The problem is that a SQL report is not a ' submit: 'attribute as an interactive report. "
    So after I refresh the report:
    $a_report($x('P1_REPORT_ID').value,'1','10','100');
    The report is refreshing (the icon of circle on the top of the screen) but nothing changes cause the: P1_SEARCH supports.

    How can I submit a JS page element?

    Greetings from King,
    Cearnau Dan

    PS: I use 4 APEX and by using dynamic measurements, it is the same as the Javascript call. (still does not submit the: point P1_SEARCH)

    Hello

    Place your footer area

    
    

    And create processes on demand MODEL

    htp.prn('OK');
    

    Kind regards
    Jari

    Published by: jarola December 19, 2010 14:40
    typo

    Published by: jarola December 19, 2010 14:46

    Another typo corrected from code.

    I did fact sample
    https://Apex.Oracle.com/pls/OTN/f?p=40323:78

  • Refresh the report EN change substitute Variable

    Hi all

    Is it possible to refresh the EN that are open through smart view report / work space when the Substitution Variable has changed. As if my report has opened for the year = Curryear, and now curryear value is FY14, if curryear like FY15, I changed it reflects on my report FR who already open.

    Kind regards

    Stéphane

    I saw the same effect when I tried it on Mozilla, I had to clear the cache and then refresh it. Looks like a cache - don't know why you would do that. Using Mozilla?

    You can try IE and Firefox? If both do not work, try to clear your cache and see if this is useful and I would say to trigger a SR.

    Concerning

    Celvin Kattookaran

  • Refresh the report area of PL/SQL (not Page) using the value of the select list

    Hello

    I have a report region based on a "body of the PL/SQL function returning a query'which SQL is generated on the selection of a value of an element from the selection list, select action list is"Redirect and set", but this causes the entire page refresh rather than just the region report." I tried to update the report using only a dynamic action on the item list select (Action now reset to 'None'), but now the report does not appear on the choice of the list. Can someone suggest a solution that will allow me to update this report without refreshing the page? I use APEX 4.2.2 and the syntax of the statement is as follows:

    DECLARE

    v_statement VARCHAR2 (500);

    BEGIN

    SELECT query_text
    IN v_statement
    OF sql_queries
    WHERE query_id =: P2_QUERY;

    RETURN v_statement;

    END;

    where P2_QUERY is Select list item,

    Kind regards

    Kevin.

    KevinFitz wrote:

    The displayed report region is subordinate to the point P2_QUERY is NOT NULL. I guess that the region appears not is because the Action for the select list item is set to None, and so P2_QUERY is always NULL.

    No, the region does not appear because it is subordinated to the P2_QUERY being NOT NULL. This means that the region of report never exists on the page displayed in the browser, so it cannot be updated dynamically. (Dynamic updating is not to evaluate the conditions of the region, and she makes only the content of the report, not the whole region again).

    Remove the condition on the region to report, check the update works and then go back on what exactly are the requirements here. If you want to the area appear only when P2_QUERY has a value, and you want it to be regenerated without submitting and reposting of the page, the region must then be hidden rather than conditionally restored and shown via dynamic when action P2_QUERY Gets a value.

    I tried to add a further Action for the event real value DA but has been a mistake, as stated above,

    All irrelevant if Page to submit items on the region is used correctly.

  • Refreshing the report

    Asynchronous update HTML5 Chart of the APEX4.2 and can set interval (seconds) to update
    But the report does not have this feature
    I hope and graphics as you can set the time of the automatic refresh, and when I open the report, even if the do not click Refresh on your browser, the data can be also according to the set time (60 seconds) Auto Refresh
    Who can help me, thank you very much.

    Depends on... Is it a Standard or interactive report?

    Interactive: Auto-Refresh IRR (interactive report)
    Standard report: automatically update a classic report

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • Refresh the report based on the select list item

    Hello world

    Someone has the answer to refresh a report based on an element that I select in a select list? I currently have the item in the list of selection and a report under him I wrote a sql that fills with data. If I choose an article in my select list, I want to change the data in my report. What I have to write separate sqls for each item to be fired or write some type of process. Can someone help me?

    Thank you
    Ryan

    Write directly in the SQL report. Your select list item will be the variable in the SQL.

  • refresh the report with dynamic action title

    Hi all

    I have a report that is updated with dynamic action. When the update is done, first the value of two hidden variables are defined (P2_ID and P2_NAME) and are subject (using a dynamic action type "pl/sql", with the code "null"; and items to submit page: P2_ID, P2_NAME).

    In the report query, I use: P2_ID in the where clause. Everything works like a charm! The only thing that doen't work, is the title of the region: which is defined as "properties of & P2_NAME.", but the title is not updated when the report is refreshed.

    Is there a solution for this? I hope I am clear enough.

    See Re: dynamic action - update

    If you are right; the native just Refresh action updates the content of the report, it does not perform & POINT. substitutions throughout the region.

    What you could do is use a RANGE named as the title as

    &P2_NAME.
    

    and add a REAL action to your dynamic Action to set the title using Javascript to run code

    $s('my_title',$v('P2_NAME'));
    

    I hope this helps.

  • Refresh the report after download

    Hello. I have a page of interactive report with the download button (2). I have an another page (3) which has the same interactive report as page (2). When you click on the download button in page2 is downloaded the report of page3. What I need now is, once the report is downloaded,the interactive report in page 2 must be updated. I tried different ways but failed. I it again in the apex oracle workspace. Any help is appreciated. Thank you


    Details of the workspace:

    Workspace: XXKIRAN

    USER name: kiran28. [email protected]

    PASSWORD: kiran0425

    App.Id:47917

    Hi Mencis

    Change the button action of defined by the dynamic Action.

    Fix the two dynamic action on the button

    (1) execute JS

    apex.submit('DOWNLOAD');
    

    (2) update the report in the region

    I hope that solves the problem

    Concerning

    Mahmoud

  • Refresh the interactive report without scrolling page?

    Hello.

    I have a page with three interactive reports arranged vertically on the page. I want that each of these reports to refresh automatically, so I added the following to my page header:

    setInterval ("jQuery('#report1').trigger ('apexrefresh');", 10000);

    setInterval ("jQuery('#report2').trigger ('apexrefresh');", 10000);

    setInterval ("jQuery('#report3').trigger ('apexrefresh');", 10000);

    The code works and the data is refreshed, the problem is that when this happens APEX seems to focus on the report, it is refreshing and page scrolls to it. This means that the user could be down at the bottom of page 3 of the report but every 10 seconds they are caught back to 1 at the top of the page report.

    Is it possible to refresh the reports without going through the emphasis placed on them?

    I use the Application Express 5.0.0.00.31

    Thank you very much.

    Andrew V wrote:

    Hello.

    I have a page with three interactive reports arranged vertically on the page. I want that each of these reports to refresh automatically, so I added the following to my page header:

    setInterval ("jQuery('#report1').trigger ('apexrefresh');", 10000);

    setInterval ("jQuery('#report2').trigger ('apexrefresh');", 10000);

    setInterval ("jQuery('#report3').trigger ('apexrefresh');", 10000);

    The code works and the data is refreshed, the problem is that when this happens APEX seems to focus on the report, it is refreshing and page scrolls to it. This means that the user could be down at the bottom of page 3 of the report but every 10 seconds they are caught back to 1 at the top of the page report.

    Is it possible to refresh the reports without going through the emphasis placed on them?

    I use the Application Express 5.0.0.00.31

    See APEX 5 - IR r region without losing the focus on the region of origin for a similar problem, but I do not think that the workaround solution discussed here will be of use to you.

    APEX 5.0.1 patch that contains a fix for this problem is now installed on apex.oracle.com. Try your page there to see if it solves your problem. The patch should be made public quickly.

  • Link chart action for refreshing a report of region within the same page

    Gurus of the APEX

    As long as we have the graph and report region region on the same page and based on the action of graph link must be able to refresh the report region within the same page

    for example: I expense spend by category such as a pie chart and on the link of the action of which I want to refresh a report region by the right of it (in the same page) to show the details contained in this category spend - also I do not have to réactualisiez around the same page, just to refresh the region related to the category Click on the graph

    Any help would be great on this - I use APEX 4.2

    Thank you

    Shas

    Thanks Tom / Scott - sound now worked

    Following my code for the javascript function in the page section,

    function clickPie (pID) {}

    $x('P4_ITEM_CATEGORY').value = pID;

    $('#CategoryDetailsDD').trigger ('apexrefresh');

    }

    And here is my URL of the link graphic action section

    JavaScript:clickPie("#label#")

  • $a_report to refresh a report, but it is not picking up the variable binding

    Hello

    APEX - Express 4.1.0 Application
    Browsers - all
    Database - 11g 2

    I have a tree on a page region. When a user clicks on a leaf of the tree, I want to be able to use the ID to refresh a report in a different region on the same page

    Code for when the user clicks on the map

    $('div.tree_li_a').click (function() {}

    node_id = $(this).parents('li:first').attr ('id');

    If (node_id.substr (0, node_id.indexOf('|')) == 'Y')
    {
    $s ('P4_SELECTED_VALUE', node_id.substr (node_id.indexOf('|') + 1));
    Alert ("value: ' + $v ('P4_SELECTED_VALUE')");
    $a_report ('28576803999973770 ',' 1','20 ', ' 20');
    $a_report ($v ('P4_REPORT_ID'), '1','20 ', ' 20');
    };
    });

    SQL statement

    SELECT *.
    PRODS p WHERE PROD_CODE =: P4_SELECTED_VALUE

    The problem I have is that when the report is run (I know it's refreshing) the P4_SELECTED_VALUE of the link variable is null.

    Pop alert contains the correct value, and when I do the visible P4_SELECTED_VALUE it also contains the value?

    Any help is very appreciated

    Rob

    Rob,

    You insert P4_SELECTED_VALUE value in the APEX session before refreshing the report.

    Add following the JS function in your page

    //insert value into session using JS
    
    function fnSetSessionState(pItem, pValue) {
        var vAjaxDummy = new htmldb_Get(null, $v('pFlowId'), null, 0);
        vAjaxDummy.add(pItem, pValue);
        var vDummy = vAjaxDummy.get();
        vAjaxDummy = null;
    }
    

    and your code...

    $('div.tree li a').click( function() {
    
    node_id = $(this).parents('li:first').attr('id');
    
    if (node_id.substr(0,node_id.indexOf('|')) == 'Y')
    {
    $s('P4_SELECTED_VALUE',node_id.substr(node_id.indexOf('|')+1));
    alert('Value Set: ' + $v('P4_SELECTED_VALUE'));
    fnSetSessionState('P4_SELECTED_VALUE',$v('P4_SELECTED_VALUE'));
    //$a_report('28576803999973770','1','20','20');
    $a_report($v('P4_REPORT_ID'),'1','20','20');
    };
    });
    

    That's how I used the version 3.2 or earlier. But now I prefer to use declarative dynamic actions...

    Kind regards
    Hari

Maybe you are looking for

  • NetBook will not start

    Hi, so I got a virus on my netbook a few days ago. I was going to get rid of it, but I'm lazy and waited and tried to start it until today. I got a blue screen, and I think that the error was bad_system_config_info. It is difficult to say because it

  • Satellite A200 - random stop

    TOSHIBA SATELLITE A200, with Vista operating system. Because of incompatible with several software. I change my OS with Windows XP2. There is none in 1 year. problem. During these months, I have a problem. My computer is shutdown it self when start-u

  • Update error 80071 has 91 Fix

    How can I solve this problem, I was not able to download the updates since December

  • Foglight 5.6.5 | Backup management

    Hello We use foglight 5.6.5 we want to monitor backup devices. like availability, error, jobs, etc... Please tell me, what is the name of cartridge that is supported for foglight 5.6.5? Thank you Christopher F

  • Error 907 invalid cod when the OTA

    Hello I have a problem with OTA Download onv4.1.0.268 (Platform 2.2.0.112).  BB 7250 on cdma network.It says Error 907 invalid cod the jar/jad/cod are created with JDE 4.6 However, I can do OTA using BB 9000 download emulator with the same files / sa