Carl's Auto Updating Report example with Apex 3.0

Hi,
I'm try to develop a page very similar to Carls' "Auto Updating Report" page and been very new to Apex I find it very hard to work out all the things I need to do from the example pages.
Is there anywhere I can download a sample application so I can explore the code through APEX to see how everything works and fits together.
Any help would be most appreciated.
Anthony

Carl,
Thanks I have it working.
Just one more question is it possible to have two reports on same page to auto update?
If I simply add another html_PPR_Report_Page with the second report_id I get an Error : "gNode is null or not an object". using IE.
function mon_Refresh()
setTimeout("mon_Refresh()",5000);
html_PPR_Report_Page (null,'R1736701112358007',$x('r_R1736701112358007').getAttribute('htmldb:href'))
works fine but
function mon_Refresh()
setTimeout("mon_Refresh()",5000);
html_PPR_Report_Page (null,'R1736701112358007',$x('r_R1736701112358007').getAttribute('htmldb:href'))
html_PPR_Report_Page (null,'R1738006943370690',$x('r_R1738006943370690').getAttribute('htmldb:href'))
raises an error.
Anthony

Similar Messages

  • Issue with Carl's Auto Updating Report example

    Hi. I'm trying to figure out how to implement PPR templates into my application. I've looked at Carl's example and thought downloading it to my test workspace and checking it out would be the best way forward. I've created the table per the instructions and am getting an odd error when I try to set the refresh rate:
    Line: 23
    Char: 3
    Error: 'null' is null or not an object
    This is a link to my report:
    http://htmldb.oracle.com/pls/otn/f?p=43812:40:12406459224965513538::NO:RP::
    Does anyone have any tips, common errors, that I can check out?
    Thanks a bunch. Len

    OK. So I see from a previous post that region_id does not have a variable option. To find the region ID if I look at the source code for the page I use the Rnnnnn listed? Then go to the 'Edit Attributes' of the page and change the number in the HTML Header section?

  • Carls Auto Updating Report  - Updating more than one Report on a page.

    Does any one know how or adapted Carl's Auto Updating Report to work with more than one report on a page.
    If I simply add another html_PPR_Report_Page with the second report_id I get an Error : "gNode is null or not an object". using IE.
    function mon_Refresh()
    setTimeout("mon_Refresh()",5000);
    html_PPR_Report_Page (null,'R1736701112358007',$x('r_R1736701112358007').getAttribute('htmldb:href'))
    works fine but when I add the second call I get the "gNode is null or not an object". error.
    function mon_Refresh()
    setTimeout("mon_Refresh()",5000);
    html_PPR_Report_Page (null,'R1736701112358007',$x('r_R1736701112358007').getAttribute('htmldb:href'))
    html_PPR_Report_Page (null,'R1738006943370690',$x('r_R1738006943370690').getAttribute('htmldb:href'))
    Any help most appreciated.
    Anthony

    Hello,
    Looks like you might be running into our AJAX race condition take a look at this fix and see if it helps you out.
    Race condition in htmldb_get.js
    Carl

  • Auto Updating Report

    Hello.
    I am using Apex 2.2.1 and am trying to get Carl Backstrom's wonderful Auto Updating Report to work.
    In the Region Template he is using REGION_STATIC_ID. What is that? How do I supply this value? In Apex 3.x there is a field in which to enter a "Report Id" when creating a report. But in 2.x, I see no such field anywhere.
    I went ahead and tried to create a report using his example. I made a copy of the Standard PPR template for Theme 10 (Sand). I then copied his code into my PPR copy. When I run my report, there is no refresh and also I am getting the text "#TOP_PAGINATION#" at the top of the report.
    How does one get an Auto Updating report to work in Apex 2.2.1?
    Thank you for any help.
    Elie

    Hi Carl.
    Thanks very much for helping me out.
    I've posted my Apex 2.2.1 app onto my workspace on OTN. Of course, this workspace is a 3.0.1 workspace, and so, I see the REGION_ID field in the report region. This field is missing in my 2.2.1 workspace.
    Here is the link and credential info you'll need to see my report page.
    workspace = play30
    username = [email protected]
    password = flowers
    The relavent page is page 3 - "Errlog Report".
    With respect to the way you're auto updating your report, I have a couple questions.
    1) The #REGION_STATIC_ID# and #REGION_ID# values -- are these the same as the region_id obtained via the query:
    SELECT region_id
    FROM apex_application_page_regions
    WHERE application_id = :app_id
    AND page_id = :app_page_id
    AND region_name = 'Errlog Report';
    2) You're using AJAX to auto update a report region, and so, I was expecting to see some reference to the javascript function htmldb_get(). And yet I see you are not calling this function anywhere in the javascript you're using. Perhaps the functions you are using are calling htmldb_get() behind the scenes, I don't know.
    We've not upgraded to 3.0.1 because we have so many Apex (2.x) apps being used in production (and this number is increasing as more users see what we've done) that we need to find a suitable time to upgrade without affecting users too much. We read in the Apex install notes that we need to make our database instance unavailable during the upgrade (an hour or so), and so, finding this hour of space is the main hurdle blocking our upgrade to 3.0.1.
    Thanks, again, for any help/advice. It is much appreciated.
    Elie

  • How to display more than 10 rows in an Auto Updating Report

    I followed Carl Backstorm's example, http://htmldb.oracle.com/pls/otn/f?p=11933:40:525653462286833::NO:RP:: to create a page with an auto update report/region. It's working fine (thanks, Carl) but I can't have the report display all rows (38 rows in total). Everytime I press the "Manual Refresh" button, it shows 10 (the first 10) rows only.
    When the report displays at the first time, it shows all the rows (38 rows). Number of Rows and Maximum Row Count are set to 999999 and "No Pagination Selected" in the report region. But after I press the "Manual Refresh" button or specifiy an update time value (like 1 second) to have it auto update, then it only display the first 10 rows.
    Is there a way to display more than 10 rows in an Auto Updating Report using Carl's example auto update report/page? Anyone can help? Thank you.
    -Michele
    Edited by: 106451 on Jun 30, 2010 10:12 AM

    Yes, I changed it to:
    function table_object(pId){
         this.id = pId;
         this.start_record = 1;          //optional
         this.num_record = 50; //optional
         this.num_record2 = 50;          //optional
    I don't quite understand how these vaiables are used for though. Thanks.

  • Check Interactive report filter with APEX item :P101_USERNAME

    Hi,
    is there a way to create a filter with IR which is based on the :P101_USERNAME item?
    I use this variable with the windows user name and want to show only rows where the current user works with.
    Thanks ahead,
    Tobias

    Hi John,
    my plan was to reference the filter on the user level.
    Parts of selection for the IR:
    SELECT r.r_id,
    c.c_name,
    r.r_note,
    UPPER(r.win_account)
    FROM requests r, classes c
    WHERE r.r_c_id = c.c_id
    Info:
    WIN_ACCOUNT looks like: ARNHOLD_TOBIAS
    :P101_USERNAME looks like: ARNHOLD_TOBIAS
    The goal is that a user in the standard view sees only his rows/calls and if he want to see the rows/calls from the colleagues too. He/She would only need to take off the filter for the USERNAME.
    I could use my own items with an extra region too but I thought that there was an easier way then that.
    Tobias

  • Auto update of timestamp with trigger

    I have a timestamp data element that we want to be updated via a trigger whenever a row is inserted or updated.
    My trigger looks something like -
    create trigger "name"
    before insert or update on "table"
    for each row
    begin
    :new.create_timestamp:=systimestamp;
    end
    create_timestamp is defined as timestamp(9)
    everything compiles and we can insert data without problem but the create_timestamp element is null. What wrong here?
    thanks

    What version of Oracle are you using? If you are at 8i or lower, your column datatype should be DATE and you should be assigning SYSDATE to the value (e.g., select SYSDATE from dual;). I don't know the answer if you're on 9i.
    Tim

  • Auto-update iPod (with Podcasts)

    Hello all,
    I did use "Search" but couldn't find anything related so kindly point me to the source if this has been answered before. Thanks.
    How can I auto-update my iPod with selected Podcasts ?
    For example, how can I let iTunes (or a script??) copy the contents of a smart folder (containing the podcasts I am after) to the iPod folder.
    All I want is to attach my iPod and have it updated automatically ...
    Any ideas?
    Thanks a lot for your help,
    chris

    If you subscribe to the podcasts inside iTunes, then the episodes will automatically load to the iPod. You can either subscribe to them through the store or directly from the podcaster's website by plugging their XML url into an iTunes' "Subscribe to podcast" command in the Advanced menu.

  • Apex with XE10g/Tomcat 6.0.13 PDF Print with Apex  FOP.WAR

    Apex with XE10g/Tomcat 6.0.13 PDF Print with Apex fop.war/apex_fop.jsp
    Hello,
    Excuse me bad english.
    I have a problem with Oracle XE and Printing from Reports over Tomcat 6.0.13.
    I have update Oracle XE with Apex 3.1 and it works fine.
    Now i have tried to Print a report to PDF. So i have deployed the FOP.WAR from Apex Utilities under Tomcat.
    I see in Tomcat Manager http://localhost:8888/manager/html/list that the FOO
    has been deployed and is running.
    If i try to print then i get this Message down to this page.
    Can anybody give me a hint to solve this problem???
    Hint
    To resolve the problem i have installed Oracle OC4J with same Port and deployed
    the same foo.war file.
    Then works and all printing from Oracle Apex work fine and okay.
    So i thing the Apex and Oracle work correct.
    But we have a small Application so i would prefer to work with Tomcat a application Server.
    Becaus of previous Errors have copied some *.jar files to C:\tomcat6.0.13\lib
    but i thing this is not the Problem.
    18.03.2007 18:12 546.765 xml.jar
    18.03.2007 18:07 634.772 xmlmesg.jar
    18.03.2007 18:14 1.238.899 xmlparserv2.jar
    10.06.2007 22:59 674.005 xquery.jar
    18.03.2007 18:11 3.059 xsqlserializers.jar
    18.03.2007 18:14 194.691 xsu12.jar
    10.11.2005 13:13 7.043.169 tools.jar
    .... and preinstalled files
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:429)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.catalina.connector.Response.getWriter(Response.java:604)
    org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
    org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
    org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
    org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:186)
    org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
    org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
    org.apache.jsp.apex_005ffop_jsp._jspService(apex_005ffop_jsp.java:120)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    ------------------------------------------------------------------------

    at the end of the apex_fop.jsp put the follow code just before the driver.run(); line:
    out.clear();
    out = pageContext.pushBody();
    and explanation of why this works is here:
    http://forums.sun.com/thread.jspa?threadID=5307942

  • Recommeneded Auto Update Feature in 11.1 Grid Control

    Hi All,
    I would like inform you about New Auto Update feature in the 11.1 Grid Control Installer. This feature allows the latest recommended patches to be automatically deployed while installing a fresh 11.1 Grid control or while upgrading an existing Grid control to 11.1 version.
    These auto updates ensure that any patches required by the oracle installer or for successful installation/upgrade of the product are applied before the actual installation or upgrade process. It ensures that there are no failed installations or upgrades from known issues.
    Oracle highly recommends using this feature to ensure that any new or upgraded Enterprise Manager installation is successful
    To know more about usage and benefits of this feature Refer to :
    1. Note.1101208.1 Required Patches for Grid Control 11g (11.1.0.1.0) on Linux
    2. Note.1099123.1 Overview of the "Auto Update" Feature Available with Grid Control 11g Install/Upgrade
    3. Refer to this PDF
    4. Use Install forum to place your queries
    Note:- If you have downloaded and installed your Grid control before15th May 2010 then we recommend you to apply this Generic Agent patch 9676134 on all your target boxes. Refer to the Read-me of the patch for exact instructions. If you don't have this patch applied then you will see this patch appear in MOS recommended section for that target as well.
    This patch fixes the performance issue that is caused by Grid control 11.1 running a metric query against the v$rman_backup_job_details view on target database instances for Oracle Database 10g Release 2 (10.2.0.1) or higher. In some situations, this query might expose RDBMS bug 8434467, in which the query can run for an extended period of time, resulting in high CPU utilization.If you notice this problem, it is recommended that you apply the patches listed below, which will reduce the the frequency of the query.

    Thank you

  • Flash auto update not working

    Been trying to get the autoupdate feature for flash working but no luck. Been using these settings for the mms.cfg for 32/64 locations:
    AutoUpdateDisable=1
    SilentAutoUpdateEnable=1
    SilentAutoUpdateVerboseLogging=1
    Running the windows task does not trigger the auto update function. With verbose logging this is what I see in the logs:
    2015-4-2+16-37-21.462 [info] 1613
    2015-4-2+16-37-21.462 [info] 1615
    2015-4-2+16-37-21.462 [info] 1618
    2015-4-2+16-37-21.462 [info] 1619 1063
    2015-4-2+16-37-21.462 [info] 1613
    2015-4-2+16-37-21.462 [info] 1615
    2015-4-2+16-37-21.462 [info] 1618
    2015-4-2+16-37-21.462 [info] 1604
    2015-4-2+16-37-21.462 [info] 1608
    2015-4-2+16-37-21.462 [info] 1612
    2015-4-2+16-37-21.462 [info] 1620
    2015-4-2+16-40-53.858 [info] 1613
    2015-4-2+16-40-53.858 [info] 1615
    2015-4-2+16-40-53.858 [info] 1618
    2015-4-2+16-40-53.858 [info] 1608
    2015-4-2+16-40-53.858 [info] 1612
    2015-4-2+16-40-53.858 [info] 1620
    Any help would be appreciated

    Been trying to get the autoupdate feature for flash working but no luck. Been using these settings for the mms.cfg for 32/64 locations:
    AutoUpdateDisable=1
    SilentAutoUpdateEnable=1
    SilentAutoUpdateVerboseLogging=1
    Running the windows task does not trigger the auto update function. With verbose logging this is what I see in the logs:
    2015-4-2+16-37-21.462 [info] 1613
    2015-4-2+16-37-21.462 [info] 1615
    2015-4-2+16-37-21.462 [info] 1618
    2015-4-2+16-37-21.462 [info] 1619 1063
    2015-4-2+16-37-21.462 [info] 1613
    2015-4-2+16-37-21.462 [info] 1615
    2015-4-2+16-37-21.462 [info] 1618
    2015-4-2+16-37-21.462 [info] 1604
    2015-4-2+16-37-21.462 [info] 1608
    2015-4-2+16-37-21.462 [info] 1612
    2015-4-2+16-37-21.462 [info] 1620
    2015-4-2+16-40-53.858 [info] 1613
    2015-4-2+16-40-53.858 [info] 1615
    2015-4-2+16-40-53.858 [info] 1618
    2015-4-2+16-40-53.858 [info] 1608
    2015-4-2+16-40-53.858 [info] 1612
    2015-4-2+16-40-53.858 [info] 1620
    Any help would be appreciated

  • Auto update not worki

    I just tried to use the Creative Auto Update to check if my Audigy 2 ZS was up to date. The page just says "Products on your system" and then there is nothing below it. Refreshing the page doesn't help. I have used the auto update many times with no problems.
    Is it not working right now or is there another problem?

    Nevermind, it's working now.

  • Carl's Report Row with Detail Example

    Hi,
    Hoping someone can assist, I am looking at using Carl's "Report Row with Detail" example at:
    http://apex.oracle.com/pls/otn/f?p=11933:1
    The only thing that I am unsure about is that , instead of using the words show comments/hide comments, I would actually like use an image that will toggle, i.e initially have a plus.gif (+) image to expand row and then toggle to a minus.gif (-) image to hide the row.
    Using Carl's example, would really appreciate some help on achieving this. I tried replacing the innerhtml with an image file but had no luck.
    Thanks.
    Tony.

    Hello,
    There you go http://apex.oracle.com/pls/otn/f?p=11933:107 just make sure the images have a plus and a minus in the filename,
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Report Row With Detail (AJAX) by Carl - How to implement?

    I just had a look at Carl's example place and I'd like to implement his Report Row With Detail feature. But how, it's made up of 3 sections:
    1. a query
    2. javascript
    3. application process
    The query on which the report is based and where I want this feature is:
    select leverancier, artnr, vendorcode from plijst where productgroep = :p1_assortiment_tree or subgroep = :p1_assortiment_tree
    A break is defined on Leverancier
    I understand the query and the application process part. But where goes the Java part???
    Peter
    Message was edited by:
    Pete

    Tried to upload your example application, unfortunately it does not seem to upload properly in my APEX v2.0 environment
    Can you please confirm if your example works with APEX version 2
    and does the Javascript go in the Page Header or Region Header/ Footer area
    thankyou
    Frank

  • Updatable report with row data dependend dropdown box values

    Hello,
    Oracle 10, Apex 4.0.
    Working on this query:
    SELECT waarde1,waarde2,
    APEX_ITEM.POPUP_FROM_QUERY (3,waarde3,'select select ((waarde1-0.1)+(level*0.1)) d, ((waarde1-0.1)+(level*0.1)) r from (select * from lov_test where waarde1 = c001) connect by level <= (((waarde2-waarde1) *10)+waarde1)') waarde3
    FROM lov_test
    ORDER BY 1
    The idee is to get a popup or dropdown box for "waarde3" in witch the selectable values are waarde1 to waarde2 rising with 0.1 at a time.
    And this in a multi row updatable report.
    Example
    waarde1 waarde 2 waarde3(possible values in the dropdown box)
    1 4 1-1.1-1.2 ... 3.8-3.9-4.0
    3 7 3-3.1-3.2 ... 6.8-6.9-7.0
    The error I get is:
    Error in init lov: ORA-00936: Ontbrekende uitdrukking. p_lov:select select ((waarde1-0.1)+(level*0.1)) d, ((waarde1-0.1)+(level*0.1)) r from (select * from lov_test where waarde1 = c001) connect by level <= (((waarde2-waarde1) *10)+waarde1)wwv_flow_security.g_security_group_id:1264429985836387wwv_flow_security.g_curr_flow_security_group_id:1264429985836387 Unable to initialize query.
    For every row in the table lov_test.

    Hi,
    I think this is a misunderstanding.
    Your code is:
    SELECT waarde1,waarde2,
    APEX_ITEM.POPUP_FROM_QUERY (3,waarde3,'select select ((waarde1-0.1)+(level*0.1)) d, ((waarde1-0.1)+(level*0.1)) r from (select * from lov_test where waarde1 = c001) connect by level <= (((waarde2-waarde1) *10)+waarde1)') waarde3
    FROM lov_test
    ORDER BY 1... and should be:
    SELECT waarde1,waarde2,
    APEX_ITEM.POPUP_FROM_QUERY (3,waarde3,'select ((waarde1-0.1)+(level*0.1)) d, ((waarde1-0.1)+(level*0.1)) r from (select * from lov_test where waarde1 = c001) connect by level <= (((waarde2-waarde1) *10)+waarde1)') waarde3
    FROM lov_test
    ORDER BY 1See?
    'select select ((...' instead of 'select ((...'
    That should explain the "missing expression" error, as there is nothing to follow the first select.
    Looks like a simple copy/paste mistake :)

Maybe you are looking for