Recurring problem - need to touch report query to make page to work again

Hello
In my APEX 3.0 (Oracle 10.2.0.3.0) application I have a main menu which is a very simple page with one report that selects from a local table (no dblink) what pages the logged user has access to.
The problem is that now and then (around once a week) users get "page not found" after they log in to the application but before the main menu is displayed. After some testing I found out that, to fix it, I need to touch the report query (let's say, adding an extra space somewhere) and apply changes. After that, the page works fine...
I have other much more complex pages in the application that don't have such problem.
Any advice? Where should I start investigating to fix this?
Thanks
Luis
PS: From the error_log file:
[Mon Aug 20 10:12:54 2007] [error] [client 10.0.10.87] [ecid: 11877561:10.0.24.16:14092:0:37471,0] mod_plsql: /pls/apex/f HTTP-404 ORA-03113: end-of-file o
n communication channel\n
[Mon Aug 20 10:12:54 2007] [alert] [client 10.0.10.87] [ecid: 11877561:10.0.24.16:14092:0:37471,0] mod_plsql: Unable to reset state for mode 0: Err 3114 url=>/pls/apex/f

i have this exact same problem in our production environment
i really need help to fix it or we'll lose our major client
they're fed up with it
anyone?

Similar Messages

  • I have tried VERY unsuccessfully to install iphoto 9.2.3 update...it says it has successfully updated - then on opening says: iPhoto cannot be opened because of a problem. Check with the developer to make sure iPhoto works with this version of Mac OS X.

    I have tried VERY unsuccessfully to install the new iphoto 9.2.3 update.
    I have installed it several times both from the appstore and from Apple Support downloads...it says it has 'successfully updated' - then on opening iphoto, a dialogue box pops up and says:
    iPhoto cannot be opened because of a problem.
    Check with the developer to make sure iPhoto works with this version of Mac OS X. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OS X.
    Click Report to see more detailed information and send a report to Apple.
    Insane...I have all my updates including Lion 10.7.3 why does APPLE KEEP SENDING BETAS AS A REAL PRODUCT?
    Does anyone know how to copy over a backup from a twinned drive Backup? What files etc.
    Thanks tons...

    Thanks Terence,
    I did get it working finally...and your last advice was what I needed.
    I am embarassed that I was an early adopter...SHOULD HAVE KNOWN BETTER and read the problems before creating some for myself.
    This was an excercise in frustration, because of the obtuse division between the appstore and Apple Support downloads... it was a bit of a circuitous route...strange that with all the security reciepts and tracking that Apple goes to to prevent piracy... which Steve by his own admission used to build Apple...
    Why aren't the server scripts smart enough to say…”HEY DUMMY you can't use this download because you purchased the last iPhoto upgrade from the appstore...and… DON'T WASTE YOUR TIME and precious data BUDGET downloading this gargantuan file which will eat 20% of your expensive 5Gb monthly data allotment!!!…and NOT WORK…only pretend to…and then foul your system….kill your productivity and turn your hair whiter…even worse than LION did.
    I am just so antagonized by the inept scripts in recent installations that don't do a diagnostic before allowing installation that is going to corrupt things...I had less effort and frustration when I ran my ATARI with a MAC emulator...rarely lost any productivity to nonsense.
    I AM TIRED OF BETAs dressed as products...designed and rushed out for Apple toys that once were tools of the creative trade...COREL...may still have a chance at a comeback if Apple keeps pumping out toys instead of the venerable tools we once adored as income enhancers.

  • I have updated to OS X 10.9 and now can't open Aperture, message reads You can't use this version of the application "Aperture" with this version of OS X. You have "Aperture" 3.2.3... all i need to know is how to get Aperture to work again..help !

    I have just updated to OS X 10.9 and now find that I can't open Aperture to access photos etc, message reads : You can't use this version of the application "Aperture" with this version of OS X. You have "Aperture" 3.2.3... whichj is not a lot of help, i have limited technical ability and all i need to know is how to get Aperture to work again...help !

    Software Update?

  • Need to create report query to get latest open and last closed period for given application

    Hi All,
    I need to create a report query to get below result displayed in report output.
    1)   -   Application name
    2)   -    Ledger name
    -o/  -Operating Unit
    3)   -  Last Closed Period
    4)   -  Current Open Period
    5)   -  Date Closed – Last Closed Period
    6)   -  Date Open – Current Open Period
    I tr I tried to create the query below is the same. Please let me know if it looks fine.
    SELECT *
      FROM (SELECT fav.application_name ,
                   hou.name Operating_Unit_Name,
                   gl.name Ledger_name,
                   gl.latest_opened_period_name,
                   gps.period_name Period_Name,
                   DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
                   gps.last_update_date Last_status_modified_date
              FROM gl_period_statuses gps,
                   gl_sets_of_books   gsob,
                   fnd_application_vl fav,
                   hr_operating_units hou,
                   gl_ledgers         gl
             WHERE gps.period_name = gps.period_name
               AND gps.closing_status ='C'
               AND fav.application_short_name =
                   NVL('&p_application_short_name', fav.application_short_name)
               AND gps.application_id = fav.application_id
               AND gsob.set_of_books_id = gps.set_of_books_id
               AND hou.set_of_books_id = gps.set_of_books_id
               AND gl.ledger_id = gsob.set_of_books_id
               AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
               AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id) 
             ORDER BY gps.last_update_date desc )WHERE ROWNUM = 1 
    UNION ALL
    SELECT *
      FROM (SELECT fav.application_name Application_Name,
                   hou.name Operating_Unit_Name,
                   gl.name Ledger_name,
                   gl.latest_opened_period_name,
                   gps.period_name Period_Name,
                   DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
                   gps.last_update_date Last_status_modified_date
              FROM gl_period_statuses gps,
                   gl_sets_of_books   gsob,
                   fnd_application_vl fav,
                   hr_operating_units hou,
                   gl_ledgers         gl
             WHERE gps.period_name = gps.period_name
               AND gps.closing_status = 'O'
               AND fav.application_short_name =
                   NVL('&p_application_short_name', fav.application_short_name)
               AND gps.application_id = fav.application_id
               AND gsob.set_of_books_id = gps.set_of_books_id
               AND hou.set_of_books_id = gps.set_of_books_id
               AND gl.ledger_id = gsob.set_of_books_id
               AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
               AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id) 
             ORDER BY gps.last_update_date desc)
             WHERE ROWNUM = 1

    It is within the table I believe (I'm not a DBA or a developer) since I created a BLOB column and then used the file browse feature to allow users to attach a resume to the table in order to be able to perform a search of the attached documents.
    I'm just having a hard time pointing the link in the search results report to the document in the blob column.
    The information on that page is great if you're trying to create a link to the document on the initial report.
    But I created a query using Oracle Text to run a report that does a boolean search of the attached word documents in the table.
    When it displays the search results, it doesn't create a link to the document and I can't figure out how to do it.
    Here's a link the the instructions I used to create the initial search report with Oracle Text, mind you I only created the index and query, I didn't add in all the link data since they're using documents on websites and I'm using documents in a table.
    http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
    If you can help me with this I'd really appreciate it.
    Thanks again.
    Greg
    Edited by: gjones77 on Dec 2, 2008 8:14 AM

  • Need help troubleshooting Report Query/BI Publisher

    Hi All --
    I need some help with an odd issue I'm having with a report query and BI Publisher. The users run this report by inputting a date range, usually by week. Oddly enough, if we input a date range of 06/01/2008 through 06/07/2008, the report runs and BI Publisher renders the document correctly, but if we input a date range of 06/08/2008 through 06/14/2008, the report shows correctly on the screen, but BI Publisher returns an empty document. I thought perhaps it was an issue with the data, but inputting the date range of 06/01/2008 through 06/14/2008 works correctly and the document is rendered with all the data as shown in the report.
    I'm really at a loss and don't know how to proceed in troubleshooting the issue. Does anyone know of any log files or anything else to look at to try and figure out why the report isn't being rendered correctly for that one week?
    Thanks!
    Leigh Johnson

    Thanks Marc --
    The OC4J logs don't show any errors at the time I tried running the report. I did change the output format to XML and saved it for the date range that doesn't work as well as a date range that does work. As foar as I can tell, the only differences is the data within the tags, but I'm no XML expert so I may have missed something. I opened my report template and loaded the xml data first from the date range that produces a rendered report properly and used preview...as expected it worked. When I did the same thing for the "bad" date range, I get the following set of errors, should I move my issue to the BI Publisher forum do you think?
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: D:\BiPublisher\on_time_delivery.rtf
    RTFProcessor setLocale: en-us
    FOProcessor setData: D:\BiPublisher\ontimedelivery.xml
    FOProcessor setLocale: en-us
    Output type: MHTML
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:721)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:504)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:253)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:181)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1151)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:275)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1809)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1027)
         at RTF2PDF.runRTFto(RTF2PDF.java:708)
         at RTF2PDF.runXDO(RTF2PDF.java:548)
         at RTF2PDF.main(RTF2PDF.java:305)
    Caused by: oracle.xdo.parser.v2.XPathException: An internal error condition occurred.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
         ... 15 more

  • Auto Query Form on Page not working

    Hi,
    I created a simple form portlet and want to autoquery it on a certain record. I added this code to "Before displaying the page" :
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_STC_SAMPLINK',
    p_value => 620352);
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => '_CALLED_FROM_LINK',
    p_value => 'STC_SAMPLINK');
    PORTAL.wwa_api_module_event.do_event('DEFAULT', 'QUERY_BOTTOM', 1, 'ON_CLICK', True, '', p_session);
    This performs the query but i see this first record of my table, while it should show the record with STC_SAMPLINK = 620352. When I remove the do_event statement, i can see the field filled in correctly and when pressing the query-button manually, it does show the record with STC_SAMPLINK = 620352.
    What am I doing wrong?
    Using Application Server 10.1.2.0.2 on HP-UX

    I just discovered that it does work using p_session.set_shadow_value (with extra p_language parameter). Does this mean that note 316158.1 on metalink (based on Auto Query Form on Page is no longer valid for 10g ?

  • My keyboard intermittingly goes off and I need to reboot my computer to get it to work again

    My keyboard on my mac intermittingly goes off. The only way to get it to work again is to reboot my computer.

    Is it Wifi or USB?
    Open console in Applications>Utilities, check the system log for the date/time of the last problem  & the Startup right after that for clues.

  • IPod touch: need to restore to previous update so it will work again on mac computer

    iPod touch:
    - my iPod has always been used with my desktop iMac computer, which has iTunes version 9 currently installed. It is updated to it's latest possible update, so I am assuming it is not compatible with the latest, iTunes 10.
    While working on a PC computer at work yesterday, I accidentally okay'd an ipod update/install in where my iPod now cannot be opened on my home Mac computer. It says it requres itunes version 10 to run it, yet my computer is currently up to date with only iTunes 9.
    Please help! .. is there a way I can restore my IPod back to the latest previous update so that it will still work on my Mac?.. will this require erasing all the data??..
    Thanks for your help.

    I have since restored my ipod completely, erasing all content and restoring it to it's original settings.
    I had to do this on the pc computer, as it still will not open/recognize on the Mac that I want it to work on.
    I plugged the restored ipod into the Mac and got the same response-- needs iTunes 10, my computer will only update up to 9.2.1.
    Besides the obvious 'time to get a new computer..', is there anything I can do to restore the ipod touch back to a previous software version?? This is frustrating!

  • Problem in XML Publisher Report submission from OAF Pages

    Hi,
    I am trying to submit Concurrent Program from OAF Page which is an XML Publisher Report.
    The request is Submitting and Completing successfully but when we open to view the out put we are able to view the HTML tags.
    We checked the same Concurrent program by submitting from the SRS window After completing if we click on view output the rtf file is getting opened correctly.
    I tested with normal rdf report it is working fine with standard Concurrent program used in OAF
    So my doubt is
    Does the Standard Concurrent program used in OAF supports the rtf reports.
    Please suggest if any modifications to be done in the Concurrent program
    Krishna

    Krishna
    Modified your code a little bit.Use this
        public int submitCPRequest(String shipmentId) {
        System.out.println("into submitCPRequest");
            OAPageContext pageContext;
            OAWebBean webBean;
        try {
    OAApplicationModule am =pageContext.getApplicationModule(webBean);
        OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
        java.sql.Connection pConncection = tx.getJdbcConnection();
        ConcurrentRequest cr = new ConcurrentRequest(pConncection);
        String applnName = new String("XXAPL"); //Application that contains the concurrent program
        System.out.println("ApplName"+ applnName);
        String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
        System.out.println("Concc Name"+ cpName);
        String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
        // Pass the Arguments using vector
        // Here i have added my parameter headerId to the vector and passed the
        //vector to the concurrent program
        Vector cpArgs = new Vector();
        cpArgs.addElement(shipmentId);
        System.out.println("Args"+ cpArgs);
        // Calling the Concurrent Program
        int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
        cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
        System.out.println("Req Id"+ requestId);
        tx.commit();
        return requestId;
            catch (RequestSubmissionException e) {
            System.out.println("Into Exception");
            OAException oe = new OAException(e.getMessage());
            oe.setApplicationModule(this);
            throw oe;
            catch(Exception exception)
            throw OAException.wrapperException(exception);
        }Thanks
    AJ

  • I cannot get my email to send or receive after attempting to get my MobileMe to work after a year of sitting on my hard drive. What do I need to do in order to get my email working again? A window pops up telling me my pasword is incorrect!

    I have two email addresses coming into my mail at all times. Recently, I tried to activate MobileMe after it had sat unused on my hard drive. Since then, one of my email addresses does not send or receive. The window pops up telling me my password is wrong. What do I need to accomplish to fix this issue?

    Hi Sonia,
    While transferring Adobe from laptop to PC the licensing files got corrupt and the right way to use Adobe Applications is to install first as transferring from a different machine can give you problems.
    You can try steps from this article if that helps otherwise you have to reinstall and manually delete some files , everything is mentioned.
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html
    You can download CS4 from here:
    Download CS4 products

  • Need help to get my Brother DCP-J125 printer working again

    I'm totally stuck here. I had this printer working and now after a few months it doesn't work anymore.
    I tried it with/without usblp. Tried it by installing the drivers myself and by installing the drivers with brother-dcpj125 from AUR (and I did run the script that comes with the drivers). Readded printer several times, reinstalled cups several times. The printer doesn't print. I think cups doesn't find the printer... (The scanner works btw)
    $ lsmod | grep usb
    usb_storage 44760 0
    usbhid 36812 1 hid_logitech
    hid 85608 3 hid_generic,hid_logitech,usbhid
    btusb 11892 0
    bluetooth 193532 10 bnep,ath3k,btusb
    scsi_mod 133152 6 uas,rts5139,usb_storage,libata,sd_mod,sr_mod
    usbcore 147434 9 uas,ath3k,btusb,uvcvideo,rts5139,usb_storage,ehci_hcd,usbhid,xhci_hcd
    usb_common 954 1 usbcore
    /var/log/messages.log
    Connecting the printer:
    Sep 23 16:55:34 localhost kernel: [ 2855.013082] usb 2-1: new full-speed USB device number 3 using xhci_hcd
    Sep 23 16:55:34 localhost kernel: [ 2855.029232] usb 2-1: ep 0x85 - rounding interval to 512 microframes, ep desc says 800 microframes
    Sep 23 16:55:34 localhost kernel: [ 2855.029994] scsi8 : usb-storage 2-1:1.2
    Sep 23 16:55:34 localhost mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0/usb2/2-1"
    Sep 23 16:55:35 localhost mtp-probe: bus: 2, device: 3 was not an MTP device
    Sep 23 16:55:42 localhost dbus[644]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
    Sep 23 16:55:45 localhost kernel: [ 2866.038840] scsi 8:0:0:0: Direct-Access Brother DCP-J125 1.00 PQ: 0 ANSI: 2
    Sep 23 16:55:45 localhost kernel: [ 2866.099179] sd 8:0:0:0: [sdd] Attached SCSI removable disk
    Sep 23 16:56:12 localhost dbus[644]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
    Disconnecting the printer:
    Sep 23 16:57:37 localhost kernel: [ 2977.838261] usb 2-1: USB disconnect, device number 3
    $ lsusb
    Bus 002 Device 004: ID 04f9:0253 Brother Industries, Ltd
    $ ls -l /dev/bus/usb/002/004
    crw-rw-r-- 1 root lp 189, 131 23. Sep 16:59 /dev/bus/usb/002/004
    # lpinfo -v
    network ipp
    network beh
    network smb
    network http
    network socket
    network https
    network lpd
    network ipps
    file cups-pdf:/
    direct hp
    direct hpfax
    $ /usr/lib/cups/backend/usb
    DEBUG: list_devices
    DEBUG: libusb_get_device_list=13
    DEBUG: Switching USB device configuration: 0 -> 1
    DEBUG2: Printer found with device ID: Device URI: usb://Unknown/Printer
    direct usb://Unknown/Printer "Unknown" "Unknown" "" ""
    Any idea what's wrong? The printer worked perfectly a few months ago

    nTia89 wrote:start posting the pacman's log....
    This is everything I installed or upgraded since March. Do you need the whole log?
    https://raw.github.com/gist/3d718d6781d … tfile1.txt
    David Batson wrote:
    You probably need to change the URI in CUPS.  See the following for some tips.
    http://welcome.solutions.brother.com/bs … prn1a.html
    http://welcome.solutions.brother.com/bs … _prn3.html
    I can select the driver for my printer when I modify the printer, but the "Connection" stays "usb:/dev/usb/lp0".
    Last edited by slosd (2012-09-23 22:56:49)

  • Using PSE8 on a Mac, OS10.94. Error message "Licensing for this product has stopped working." Error 150:30 Followed all of Adobe's suggestions for the fix, nothing works. I need to know how to make this software work again. I also need contact details for

    What, you want all that AGAIN?
    Windows here I come ...

    Unfortunately when Adobe products are restored from backup, especial CS4 and especially Mac, it breaks licensing.
    There is a python script included in the license recovery kit that should work if you are familiar with Terminal.
    If not, you must reinstall your CS4 suite.  You don't need to delete your preferences, so it should be the same as before.
    Error "Licensing has stopped working" | Mac OS
    Gene

  • Need advice to make outgoing mail work again

    This has gotten too weird for me to figure out, and I'm looking for some help. It's like Mail has decided to stop sending mail. I'll explain the problem and then I can explain why it's almost certainly a problem on my end.
    Any mail I send gives me error messages.
    If I use my company's server, I get the message:
    Cannot send message using the server mail.mydomain.us
    The server response was: sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)
    Use the pop-up menu below to try a different outgoing mail server. All messages will use this server until you quit Mail or change your network settings.
    If I try to use my Roadrunner server, I get
    Cannot send message using the server smtp-server.houston.rr.com
    Use the pop-up menu ...
    If my wife sends mail using Mail from her machine, using our company server, it goes through.
    I can receive mail via both mail servers, no problem.
    If I go to the web interface for my server, I can send and receive.
    The last note I was able to send (from my domain) was Sunday night at 10:16 pm. The first message I tried to send the next morning, I got this error. No Mail settings were changed. No network settings were changed -- I know, that makes it sounds like it can't be a Mail problem, but I don't know what other choices I have.
    I've logged off and back on with no change. I've rebooted the machine with no change.

    Are you also unable to send messages via your RR email account using RR's SMTP server?
    Is your company's SMTP server authenticated?
    Are you using 25 for the Server Port with your company's SMTP server and if so, have you tried changing the server port from 25 to 587?
    FYI - sending messages via webmail access using a browser is not done with an SMTP server as is required when sending messages with an email client such as the Mail application so this is not related.
    Do you have any SMTP servers available with Mail that are not being actively used by any email account?
    I am also a RR customer and I use RR's SMTP server to send messages with my .Mac account when connected to the internet at home via RR with no problems.

  • Out standing MIS Report query problem.

    Hi,
    We designed MIS Report for outstanding mis through Crystal report.here we are facing probleme.ex:AR invoice raised on 01 Jan 09 bill amount 1000 and for this client is received full amount against that bill on 04 march09.in this report we provided parameters for from date and to date. When user selected in parameter from date 010109 to 050309 it will show pending amount is 0.but users are asking if they select from date upto 030309 means it will show pending amount should be show 1000.in this query we are retrieving based on document status when open. How we can show report for this requirements. Please guide me.if we give docstatus='O' or docstatus= 'C' it's showing but pending amount =Bill amount - paid amount here it's showing 0 i think here also we need to pass incoming payment docdate.how wen do please guide me.
    below this is the query.
    set @FromYear=case when month(@ToDate)>=1 and month(@ToDate)<=3 then Year(@ToDate)-1 else Year(@ToDate) end
    set @ToYear=case when month(@ToDate)>=1 and month(@ToDate)<=3 then Year(@ToDate) else Year(@ToDate)+1 end
    --select @fromYear,@toyear,@todate,@ProjCode,@Cardcode,@VoucherType,@GroupName
    select a.u_category,a.docdate,g.name,d.CardCode,d.cardname,e.GroupName,SUBSTRING(CONVERT(VARCHAR(11), a.docdate, 113), 4, 8)as Month of invoiceraised,
    b.seriesname,a.docnum,a.Project,0,a.doctotal,
    paidamount= case when a.paidtodate is NULL then 0 else a.paidtodate end,
    pendingamount= case when isnull(a.doctotal,0)-isnull(a.paidtodate,0) is null then 0 else isnull(a.doctotal,0)-isnull(a.paidtodate,0) end,
    case when year(a.docdate) = @ToYear and month(a.docdate) = 3 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as March ,
    case when year(a.docdate) = @ToYear and month(a.docdate) = 2 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Feb,
    case when year(a.docdate) = @ToYear and month(a.docdate) = 1 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Jan,
    case when year(a.docdate) = @FromYear and month(a.docdate) = 12 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Dec,
    case when year(a.docdate) = @FromYear and month(a.docdate) = 11 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Nov,
    case when year(a.docdate) = @FromYear and month(a.docdate) = 10 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Oct,
    case when year(a.docdate) = @FromYear and month(a.docdate) = 9 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Sept,
    case when year(a.docdate) = @FromYear and month(a.docdate) = 8 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as Aug,
    case when year(a.docdate) = @FromYear and month(a.docdate) = 7 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as July,
    case when year(a.docdate) = @FromYear and month(a.docdate) = 6 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as June,
    case when year(a.docdate) = @FromYear and month(a.docdate) = 5 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as May,
    case when year(a.docdate) = @FromYear and month(a.docdate) = 4 then isnull(a.doctotal,0)-isnull(a.paidtodate,0) else 0 end as April,
    --case when a.docdate = (select f_refdate from ofpr where year(f_refdate)=year(a.refdate) then a.doctotal-c.paidtodate else 0 end as Pre-Yr
    nodocsum=isnull(f.nodocsum,0),0 as PreviousFY
    from oinv a
    left join nnm1 b on a.series=b.series
    inner join INV1 c ON a.DocEntry = c.DocEntry
    inner join OCRD d ON d.CardCode=a.CardCode
    left join ocpr g on g.cardcode=d.cardcode
    Inner join OCRG e on e.GroupCode=d.GroupCode and e.grouptype='c'
    LEFT JOIN ORCT f ON a.DocEntry = f.DocEntry
    where
    a.docstatus='O' and
    case when a.doctotal-a.paidtodate is null then 0 else a.doctotal-a.paidtodate end >= 0
    Reds,
    Sampath kumar devunuri.

    Hi,Gordon Du ,
    We are designing through Crystal reports 2008 only. Based on SQL query how we can maintain History of Document status and date in table. Please give me your advise how we can rectify this problem. Kindly find above query.
    Regds,
    Sampath Kumar.

  • Problem with using a Spatial Query in a report region

    All: I am trying to create a report region using the below query. The query is syntactically correct and returns 10 rows. I have checked it out in SQL Developer AND in APEX SQL Workshop. It returns rows in 1-2 seconds.
    However, after putting the query into a report region, the APEX page locks up when it runs. I've tried masking it in a view, using other functions. I can places the spatial function in the select clause and it works. However, placing the function in the Where clause causes the page to lock up.
    Any thoughts?
    Thanks,
    John
    select lastname, address
    from changetracking.individuals
    where sdo_nn (spatiallocation, MDSYS.SDO_GEOMETRY(2001,8265,MDSYS.SDO_POINT_TYPE(-87.55728,33.137569,null),null,null), 'sdo_batch_size=10') = 'T

    QImaging is not officially supported in the Measurement & Automation (MAX) toolkit, though you may find some luck with our free legacy QImaging LabView interface here: http://www.qimaging.com/support/downloads/software/windows/QCamLabViewInstaller221.exe depending on the version lf LabView you're using.If you're looking for something that is actively updated and supported, you may want to get back in touch with Fred at +1.800.874.9789 and ask about our SITK LabView interface as well.
      PMQI_Josh,
    Yes I've already installed the LabVIEW interface beforehand. Also the version of LabVIEW I'm currently using is 8.6. I'll get in contact with Fred to see if there's a solution to this problem. Thank you.

Maybe you are looking for

  • My iPod is stuck in Recovery Mode after trying to Update...

    I was trying to update my ipod 4th gen (ios 6.1.3 or something like that) and it went into Recovery Mode. My laptop have Windows XP on it and doesn't allow me to plug anything into the USB thingys. I've tried everything to get them to work, but it wo

  • Acrobat 9.5.1 updates

    Every time I now boot up I get prompted in the system tray to install the 9.5.1 update.  I have done this twice, each time took several minutes and appeared to be successful.  The feedback to say that I am up to date must have failed somehow.  How ca

  • Prem Pro 2.0 audio capture

    Have camera setup for on camera mic tracks 1/2 and extra mic for PTC on track 3 - how do I captureaudio track 3? using adobe capture Thanks for any help - appreciated

  • Oracle Client to  connect to oracle database 7.x

    Hi, I want to connect to oracle database 7.x from a win2K using ODBC. I know I need sql*net to make a connection . Can you tell me where can I find it on the site to download/purchase? If it is not available,can you suggest me the other options avail

  • Problem trying to update with yaourt

    Im trying to update the package chromium-browser-bin doing: yaourt -Suy --aur When yaourt detects the new version, it asks me to update, so far, so well... Suddenly htis message appears: ==> Edit the PKGBUILD (highly recommended for security reasons)