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?

Similar Messages

  • 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

  • Timing issues with systemd units auto-updating rEFInd on ESP

    Aim: I wanted to use systemd to auto-update the following files and directories in EFI/arch_refind/:
    drivers_x64/ext4_x64.efi fonts/ icons/ refind_x64.efi
    Initially, I tried to do this with a single .path and .service pair but although it worked initially, I had problems with things respawning too quickly. As a result I ended up with nothingness on the ESP. I figured that the problem might be that because I had different changed-path conditions in the .path file, the .service file was getting run multiple times as pacman updated the refind package. In an attempt to address this, I split the files into four pairs with each one handling a specific change.
    For updating the .efi itself:
    # /etc/systemd/system/refind-update-efi.path
    [Unit]
    Description=Copy rEFInd EFI to UEFISYS Partition
    [Path]
    PathChanged=/usr/lib/refind/refind_x64.efi
    [Install]
    WantedBy=multi-user.target
    and:
    # /etc/systemd/system/refind-update-efi.service
    [Unit]
    Description=Copy rEFInd EFI to UEFISYS Partition
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/cp -f /usr/lib/refind/refind_x64.efi /boot/efi/EFI/arch_refind/refind_x64.efi
    For updating the file system driver:
    # /etc/systemd/system/refind-update-ext4.path
    [Unit]
    Description=Copy rEFInd ext4 driver to UEFISYS Partition
    [Path]
    PathChanged=/usr/lib/refind/drivers_x64/ext4_x64.efi
    [Install]
    WantedBy=multi-user.target
    and:
    # /etc/systemd/system/refind-update-ext4.service
    [Unit]
    Description=Copy rEFInd ext4 driver to UEFISYS Partition
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/mkdir -p /boot/efi/EFI/arch_refind/drivers_x64
    ExecStart=/usr/bin/cp -f /usr/lib/refind/drivers_x64/ext4_x64.efi /boot/efi/EFI/arch_refind/drivers_x64/ext4_x64.efi
    For the fonts directory:
    # /etc/systemd/system/refind-update-fonts.path
    [Unit]
    Description=Copy rEFInd fonts to UEFISYS Partition
    [Path]
    PathChanged=/usr/share/refind/fonts
    [Install]
    WantedBy=multi-user.target
    and:
    # /etc/systemd/system/refind-update-fonts.service
    [Unit]
    Description=Copy rEFInd fonts to UEFISYS Partition
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/rm -rf /boot/efi/EFI/arch_refind/fonts
    ExecStart=/usr/bin/cp -pr /usr/share/refind/fonts /boot/efi/EFI/arch_refind/fonts
    For the icons directory:
    # /etc/systemd/system/refind-update-icons.path
    [Unit]
    Description=Copy rEFInd icons to UEFISYS Partition
    [Path]
    PathChanged=/usr/share/refind/icons
    [Install]
    WantedBy=multi-user.target
    and:
    # /etc/systemd/system/refind-update-icons.service
    [Unit]
    Description=Copy rEFInd icons to UEFISYS Partition
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/rm -rf /boot/efi/EFI/arch_refind/icons
    ExecStart=/usr/bin/cp -pr /usr/share/refind/icons /boot/efi/EFI/arch_refind/icons
    However, I am still getting errors:
    Gor 09 01:40:58 MyComputer systemd[1]: Stopping Copy rEFInd fonts to UEFISYS Partition.
    Gor 09 01:42:25 MyComputer systemd[1]: Starting Copy rEFInd fonts to UEFISYS Partition.
    Gor 09 02:25:21 MyComputer systemd[1]: Stopping Copy rEFInd fonts to UEFISYS Partition.
    Gor 09 02:25:21 MyComputer systemd[1]: Stopped Copy rEFInd fonts to UEFISYS Partition.
    Gor 09 02:25:21 MyComputer systemd[1]: Stopping Copy rEFInd ext4 driver to UEFISYS Partition.
    Gor 09 02:25:21 MyComputer systemd[1]: Stopped Copy rEFInd ext4 driver to UEFISYS Partition.
    Gor 09 02:25:21 MyComputer systemd[1]: Stopping Copy rEFInd EFI to UEFISYS Partition.
    Gor 09 02:25:21 MyComputer systemd[1]: Stopped Copy rEFInd EFI to UEFISYS Partition.
    Gor 09 02:25:21 MyComputer systemd[1]: Stopping Copy rEFInd icons to UEFISYS Partition.
    Gor 09 02:25:21 MyComputer systemd[1]: Stopped Copy rEFInd icons to UEFISYS Partition.
    Gor 09 02:26:13 MyComputer systemd[1]: Starting Copy rEFInd fonts to UEFISYS Partition.
    Gor 09 02:29:47 MyComputer systemd[1]: Stopping Copy rEFInd fonts to UEFISYS Partition.
    Gor 09 02:29:47 MyComputer systemd[1]: Stopped Copy rEFInd fonts to UEFISYS Partition.
    Gor 09 02:29:47 MyComputer systemd[1]: Stopping Copy rEFInd ext4 driver to UEFISYS Partition.
    Gor 09 02:29:47 MyComputer systemd[1]: Stopped Copy rEFInd ext4 driver to UEFISYS Partition.
    Gor 09 02:29:47 MyComputer systemd[1]: Stopping Copy rEFInd EFI to UEFISYS Partition.
    Gor 09 02:29:47 MyComputer systemd[1]: Stopped Copy rEFInd EFI to UEFISYS Partition.
    Gor 09 02:29:47 MyComputer systemd[1]: Stopping Copy rEFInd icons to UEFISYS Partition.
    Gor 09 02:29:47 MyComputer systemd[1]: Stopped Copy rEFInd icons to UEFISYS Partition.
    <refind is upgraded at 22:24 according to pacman's log>
    Gor 09 22:24:47 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd fonts to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Started Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd EFI to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd ext4 driver to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Started Copy rEFInd fonts to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer cp[13179]: /usr/bin/cp: cannot stat ‘/usr/lib/refind/drivers_x64/ext4_x64.efi’: No such file or directory
    Gor 09 22:24:48 MyComputer cp[13174]: /usr/bin/cp: cannot stat ‘/usr/lib/refind/refind_x64.efi’: No such file or directory
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-efi.service: main process exited, code=exited, status=1/FAILURE
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd EFI to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Unit refind-update-efi.service entered failed state.
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-ext4.service: main process exited, code=exited, status=1/FAILURE
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd ext4 driver to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Unit refind-update-ext4.service entered failed state.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd EFI to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Started Copy rEFInd EFI to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd ext4 driver to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Started Copy rEFInd ext4 driver to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Started Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Started Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Started Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Started Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-icons.service start request repeated too quickly, refusing to start.
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Unit refind-update-icons.service entered failed state.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-icons.service start request repeated too quickly, refusing to start.
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-icons.service start request repeated too quickly, refusing to start.
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-icons.service start request repeated too quickly, refusing to start.
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-icons.service start request repeated too quickly, refusing to start.
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-icons.service start request repeated too quickly, refusing to start.
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-icons.service start request repeated too quickly, refusing to start.
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd icons to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: refind-update-icons.service start request repeated too quickly, refusing to start.
    Gor 09 22:24:48 MyComputer systemd[1]: Failed to start Copy rEFInd icons to UEFISYS Partition.
    Gor 09 22:24:48 MyComputer systemd[1]: Starting Copy rEFInd fonts to UEFISYS Partition...
    Gor 09 22:24:48 MyComputer systemd[1]: Started Copy rEFInd fonts to UEFISYS Partition.
    <reboot to test kernel>
    Gor 10 00:05:41 MyComputer systemd[1]: Stopping Copy rEFInd fonts to UEFISYS Partition.
    Gor 10 00:05:41 MyComputer systemd[1]: Stopped Copy rEFInd fonts to UEFISYS Partition.
    Gor 10 00:05:41 MyComputer systemd[1]: Stopping Copy rEFInd ext4 driver to UEFISYS Partition.
    Gor 10 00:05:41 MyComputer systemd[1]: Stopped Copy rEFInd ext4 driver to UEFISYS Partition.
    Gor 10 00:05:41 MyComputer systemd[1]: Stopping Copy rEFInd EFI to UEFISYS Partition.
    Gor 10 00:05:41 MyComputer systemd[1]: Stopped Copy rEFInd EFI to UEFISYS Partition.
    Gor 10 00:05:41 MyComputer systemd[1]: Stopping Copy rEFInd icons to UEFISYS Partition.
    Gor 10 00:05:41 MyComputer systemd[1]: Stopped Copy rEFInd icons to UEFISYS Partition.
    Gor 10 00:07:22 MyComputer systemd[1]: Starting Copy rEFInd fonts to UEFISYS Partition.
    It seems that systemd is too quick. It notices that something has changed e.g. that /usr/lib/refind/refind_x64.efi has been removed, triggers the service and then finds there is no /usr/lib/refind/refind_x64.efi to copy because the new version has not yet been installed. In the case of the .efi files, the service always seems to somehow manage to get everything into place but in the case of the fonts and icons (icons shown above), it often does not.
    I'm not sure why this happens because I based this on the service file I found the wiki for keeping the kernel and initramfs synced to the ESP. So I would think it should work for at least the single file cases, if not the directories. Indeed my EFI update service syncs the kernel and initramfsx2 to the ESP flawlessly (up to now) even though the .path unit for that includes 3 triggering conditions and the .service and .path files are set up just the same.
    I've read the manual pages for systemd.{path,service,unit} and couldn't see anything obviously helpful although I'm curious about timer units so I looked at the information on those but I guess they are for rather more sophisticated services than mine. I also looked at the wiki for systemd but it does not say anything about this kind of issue.
    Intuitively, I wondered if there is not a clean way of telling systemd to wait until changes to the path have completed before running the service. Obviously I can think of ways to force the service to wait just by using sleep or something but I am sure that that is not the correct way to do it. So I'm pretty sure there is something wrong about the way I've set these up but I am just not seeing what it is. Any hints would be appreciated!

    I have actually modified the refind path/service units somewhat, but it still works flawlessly for me. I usually wait for 2-5 min after pkg updates so that all the changes are synced to EFISYS before I reboot. There are the ones I use currently:
    refind-efi_copy.path
    [Unit]
    Description=Copy rEFInd files to EFI System Partition
    [Path]
    PathChanged=/usr/lib/refind/refind_x64.efi
    PathChanged=/usr/lib/refind/drivers_x64/ext4_x64.efi
    PathChanged=/usr/lib/refind/drivers_x64/btrfs_x64.efi
    PathChanged=/usr/lib/refind/drivers_x64/reiserfs_x64.efi
    PathChanged=/usr/lib/refind/drivers_x64/iso9660_x64.efi
    PathChanged=/usr/lib/refind/drivers_x64/hfs_x64.efi
    PathChanged=/mnt/Source_Codes_Partition/Source_Codes/My_Files/Bootloader_Config_Files/refind_uefi/refind_uefi.conf
    PathChanged=/mnt/Source_Codes_Partition/Source_Codes/My_Files/Bootloader_Config_Files/refind_uefi/refind_uefi_linux.conf
    PathChanged=/mnt/Source_Codes_Partition/Source_Codes/My_Files/Bootloader_Config_Files/refind_uefi/refind_uefi_linux_boot.conf
    PathChanged=/mnt/Source_Codes_Partition/Source_Codes/My_Files/Bootloader_Config_Files/refind_uefi/refind_uefi_archboot.conf
    Unit=refind-efi_copy.service
    [Install]
    WantedBy=multi-user.target
    refind-efi_copy.service
    [Unit]
    Description=Copy rEFInd files to EFI System Partition
    # Requires=efisys.mount
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/cp -f /usr/lib/refind/refind_x64.efi /efisys/EFI/refind/refind_x64.efi
    ExecStart=/usr/bin/sbsign --key /efisys/EFI/tools/efitools/db.key --cert /efisys/EFI/tools/efitools/db.crt --output /efisys/EFI/refind/refind_x64.efi /usr/lib/refind/refind_x64.efi
    ExecStart=/usr/bin/cp -f /usr/lib/refind/drivers_x64/ext4_x64.efi /efisys/EFI/tools/drivers_x64/ext4_x64.efi
    ExecStart=/usr/bin/sbsign --key /efisys/EFI/tools/efitools/db.key --cert /efisys/EFI/tools/efitools/db.crt --output /efisys/EFI/tools/drivers_x64/ext4_x64.efi /usr/lib/refind/drivers_x64/ext4_x64.efi
    ExecStart=/usr/bin/cp -f /usr/lib/refind/drivers_x64/btrfs_x64.efi /efisys/EFI/tools/drivers_x64/btrfs_x64.efi
    ExecStart=/usr/bin/sbsign --key /efisys/EFI/tools/efitools/db.key --cert /efisys/EFI/tools/efitools/db.crt --output /efisys/EFI/tools/drivers_x64/btrfs_x64.efi /usr/lib/refind/drivers_x64/btrfs_x64.efi
    ExecStart=/usr/bin/cp -f /usr/lib/refind/drivers_x64/reiserfs_x64.efi /efisys/EFI/tools/drivers_x64/reiserfs_x64.efi
    ExecStart=/usr/bin/sbsign --key /efisys/EFI/tools/efitools/db.key --cert /efisys/EFI/tools/efitools/db.crt --output /efisys/EFI/tools/drivers_x64/reiserfs_x64.efi /usr/lib/refind/drivers_x64/reiserfs_x64.efi
    ExecStart=/usr/bin/cp -f /usr/lib/refind/drivers_x64/iso9660_x64.efi /efisys/EFI/tools/drivers_x64/iso9660_x64.efi
    ExecStart=/usr/bin/sbsign --key /efisys/EFI/tools/efitools/db.key --cert /efisys/EFI/tools/efitools/db.crt --output /efisys/EFI/tools/drivers_x64/iso9660_x64.efi /usr/lib/refind/drivers_x64/iso9660_x64.efi
    ExecStart=/usr/bin/cp -f /usr/lib/refind/drivers_x64/hfs_x64.efi /efisys/EFI/tools/drivers_x64/hfs_x64.efi
    ExecStart=/usr/bin/sbsign --key /efisys/EFI/tools/efitools/db.key --cert /efisys/EFI/tools/efitools/db.crt --output /efisys/EFI/tools/drivers_x64/hfs_x64.efi /usr/lib/refind/drivers_x64/hfs_x64.efi
    ExecStart=/usr/bin/cp -f /mnt/Source_Codes_Partition/Source_Codes/My_Files/Bootloader_Config_Files/refind_uefi/refind_uefi.conf /efisys/EFI/refind/refind.conf
    ExecStart=/usr/bin/cp -f /mnt/Source_Codes_Partition/Source_Codes/My_Files/Bootloader_Config_Files/refind_uefi/refind_uefi.conf /efisys/EFI/boot/refind.conf
    ExecStart=/usr/bin/cp -f /mnt/Source_Codes_Partition/Source_Codes/My_Files/Bootloader_Config_Files/refind_uefi/refind_uefi_linux.conf /efisys/EFI/arch/core/refind_linux.conf
    ExecStart=/usr/bin/cp -f /mnt/Source_Codes_Partition/Source_Codes/My_Files/Bootloader_Config_Files/refind_uefi/refind_uefi_linux.conf /efisys/EFI/arch/mainline/refind_linux.conf
    ExecStart=/usr/bin/cp -f /mnt/Source_Codes_Partition/Source_Codes/My_Files/Bootloader_Config_Files/refind_uefi/refind_uefi_linux_boot.conf /boot/refind_linux.conf
    ExecStart=/usr/bin/rm -rf /efisys/EFI/refind/icons
    ExecStart=/usr/bin/cp -rf /usr/share/refind/icons /efisys/EFI/refind/icons
    ExecStart=/usr/bin/rm -rf /efisys/EFI/refind/fonts
    ExecStart=/usr/bin/cp -rf /usr/share/refind/fonts /efisys/EFI/refind/fonts
    Last edited by the.ridikulus.rat (2013-07-11 15:16:18)

  • 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

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

  • 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

  • URGENT: Issue with hierarchy level keys and report drill down

    Hi,
    BASIC STRUCTURE:
    I have created a subject area with 3 facts (FACT_A, FACT_B, FACT_C) and 4 dimesnions (TIME_DIM,DIM_2,DIM_3,DIM_4). Each fact table also has additional aggregate tables aggregated along levels of the time dimension. Also our timw dimension has aggregated dimension tables like TIME_DIM_WEEK, TIME_DIM_MONTH, TIME_DIM_QUARTER and TIME_DIm_YEAR.
    GOAL:
    All 3 facts have the same measures M_1 and M_2 in them but may not have data for the same dimension values selected.
    For example
    For month JAN 2000 FACT_A.M1=100$ and no data exists for JAN 2000 in FACT_B and FACT_C. Then in the report
    for JAN2000 it should show FACT_A.M1= $100, FACT_B.M1 = 0 and FACT_C.M1 =0. In this case I should be able to drill down to the lowest level.
    ISSUE:
    The time dimension TIME_DIM has the following levels - Total -> Year -> Quarter -> Month -> Week -> Day
    However I am having an issue with drill down in the reports whenever I pull metrics from more than 1 fact at a time. I have defined the level keys but not sure if I need to do anything in addition since I am using aggregates.
    I have to fix this issue quickly. Please help me.

    Alastair,
    All the fact tables have aggregated facts as sources.
    I have checked the levels set for each of the sources to the time dimesnion table in BMM and they look okay. So the Time dim table in BMM has 4 source tables
    Time_Day (level set to day, table key is "day"),
    Time_month (level set to month, table key is "Fiscal_Month_Code"),
    Time_Quarter(level set to quarter, table key is "Fiscal_Quarter_Code") and
    Time_Year(level set to year, table key is :Fiscal_Year_Code").
    Note: No time week aggregate added as logical source.
    Again the time dim hierarchy based off of this table has levels: Total -> Year ->quarter -> Month -> week -> day
    The levels keys set for each level are
    Year -> Primary key is Year_Name (YYYY)(Checked as chronological key) and another key is Year_Num (YYYY)(Checked as chronological key)
    Quarter->Primary Key is Quarter_Name (YYYY Qn), another key is Quarter_Number (Format n where n can assum values 1,2,3,4). Both keys are set as chronological keys
    Month -> Primary key is Month_Name (MON YYYY), another key is Month_Num (Format n where n can assume values from 1 to 12) Both keys are set as chronological keys
    Week -> Primary Key is week name (YYYY Wk nn, where nn can have values from 1 to 53), another key is week num (nn, where nn can have values from 1 to 53)
    Day -> primary key set to day (date format)
    Issue1: When I try to drill to lower levels it throws out an error saying report cannot find any data because filters may be too restrictive even though I see data at higher level
    For ex: If I drill down to Year: 2010 and Qtr: 2010 Q2 and M1:$100 when I click on Qtr to drll to month level it throws me the error
    Issue2: when I add year and qtr colums to the report I see data as below which is incorrect
    Year_Name Qtr_Name data:FACTA_M1 Data: FactB_M1
    2009 2009 Q1 $10 $5
    2009 2009 Q2 $20 $80
    2009 2009 Q3 $20
    2009 2009 Q4 $30
    2010 2010 Q1 $100
    2010 Q2 $101
    2010 Q3 $102 $230
    2010 Q4 $103
    2011 Q1 $10
    In the above example year_name is not showing up for 2010 Q2 and after. However if I change the primary key for level 'Quarter' by having key consist of year name and quarter name instead of just quarter name the issue doesnt occur and drill down works great. The only issue is when I drill from qtr it first shows year name and quarter name instead of showing the next level which would be month name.
    Sorry about the long message but I thought you might notice something in how I have set up the keys.
    Thanks

  • Any issues with latest 2014 ios update & Straight Talk

    Hi, I've been with straight talk for about 2 weeks without any problem - switching --porting--pics.....all went well . Now my phone ( iPhone 3c) shows iOS update waiting..
    Due to all I have read here & there,I'm a bit uneasy to do the update. Has anyone had any issues with lates t2014 ios update using ST? Will it affect the working of the phone if I don't do update? Thanks for any input.

    Hi, Glad  that worked for you. I don't know why this is happening other than to offer an opinion. This hardware acceleration was causing an issue with the previous version of FP also. I think that this technology is ready but the websites are not, youtube included.
    The same thing happened with Flash Player for the mobile phones, Android in particular. Adobe was ready but had to wait on Google to catch up. So the users thot Adobe was at fault, but that wasn't the case. Google had to update and that was done with their 2.2 update. This is not an opinion however. I followed this because users were coming here asking why Flash Player wasn't available for their Android:-)
    Adobe/Microsoft/Mac/Linux are all involved and if one advances a particular technology that effects the others, then each one must make a change for that technology to work. At least that's how I see it.
    Thanks for marking your thread as answered
    Regards,
    eidnolb

  • Printing issue with pdftops for XML publisher reports.

    Hi All,
    We have recently upgraded from 11.5.10 to R12.1.3.
    We are facing a strange issue for some of the seeded reports that were converted to type XML after R12 upgrade.
    First, the reports were printed with junk / xml character while submitting the requests from application (e.g. Account Analysis Report)
    We made the following changes.
    - Added PDF Publisher style with required flag set to yes to the  Account Analysis Report.
    - Set proifle option "FND: Default Template Output Type"  to PDF   (it was blank)
    - The pasta_pdf.cfg is configured to use pdftops for conversion
    - Restarted the manager.
    After this, the above report is priting fine and pdftops is converting it to correct format before printing.
    But one of the printer that Oracle EBS is configured is getting stuck specifically for this postscript based request.  The same report prints well on another printer.
    The 'lpstat -t' shows the following status for the failing printer.
    =============
    printer PRT1 is idle.  enabled since Tue 23 Jul 2013 03:24:40 PM EDT
            /usr/lib/cups/filter/pstoraster failed
    =============
    The printer queue logs on the application servers shows the following details for the failing printer.
    =========================================
    I [22/Jul/2013:15:00:48 -0400] [Job 137] Queued on "PRT1" by "appldfin".
    I [22/Jul/2013:15:00:48 -0400] [Job 137] Started filter /usr/lib/cups/filter/pdftops (PID 13530)
    I [22/Jul/2013:15:00:48 -0400] [Job 137] Started filter /usr/lib/cups/filter/pstoraster (PID 13531)
    I [22/Jul/2013:15:00:48 -0400] [Job 137] Started filter /usr/lib/cups/filter/hpcups (PID 13532)
    I [22/Jul/2013:15:00:48 -0400] [Job 137] Started backend /usr/lib/cups/backend/socket (PID 13533)
    E [22/Jul/2013:15:00:48 -0400] [Job 137] Job stopped due to filter errors.
    ==========
    The printer that works fine on the same application server has the following message.
    ==========
    I [22/Jul/2013:15:16:44 -0400] [Job 139] Queued on "PRT2" by "appldfin".
    I [22/Jul/2013:15:16:44 -0400] [Job 139] Started filter /usr/lib/cups/filter/pdftops (PID 15825)
    I [22/Jul/2013:15:16:44 -0400] [Job 139] Started backend /usr/lib/cups/backend/socket (PID 15826)
    I [22/Jul/2013:15:16:44 -0400] [Job 139] Completed successfully.
    ==============
    It only goes through 2 filters and prints just fine
    The system admin team has tried to re-install the printer driver but no luck.
    Any idea what could be the cause and how can fix it?
    Any pointers will be highly appreciated.
    Thanks
    Sunil Bhavsar

    Thanks Hussein.
    I will check the 2 options you recommended. At the same, I would like to test the direct print from the OS using pdftops utility.  But not sure how can I do that?
    The concurrent request creates the .tmp file under APPLTMP and pass that as the parameter while printing such requests. But if we need to test the .PDF output using pdftops directly, what should be the syntax? Or I would say, what should be the input file and output file?
    e.g.
    pdftops {infile} {outfile}
    I have got the .PDF output under $APPLCSF/$APPLOUT. But from one of the failed request logs, I see the system passes both as .tmp. If we need to test this directly, is there any way?
    In the meantime, I will check the debug logs option and update if it provides any additional information.
    Regards,
    Sunil

  • Issue with Varchar2 field conversion for report output generated in EXCEL

    Hello All,
    I have an unique problem with one of my new reports for the User. The user wants the report output generated in excel data only(delimited data) format *(reports builder 10g)* .
    Everything was fine until i encountered this problem, there was this field which has unique ID's(alphanumeric and numeric), when i tried to run the report and generate output in Excel the numeric ID's say for example *(41593497999679354429)* is converted in excel and displayed like *(2.5881E+19)* and after format cells in excel it displays *(41593497999679300000).*
    The issue is only with 20 digits numeric ID's , if i append any special character to the end say '#' or '..' it shows the exact value along with the appended character. But the user insist they need only the value that is in the table. I am finding it hard to figure out, if any one of you have encountered the same issue or if any of you have any suggestions to overcome this excel conversion thing please do advice me.
    Thanks in advance :)

    Thanks for you response, but i already tried what you suggested, instead of appending single quote in front of ID, i did at the end prior with '#', it preserves the value if i add any character to the id but the appended value shows up too :(.
    Well, i just got the solution and it did work, thanks to [Brian Hill|https://forums.oracle.com/forums/thread.jspa?threadID=651632] for the post, i did what exactly he said and it worked. I was so very happy and wanted to share with everyone.

  • Display issue with HTML formatted text in report builder

    I am using the FCKeditor in my application to allow endusers
    the ability to create formated text on reports. We curently are
    experiencing 2 issues: 1. If you copy and paste from MS Word
    2003/2007 it will not display the text correclty in the report; 2.
    If you use the FCKeditor toolbar to insert bullets or a numeric
    list it will not align the text correctly on the report. We are
    using Coldfusion 8 with Hotfix 1 and Coldfusion Report Builder's
    lastest build release.
    Has one experiences this same issue with HTML fields not
    printing correctly using the Report Builder? What other HTML
    editors besides FCKeditor might we use?
    Thanks,
    Dan VanWieren

    Can you tell me how to use </td> for each values
    Give me your example report - using before or after report
    Thanks
    MT
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by fdenis:
    Hi Gavin,
    If I understand well, your HTML tags are coded directly in your fields in the database, right? Because if it was not the case, you could have use a format trigger checking for which destination you're generating your report...
    if UPPER(:DESFORMAT) = 'HTML' or
    UPPER(:DESFORMAT) = 'HTMLCSS'
    then
    -- insert your HTML code in the value
    -- of your field. something like...
    newValue := '<B>' | | :YOUR_FIELD | | '</B>
    srw.set_field_char( 0, newValue );
    else
    -- when generating to other format,
    -- you'd have to add the formatting as
    -- you want.
    end if
    return( true );
    Of course, if it's not acceptable to remove the HTML tag from your database fields, you could develop a procedure that would translate your HTML tags to the good formatting (eurk... ;-)
    Good luck... :-)
    Frederic
    <HR></BLOCKQUOTE>
    null

  • Issue with the Total in BW Report

    Hi,
    We have recently transported the Aggregates in the Production environment. Now we are facing absurd problem.When we are executing the report the Total given by BW is not matching with the exact total of the Values.
    Example:
                          Values (BW Total)    Values (Exact Totals)
    1                      10                            10
    2                     10                            10
    3                     10                             10
    4                     10                             10
    5                    10                             10
    Total Row         53                             50
    All the Characteristics or Nodes are same as before. We have issue with the Key Figure and Calculated Key Figure.
    There is no pattern followed in the variation of the totals.Please help; let me know if you need more information.

    Hi.
    Please check if ll the data is rolled up in the aggregates. Also check the consistency of aggregates from RSRV.
    Hope this helps.
    Thanks,
    Mayuri

  • Problem with Date & Time Auto Update

    Hi everyone,
    I have been experiencing a date & time issue with my MacBook Air. (I am running 10.5.5 with all the latest software updates except for iTunes 8). Here's what's going on:
    Under the Date & Time preferences, whenever I try to check the box for "Set date & time automatically", the date and time do not update. I thought Norton might be the culprit in this case, but I have thoroughly uninstalled it, and this problem still persists. (I am actually borrowing this laptop for work, so I don't know if someone else possibly did something weird to it before I started using it. As far as I can remember, I've always had this problem -- the automatic setting has never worked.)
    I am connected to the internet when I do this, and I already have my time zone selected. Am I missing something obvious here?
    I apologize if this issue has been brought up before, but I did a lot of searching and couldn't find anything. Any suggestions would be greatly appreciated!!
    Thank you.

    whenever I try to check the box for "Set date & time automatically"
    You check it and the time does not update, or you try to check it and it doesn't show a little tick mark?
    Try it with Console.app open and see does it report any errors. Try changing the time server.
    AK

  • Issues with latest Illustrator CC update

    Issue with the latest update of illustrator CC on windows 7
    When copping large elements in illustrator its crashing and its crashing when dragging them across to Photoshop. I didn't have this problem until I updated yesterday afternoon.
    Its also not opening PDF files if illustrator is already open. If illustrator is closed then I choose to open a PDF in illustrator it will work, but not if a document is already open in illustrator. Will not open from bridge either, but drag and drop does still work.
    I'm having to revert back to CS5 until the problem is resolved as its destroying my work flow

    _Phi_
    Thanks for reporting the issue to AI team. Will it be possible for you to share the AI file with me at [email protected] ?
    I want to try the workflow at my end.
    With Best Regards,
    Raghuveer

  • Safari Issues with 10.5.3 update

    Most of the topics dealing with Safari's issues with the update have to do with it connecting to the internet. I don't have that problem.
    Ever since I downloaded 10.5.3 Safari slows down all of my computer's processes. For example, if I open Safari, wait for the homepage (gmail) to load, then try to open any other program, I get the little color wheel for about 5 minutes. Then it loads - try and click anywhere on my computer - little color wheel for another 5 minutes. None of this happens when Safari isn't open.
    I've run disk utility about 10 times, but I'm no apple expert so I have no idea what I can possible do after that. Has anyone experienced this problem or have know of any fixes?

    No Safari enhancers installed
    The CPU is running consistently at around 16-18.
    Yeah - I figured most people don't see this problem. I don't think I mentioned it was an all encompassing error, I just used the 10.5.3 update as a time line to point when the problem started.
    The issue seems to decrease when I am connected to my school's network rather than my home network, which has me worried that it has to deal with my network at home. I didn't notice this distinction before. Now that I have though - I'm going to read through the topic dealing with networking to see if their is a solution there, but from what I have glanced over thus far, my issue is different.

Maybe you are looking for

  • Error message on important website

    I Get this error message on my login on an improtatnt website. No one can tell me what to do, I have reset my add ons and all that a few times. I need to be on this website I'm trying to access like yesterday so some quick perminent fix would be amaz

  • Moving Iphoto photos to an external drive

    I have a huge image set of more than 23 Gb on Iphoto 6. I use two different mac both with Iphoto 6. Is there any way I can change the location of all the library to an external drive so In this way i could just plug the external drive to any of the t

  • Help required in understanding the rationale behind singleton class

    Can anyone help me in understanding singleton classes?why do we need them?Architecturally when should we go for a singleton class?

  • Branching View - Why does it appear this way?

    This is my first large project with Captivate 3 and I am trying to create a storyboard. I need to show my manager/client the branching view so they can follow along. What I created was a menu page that allows the users to go to many different subject

  • How to Find Income Tax range defind in SAP

    Hi all, Can anyone please tell me that how would i know the tax ranges defined in payroll and where we maintain the ranges? suppose i have income from 100000 to 200000 per annum so how we know that how much tax i'll have to pay and where can i mainta