Refresh the query area

Hello team APEX,

I want to refresh the query of a region, it is a region of report, could I do? How?

Never I click on an icon in my interactive report, calling a javascript function which shows the region, but in the application, I have a where clause with a page item clause.

Thank you very much!

Hi Raul,

the blog posting also briefly covers the traditional reports.

For conventional reports, it's a bit more complicated as described above, because there is no attribute "Elements of Page to submit" (again!).
If you need to save values in session in a slightly different way State. I'll try to add that too when I can. (Tip: instead)
the definition of IRR "Elements of Page to submit" as stated in the last point, use the 'Code of PL/SQL Execute' action within the dynamic action,
fire before action "refresh." Just leave the code as 'null '; and set the "Elements of Page to submit" attribute for the elements on your page.
It will work, but unfortunately issues 2 Ajax calls to do, which isn't optimal.)

->
(1) create a dynamic action of type 'run PL/SQL '.
(2) code: NULL;
(3) referred to submit page: put your Page element, you want to be updated on the server so that the query retrieves
(4) after the action create action "Refresh" for the region of classic report

Concerning
Patrick
-----------
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

  • Look up values in the query are retained when a query Panel is used in popup

    We used a panel of popup for the search request. When popup is opened again, the search criteria previous values are preserved. They may not get deleted if pop up attribute of content delivery is lazy not cached. Is it possible to clear these values or is this a bug of frame work?

    This is normal and expected behavior. The query pattern keeps the criteria values, otherwise the query Panel would be empty if you refresh the it by PPR. Depending on the configuration of the ViewCriteria and research underlying link, values can be retained even if you leave the page, and then open the page again.

    If you want to clear the query criteria when you open the context menu, you can implement a PopupFetchListener for the popup. PopupFetchListener runs every time when the popup is open. Here, you can get and to reset the component query programmatically. Check out this blogpost for more details how to reset:

    Binary: Reset and table of search results programmatically

    Dimitar

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

  • SQL text of the query are output in the output of the coil-ed

    Hello

    I have s script that starts with sql * more:
    SET SERVEROUTPUT ON
    SET LINESIZE 1000
    SET ECHO OFF
    SET TERMOUT OFF
    SET FEEDBACK OFF
    
    SPOOL /home/scott/out.txt
    
    SELECT col_1||';'||col_2 FROM table1;  --and my select statement here!
    
    SPOOL OFF
    My out.txt must contain all records from table1, where the fields are separated by a semicolon.
    Unfortunately, out.txt also contains the text of the query itself:
    SELECT col_1||';'||col_2 FROM table1
    ------------------------------------
    1;one
    2;two
    
    AND SO ON!
    How can I Remove the text of the query output?

    Thank you!

    Looks like you want to delete the pages headers. VR;

    set pagesize 0
    
  • Question related to the execution of the query by using the links to the DB

    Hi all

    I have a source and target database. Both are 11.2.0.3.

    I have a query that is running on the source database and load data into the target database.

    I created synonyms in the target for all of the tables referenced in the query, remaining at the source.

    I run the query in the target using synonyms that I created. I see that the entire query became transferred to the source database and executed. The execution plan of the source was exactly the same as the way in which we could, if the query has been run directly there.

    No problems so far.

    Now, I have a database from different sources. Version 11.2.0.4.

    When I try to mimic the same behavior using this data source, the complete query will NOT be transferred to the source. He made on the source (remote site) full table scans, transfer of data to the target (local site) and then by performing sort operations & the index range scans (min/max) on the target.

    In both cases, all of the tables referenced in the query are accessible through the link in the DB.

    Please let me know if there is no setting of database / everything which could control how or where a query with all accessible by link DB tables are optimized and executed? Ideally, I want the entire query to be transferred to the remote and executed site.

    I can provide more details if necessary.

    Thanks in advance.

    Thank you sol.beach. Queries I tried both sources are in fact different. I failed to mention that.

    @John,

    We did recommend the creation of a view of the source, which is synonym on target and run the query. The client was not ready to create any object on the source system and so to test this workaround solution.

    ********************************************

    After some time, I realized that there is a hardcoded as SYSDATE column. Whenever I took it / I did as null, because the entire query is getting transferred to the source DB.

    "I changed 'SYSDATE column-name' to ' col_name (select SYSDATE from dual@remote_db_link). But this also seems to stop the query to be sent to the remote db as a whole.

    Try to work around this problem, but any ideas are much appreciated.

  • Query based ViewObject does pull not all attributes, when the query has 'WITH' clause

    Hello

    12.1.2 and 12.1.3 JDeveloper

    When we try to create a custom query based ViewObject, and the query clause of "with."

    So not all the columns selected in the query are appearing as attributes of the View object in the wizard.

    This is the query. And it performs very well in Toad.

    WITH dept_count AS)

    SELECT department_id, COUNT (*) AS dept_count

    Employees

    GROUP BY department_id)

    SELECT e.first_name AS employee_name,

    DC1.dept_count AS emp_dept_count,

    m.first_name AS manager_name,

    DC2.dept_count AS mgr_dept_count

    E employees,

    dept_count dc1,

    m employees,

    dept_count dc2

    WHERE e.department_id = dc1.department_id

    AND e.manager_id = m.employee_id

    AND m.department_id = dc2.department_id;

    Only the EmployeeName attribute is extracted from the query. It does not show the rest of the attributes in the VO Wizard.

    VO.png

    (I also tried to create a VO from the EntityObject class and make it editable as false, even in this case all attributes are not displayed.)

    I was wondering if something changed in 12 c?

    It works in 11.1.1.7

    (A friend of mine just asked me this).

    Thanks for any help.

    Sameer

    Jdev dislikes the syntax

    You can rewrite as

    SELECT e.first_name AS employee_name,

    DC1.dept_count AS emp_dept_count,

    m.first_name AS manager_name,

    DC2.dept_count AS mgr_dept_count

    E employees,

    (

    SELECT department_id, COUNT (*) AS dept_count

    Employees

    GROUP BY department_id) dc1,.

    m employees,

    (

    SELECT department_id, COUNT (*) AS dept_count

    Employees

    GROUP BY department_id) dc2

    WHERE e.department_id = dc1.department_id

    AND e.manager_id = m.employee_id

    AND m.department_id = dc2.department_id

    who must work and give you the same result.

    Timo

  • 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

  • Creating a function and passing the value of the query

    I have what I thought, it was a pretty easy to resolve the situation: I want to concatenate two fields of the query, if the 2nd is not empty.

    I created a function:

    < name cfargument = "q1" value = "#query.q1 #" / > "
    < name cfargument = "q1a' value =' #query.q1a #" / > "

    < CFSET variables.myPunct = ":" > "
    < cfset variables. ResultVar = "" >

    < cfif QNE Trim (arguments.q1) "" > "".
    < cfset variables. ResultVar =' #arguments.q1 # ">"
    < / cfif >

    < cfif QNE Trim (arguments.q1a) "" > "".
    < cfif variable. ResultVar NEQ "" > "".
    < cfset variables. ResultVar ='#variables. ResultVar & variables.myPunct # ">"
    < / cfif >
    < cfset variables. ResultVar ='#variables. ResultVar & arguments.q1a # ">"
    < / cfif >
    < variable cfreturn. ResultVar >

    It's basically just the example they provide in online education, with the names have been changed.

    In the strip of the details of my report, I have an expression builder containing field: report.mytestfunction)

    When I run the present, I get: Q1 element is not defined in the ARGUMENTS.

    I tried this ninety different ways (literally). It seems very clear to me that the query.q1 (Incidentally, none of the results of the query) are NOT passed to the function. I tried to make the expression: report.mytestfunction (query.q1). I tried to create an input parameter.

    The documentation on this is ridiculously limited, given that the ability to implement conditional logic is entirely dependent on the 'function', I can say. I can in no way to get the function of interface with the query results. If the value fixed values in the service, rather than trying to use query variables, it shows very well.

    Any ideas?

    Have you tried to remove the attribute "value" of your cfargument tag? The way I see it, you should have:


    ... rest of function...

    And then you have to call it with: report.mytestfunction (query.q1, query.q1a)

  • Can I refresh the page programicly?

    I have a page on it, there is a report from the region. It will be used as a running log. When the user presses the button, it triggers a process of apex, I want to report constantly update on the page so that the user can see the progress, hope this is possible.
    Let's say that the report is "' Select * journal; '"
    Help, please
    Doug

    Hi Doug,.

    What I would do is not refresh the entire page, instead, I would use ajax to refresh the reports area.
    Your report should have a PPR (partial Page Refresh) model, because then you can use $a_report (report_region_id, 1, 5, 5) to refresh it.
    You can also use ajax to update the content of your region.

    Hope that helps.

    Kind regards
    Dimitri
    ----------------------------------
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/

  • Refresh the result table or rerun the query

    I have a requirement, simple but stuck somewhere.

    Jdev 11.1.1.17 Expert level: Mid-Senior

    I have a form of application and the associated result table. It works great and no problems.

    My requirement is that I have a commandlink on one of the column. Clicking on that will open a popup with an editable filed. OK will commit and Cancel will close the pop-up window.

    After that the popup is dismissed with partial trigger, my table refreshes but data is identical to the front. But if I click the Find (Search) button on the query, it shows the data with the results updated which are changed in the pop-up window above.

    How do I update table which re - runs the query and then refreshes the table after the popup is dismissed, or when the user clicks the OK button in the pop-up window.

    Get on the viewObject of this table and call the executeQuery method that

    Write this method in the method AMImpl and then call it in bean managed using the OperationBinding at the click on the Ok button of the dialog box

    ViewObject vo = this.getViewObjectName ();

    vo.executeQuery ();

    Ashish

  • Refresh the Source Action query dynamic triggers point report on Null

    I have a page that is updated in place on apex.oracle.com. It has one element of the shuttle and a report that is updated when change the values of the shuttle.

    When the value of the shuttle is not null when you enter the page, and then you move the left and right elements the report refreshes properly until there is no item in the right pane. At this point, it seems to go back to the original value of the loading of the page.

    The session state popup shows the empty value, the net tab in Firebug shows the xmlhttp sets request that the value empty and debugging output shows the value is set to white as well.

    What I noticed I look at all the different scenarios in the debug output is that once the value is null, the source of the element query is executed, so the reset of the State than to the loading of the page. The setting for the source query is always rather than when Null. Anyway I didn't know the source of the item to use in the course of an action dynamic updating of the report

    This is not expected behavior given that the query runs only when I put the value null. I have actually only supposed to run during the loading of the page and not during a refresh of the region by dynamic action.

    My solution is to remove the source item query and put it in the page loading area.

    You can check it out yourself

    Workspace: ferguson
    User: Tester/Testerperson
    App ID = 13546

    Run it and then click the appointment tab. From there just click on icon of change in one of the lines report. It has region named sellers then under it a region of Notes. Notes refreshes when you move items around the element of shuttle box suppliers.

    I have a copy of the application running on 4.1 and it happens here too.

    Greg

    I just changed a little bit, and if I understand you correctly, it will now keep the selected values if you refresh the page.

    What I have is:

    1 moved the motion of the source of the item to a calculation and subordinated to be executed only if the element is NULL

    What I couldn't know, is what process is implemented with the shuttle on change session state?

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Dynamic action: need to refresh the area when changing value radio button

    Hello

    I use Apex 4.2 worm.

    I need to apply a dynamic action with the refreshment area.

    I need to refresh the area when I change the value of the radio button.

    To do this, I created dynamic action on the changes and select the refresh option to update the region.

    But it does not.

    If you want to check, then see below for workspace:

    Workspace: APEX_ISSUE

    User name: [email protected]

    Password: kaushik1@34

    Please use Page no 5.

    Thank you

    Hi Maxence,

    CORINE wrote:

    Hi Kiran

    Thank you very much.

    It works very well.

    One more I need help, I need to scroll in the radio button because I'm showing type of booking successively from top to bottom.

    How can I set scrolling in the option box.

    Thank you

    What do you mean by scrolling in the option button?

    I applied a horizontal scrolling for the region containing radio buttons by using the suite in the attributes of the region:

    style="overflow-x:scroll;"
    

    If you apply the change just of vertical scrolling x to y.

    I hope this helps!

    Kind regards

    Kiran

  • Enter in the input area, output of the query / report of the AN_id, to query/display page.

    Hello
    I tried to create a text input area to enter a type of alphanumeric data, however it does not work for me again.
    Can someone help me here is the new code 2, I added to my query results.
    Basically, I have 2 pages
    One is the entry (index)
    And the other is where is the logic. / query

    I was working on a fifth Query but now since I added the code. It doesn't yet?
    Can someone help me?
    Thank you.
    And thank you

    In the box, I have this in the index.cfm

    < label > enter AN ID
    < input type = "text" name = "AN_ID" / >
    < / label >

    In where clause is what I have the requests page or

    AN_ID = ' #form. "AN_ID #

    Here is the code:

    index page

    Sort by:
    < select name = "Orderby" size = "1" >
    < option value = "AN_ID" > YEAR ID < / option >
    < option value = "AN_DATE" > a DATE < / option >
    < / select >
    < br / >
    < br / >
    Output format:
    < input type = "radio" name = "outputFormat" value = "HTML" checked = "checked" / >
    HTML
    < input type = "radio" name = "outputFormat" value = "PDF" / >
    PDF
    < input type = "radio" name = "outputFormat" value = "CSV" / >
    Download/open Excel Spreadsheet < BR / >
    < BR / >
    < /p >
    < / make >
    < p > < / p >
    < / div >

    < form id = "form1" name = "form1" method = "post" action = "" >
    < label > enter AN ID
    < input type = "text" name = "AN_ID" / >
    < / label >
    ----------------------------------------------------------------------------------------- ------------------------------------------------------------

    the query page and view the page


    < cfquery name = "getHIPPOcases" datasource = "oracle10" >
    Select
    Thecasertab.AN_ID as AN ID
    Thecasertab.AN_DATE as a date
    Thecasertab_requi.case_requi_id
    Thecasertab_requi.requi_type_cd
    Thecasertab_requi. App_user_id


    Of
    thold_case
    tloc
    tla_prop
    Thecasertab
    tref_plan_area
    Thecasertab_requi

    where
    Thecasertab_requi.caser_id = Thecasertab.caser_id
    and
    thold_case.caser_id = Thecasertab.caser_id
    and
    AN_ID = ' #form. "AN_ID #



    order by

    < cfswitch expression = "#Form.orderBy #" >
    < cfcase value = "AN_ID" >
    CASE. AN_ID
    < / cfcase >
    < cfcase value = "AN_DATE" >
    CASE. AN_date
    < / cfcase >
    < / cfswitch >


    < / cfquery >


    <! - report html - >
    < cfswitch expression = "#Form.outputFormat #" >
    < cfcase value = "HTML, PDF" >

    < cfsavecontent variable = "htmlData" >
    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    "< html xmlns =" http://www.w3.org/1999/xhtml "> "
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    getHIPPOcases < title > < /title >
    < / head >
    < style type = "text/css" >

    TD {}
    do-family: Arial, Helvetica, without serif.
    do-size: 12px;
    }
    Th {}
    do-family: Arial, Helvetica, without serif.
    do-size: 12px;
    make-weight: bold;
    background-color: #FFFF99;
    }
    H2 {}
    do-family: Arial, Helvetica, without serif.
    do-size: 14px;
    }
    H3 {}
    do-family: Arial, Helvetica, without serif.
    font-size: 15px;
    }
    < / style >

    < body >
    < cfoutput >
    < table border = "0" cellpadding = "3" cellspacing = "0" >
    < b >

    < td align = "center" >
    getHIPPOcases < h3 > < / h3 > < br > < br > < table >
    < /tr >
    < b >
    < td align = "center" >
    < / h2 > your query returned #getHIPPOcases.RecordCount # entries < / h2 > < table >
    < /tr >
    < b >
    < td >
    < table border = "2" cellpadding = "2" cellspacing = "0" >
    < b >
    Number < /th > < th > Record
    < width th = "120" > YEAR ID < /th >
    date of YEAR < /TH > < TH >

    < /tr >

    < cfloop query = "getHIPPOcases" >


    < tr bgcolor = "< cfif currentrow mod 2 > F8F8FF < cfelse > WHITE < / cfif >" >
    < td > #CurrentRow # < table >
    < td > #AN_ID # < table >
    < td > #dateformat(AN_date,"mm/dd/yyyy") # < table >


    < /tr >
    < / cfloop >

    < /table >
    < table >
    < /tr >
    < /table >

    < / BODY >
    < / HTML >
    < / cfoutput >
    < / cfsavecontent >

    < cfswitch expression = "#Form.outputFormat #" >

    < cfcase value = "HTML" >
    < cfoutput >
    #htmldata #.
    < / cfoutput >
    < / cfcase >
    < cfcase value = "PDF" >
    PDF
    < cfdocument format = "pdf" >
    < cfoutput >
    #htmldata #.
    < / cfoutput >
    < / cfdocument >
    < / cfcase >

    < / cfswitch >





    < / cfcase >

    < cfcase value = "CSV" >


    < NAME CFHEADER = "Content-Disposition" VALUE = "attachment; filename = Citywide.csv">
    < cfcontent type = "application/msexcel" > "YEAR ID ', 'a date '.
    < cfoutput query = "getHIPPOcases" > #ltrim (AN_ID) #, "#dateformat(AN_date,"mm/dd/yyyy")" # ""
    < / cfoutput >


    < / cfcase >
    < / cfswitch >



    Quote:
    Posted by: briankind
    on the entry
    I get home an_id value let lov-1234-oop-ui
    and
    PRESST the button
    It's notreturn results (nothing happens)
    Thank you

    In this case, hard-code the value "lov-1234-oop-ui" in your query instead of the form variable. You get a result?

  • hide the query variable Dynamics vo in the advanced search area

    Hello
    I have a dynamic VO with two variables in the query of the VO, I added the request for the Original Panel in the user interface. On the page, I have the query variable, the values already defined, is anyway to hide variables in the Advanced Search Panel as well as the specific queryable columns appear.

    THX
    Today

    Hello
    Yes you can hide.
    Double-click the link on your VO variable,
    Click on the tab "control tips."
    There is a choice of display Hint list
    Set to hide.

    Kind regards
    Dimitris.

  • Number of lines on the query and export are different?

    Hello

    I'm kinda new to SQL Developer, but so far it has been very well. I came across a problem, but with a certain query I count the lines and get about 11 000 (which is what I expected), and then export the data to a csv file to download on another system, and somehow the number of lines is increased to 30,000? I tried several times and still get the same results, and I know that the extra lines should not be returned to request bythe they fail when uploaded to the other system.

    Does anyone have any idea why this could be? The query is a union query, but it was fine before. Looks like a bug to me, but then again that I am a newbie.

    Thank you

    Steve

    The recordtypeextract r table is not related to any other table. Link with another table and avoid the Cartesian join.

Maybe you are looking for

  • volume of iOS 10 keyboard

    Hello I have a problem with my iPhone running iOS 10.0.1. New keyboard clicking is barely audible in comparison to his previous in iOS 9. I have all my volume settings set up, everything else is hard, but keyboard clicks are still too quiet. Thank yo

  • Computer does not start after changing permissionl

    I had bad to put files on my hard drive without signature every time. I have made some changes in permissions and must have inadvertently changed everyone to access, because now my computer will not boot. He gets the white Apple on black background a

  • I want to scan a ddoc to electronic mail and I need the port for thunderbird

    I want to be able to send a scan doc via e-mail and ny erbird customer. When setting this up in Windows Fax and Scan she prays for a Port #? My question is where can I find this info and how can I get in?

  • How to remove the billing address if you have no option?

    Tried Google but people just kept saying that you should have no option if you followed the steps correctly but I don't have really no option to get rid of the billing address and I can't download anything

  • "Connection to Microsoft Exchange has been lost" annoying messages

    How can I disable the display of these messages, and the companion "connection to Microsoft Exchange has been restored"?  When there are problems connecting at work, these messages are popping up constantly and are very annoying.  I don't like what i