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

Tags: Database

Similar Questions

  • 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 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

  • Insert the value of a column in the report in a page with JavaScript element - 2?

    Hi guys,.

    As explained here:
    http://jholoman.WordPress.com/2012/02/26/Apex-4-1-page-items-to-submit/

    We have two reports, sources of the region including:

    Select * from dept
    and
    Select * from emp where deptno =: p1_deptno

    IN report of the departments link attributes, we use this script to set the value of the point P1_deptno
    onclick = "$s ('P1_DEPTNO', #DEPTNO #); return false; "
    In the report used region, on the article Page to submit, we put: P1_DEPTNO

    Then, we use a dynamic action to refresh the report used (she should get updated when the value of P1_deptno). where it is supposed to show the employees of a specific Department:

    But I have failed to do... You can pls, take a look:

    http://theexecutivetowers.info:8282 / apex
    workspace: opener
    user: fat
    PWD: fat

    Kind regards
    I use apex 4.1 on win 2008 Server. listener 1.1.3 deployed on glassfish 3.1

    I do not have your pencil link to work. This column did not assess the value of the #DEPARTMENT_NAME column.
    Who estimated that:
    OnClick = "$s ('P1_DEPARTMENT_ID', #DEPARTMENT_ID #); return false; »

    as opposed to
    OnClick = "$s ('P1_DEPARTMENT_ID', 10); return false; »

    I got your columns Dept ID name and dept to become links by their implementation. You can see what I did there. I defined a function in the page header.

    You also had a typing mistake in your SQL for employees (p1_dempartment_id) so I've corrected it to p1_department_id.

    All together.

  • 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 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.

  • Insert value in a column of the report in a page with JavaScript element?

    I have a regular report. He holds a single column, and each line is clickable (as if it is a link). When you click on a line, a modal pop-up window appears (created by the use of JavaScript).

    What I want is that when I click on a line, the value of the line I've selected is inserted in a page element. I want to use JavaScript so that I can do this dynamically, without refreshing the page.

    So if this column name is #TEMPLATEID #, then I want a page element (say P24_TEMPID) to get the value of the templateid some selected line.
    The function to open the modal is named OpenForm, I'd like to be able to write the code to insert the value in the page element that you want to be in this same function.

    How can I write this in JavaScript?

    Hello

    You cannot use surrogate column #MEALTYPEID # in the header of the page JavaScript. How APEX know value of line witch who is?
    Pass the two values of the column as a parameter
    JavaScript in the HTML page header

    function openForm(pTemplateId,pMealTypeId){
     $s('P24_TEMPLATEID', pTemplateId);
     $s('P24_MEALID', pMealTypeId);
     $('#ModalForm').dialog('open');
    } 
    

    Call JavaScript as

    javascript:openform('#FOODTEMPLATEID#','#MEALTYPEID#');
    

    Kind regards
    Jari

    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • 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 view current firefox page by using the keyboard shortcut without concentrating on the firefox window.

    I want to refresh the current page tab that the firefox browser open without focusing on that. For example, I focus on a text editor (creating a server-side code) and I save some changes and trigger my custom shortcut (IE [ctrl + alt + space + a]) key to refresh the firefox browser without concentrating on it.

    You can do that with a keyboard shortcut without opening/development the Firefox window.

    Maybe use this extension:

  • 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

  • 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

  • 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

  • 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.

Maybe you are looking for