Loadjava puts the whole program on one line

Hi,
I have used the loadjava facility standalone and within Oracle9i jDeveloper and found that when I upload the java source, it puts the whole program on one line. Also if I have left blank lines in the source code, they appear as 'null' in the stored procedure.
See below is my code:
package mypackage1;
public class HelloWorld
   public static String world ()
      return "Hello world";
}and this is what it looks like if I open the Java classes in jDeveloper:
package mypackage1;nullpublic class HelloWorld{   public static String world ()   {      return "Hello world";   }}nullI am using a windoes 2000 box.
Why is this happening?
Thanks
Jag

Thanks, i'll try it out,
However, it isn't just the code that appears on one line. All teh functions and packages all appear on one line and they are generated either by JDev and hence are out of my control.
You would have thought that this would have been one of the types of things the JDeveloper development team would have tested, so i'm hoping it just a configuration somewhere.
Thanks
Jag

Similar Messages

  • Why won't my dvr record the whole program?

    Why won't my dvr record the whole program I'm watching when I press the record button. It only records from when I pushed the button.
    I can go through "menu" to "DVR" to "Create New Recording" to "Manual Recording" and then hit "OK" and it record from when I first started watching a program.
    I used to only have to press record to do this.
    I've "Refreshed Devices", Went through "Auto-fix MRDVR Issues" and ran both programs.
    Still only records from the time I hit "Record", not back to when I started watching the program. 
    WHATSUP?

    I have basically the same problem, although what's most confusing is it's not completely consistent. When I've been watching a program from the start, there have been times that I've pressed the Record button at some point in the show and everything has been recorded, including the buffered content. But most of the time, that does not happen. Even when I've been on the same channel the whole time and press Record, it usually only records from that point forward, and loses the buffered content. And if I've paused or backed up into the buffer at all, then pressing the Record button only records from that point in live TV forward. 
    I can't figure out whether there's something I need to do differently. There's more than one way to start a recording -- you can press the red Record button; you can press Info and Record Episode; or you can create a manual recording. I've tried these different ways and it doesn't seem to make a difference in terms of whether the buffered content is recorded or not. I also wonder if it's somehow tied to how much disk space is available.
    Thanks for any suggestions or comments. I find this EXTREMELY frustrating. I was a DirecTV customer before and loved the way their DVR worked. I've been with Verizon for about 4 years now and still don't like it. The only thing I do like is the multi-room capability, which DirecTV couldn't offer at the time.

  • I've updated all my software and iTunes on my Macbook Pro but when I went to open iTunes it tells me it's either corrupted or not installed correctly and to reinstall it. Is there anyway to fix it without reinstalling the whole program?

    I've updated all my software and Itunes on my Macbook Pro but when I went to open iTunes it tells me it's either corrupted or not installed correctly and to reinstall it. Is there anyway to fix it without reinstalling the whole program?

    Here's a previous discussions that seems to have solved a similar issue in the past:
    https://discussions.apple.com/message/12209861#12209861

  • I just did the photoshop camera raw update and now everytime I try to do a text box or change the text the whole program crashes.

    I just did the photoshop camera raw update and now every time I try to do a text box or change the text the whole program crashes.

    All fixed!!!  My Aperture wasn't being recognized because it was in a folder.  OK, now I can use my camera with Aperture. 

  • After saving a htaccess file, why the text is on one line

    hello all,
    I am a webmaster and some time I have to setup a htaccess file (.txt file)When I edit it with Textedith, I make a modification and I save it. Nothing works.
    When I open the same file with a PC, all the text is in one line. of course it will not work.
    Can some one tell me why the file is not saved in the format when I open it, so it saved in one line?

    TextEdit isn't the best choice for editing configuration files, since it doesn't use Unix line endings -
    I thought TextEdit did use Unix line endings (LF). The reason it is all one line on a PC is that PC's do not, and thus will only display new lines if line endings are Windows format (CR + LF).
    I don't think there should be any problem editing config files with TextEdit, but TextWranger is better, and it also easily handles file names that begin with a dot.

  • I have two ipods and i want to put the music all on one. how do i do that?

    I have two ipods and i want to put the music all on one. how do i do that?

    Is all the music in the same computer iTunes library?

  • I Logic 9 I bought at appel store installed and want to install the new Logic X, how do I uninstall Logic 9 and have the whole program?

    I Logic 9 I bought at appel store installed and want to install the new Logic X, how do I uninstall Logic 9 and have the whole program?
    Message was edited by: davidjsousa

    Of course

  • Delete last line of a textfile without putting the whole file in memory

    Hello!
    I want to delete the last line of a text file without loading the whole text file into thememory. My problem is as follows:
    A algorithm generates output that has to be written into a text file. This happens periodically - the output goes straight into a xml file. The xml file looks like this:
    <test>
    <step>
    <time>2006-06-19 10:55:20</time>
    <result>12321</result>
    </step>
    <step>
    <time>2006-06-19 10:58:20</time>
    <result>41515</result>
    </step>
    </test>
    The XML file must be valid, so I have to delete the last line ("</test>") before I add a new <step>-section.
    Many thanks in advance
    Kind regards,
    buliwyf

    For processing in a separate tool which understands XML, then using a DTD to declare an external entity is often better - you wrap the entity in the document root element, so you can just append to the end of the file the entity references and not bother about inserting before the closing tag.
    File other app loads:
    <?xml version="1.0"?>
    <!DOCTYPE test [ <!ENTITY content SYSTEM "content.xmlfragment"> ]>
    <test>&content;</test>File content.xmlfragment which can be simple appended to:
    <step time="2006-06-19 10:55:20">12321</step>
    <step time="2007-04-09 10:55:20">12321</step>
    <step time="2008-09-26 00:03:20">12321</step>If you can't use XML to solve the problem, then you can scan backwards in the file (using random access file or file buffer) until you find a '<' character which is followed by an '/' character. You can't have CDATA after the closing tag of the document element, and comments and processing instructions have different characters following the '<'.

  • How do you remove a desktop icon with out deleting the whole program?

    i downloaded software online and it went into my application folder but instead of just the program the whole folder did with manuals and everything, so i copyed that to the desk top and then put the just the program back into the application folder. Now how do i delete the other one off the desktop, with out deleting the program,

    If you removed the application from the folder of other files, then deleting the folder has no effect on the application file. However, you might check that the application doesn't require any of the files in that folder before you remove it. Drag it to the Trash, but don't Empty the Trash until you're sure the application works without it.

  • How to put grouped results all on one line.

    I amt trying to get Principal, Interest, Principal YTD, Interest YTD from a transaction table to get them all on one line, but I can't seem to get it. I have a script here that can run without modification to see what I have here. The very last query is
    incorrect, as it puts each value on a separate line, but it demonstrates what I am getting so far. What I want is one account number with 4 columns, as above mentioned. Keep in mind, in this illustration, YTD is last year and forward:
    CREATE TABLE #a
    PMT_ID INT IDENTITY(1,1),ACCT_NO INT, PMT_TYPE CHAR(1), PMT_AMT MONEY, PMT_DATE DATE)
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'P', 450, '2012-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'I', 100, '2012-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'P', 450, '2012-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'I', 100, '2012-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'P', 450, '2012-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'I', 100, '2012-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'P', 351, '2012-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'I', 102, '2012-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'P', 352, '2012-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'I', 102, '2012-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'P', 353, '2012-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'I', 102, '2012-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'P', 850, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'I', 200, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'P', 880, '2013-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'I', 201, '2013-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'P', 855, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'I', 203, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'P', 451, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'I', 99, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'P', 451, '2013-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'I', 99, '2013-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'P', 451, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 1, 'I', 99, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'P', 352, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'I', 101, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'P', 353, '2013-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'I', 103, '2013-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'P', 354, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 2, 'I', 103, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'P', 851, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'I', 199, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'P', 881, '2013-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'I', 201, '2013-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'P', 854, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES ( 3, 'I', 205, '2013-12-01')
    SELECT PMT_ID, ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE
    FROM #a
    SELECT ACCT_NO, SUM(PMT_AMT) TOT_PRINCIPAL_PAID
    FROM #a
    WHERE PMT_TYPE = 'P'
    GROUP BY ACCT_NO
    SELECT ACCT_NO, SUM(PMT_AMT) TOTAL_INTEREST_PAID
    FROM #a
    WHERE PMT_TYPE = 'I'
    GROUP BY ACCT_NO
    SELECT ACCT_NO, SUM(PMT_AMT) TOTAL_PRINCIPAL_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'P'
    AND DATEPART(year,[PMT_DATE])=DATEPART(year,DATEADD(year,-1,GETDATE()))
    GROUP BY ACCT_NO
    SELECT ACCT_NO, SUM(PMT_AMT) TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'I'
    AND DATEPART(year,[PMT_DATE])=DATEPART(year,DATEADD(year,-1,GETDATE()))
    GROUP BY ACCT_NO
    SELECT ACCT_NO
    ,SUM(PMT_AMT) AS TOTAL_PRINCIPAL_PAID
    ,NULL AS TOTAL_INTEREST_PAID
    ,NULL AS TOTAL_PRINCIPAL_PAID_YTD
    ,NULL AS TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'P'
    GROUP BY ACCT_NO
    UNION
    SELECT ACCT_NO
    ,NULL AS TOTAL_PRINCIPAL_PAID
    ,SUM(PMT_AMT) AS TOTAL_INTEREST_PAID
    ,NULL AS TOTAL_PRINCIPAL_PAID_YTD
    ,NULL AS TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'I'
    GROUP BY ACCT_NO
    UNION
    SELECT ACCT_NO
    ,NULL AS TOTAL_PRINCIPAL_PAID
    ,NULL AS TOTAL_INTEREST_PAID
    ,SUM(PMT_AMT) AS TOTAL_PRINCIPAL_PAID_YTD
    ,NULL AS TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'P'
    AND DATEPART(year,[PMT_DATE])=DATEPART(year,DATEADD(year,-1,GETDATE()))
    GROUP BY ACCT_NO
    UNION
    SELECT ACCT_NO
    ,NULL AS TOTAL_PRINCIPAL_PAID
    ,NULL AS TOTAL_INTEREST_PAID
    ,NULL AS TOTAL_PRINCIPAL_PAID_YTD
    ,SUM(PMT_AMT) AS TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'I'
    AND DATEPART(year,[PMT_DATE])=DATEPART(year,DATEADD(year,-1,GETDATE()))
    GROUP BY ACCT_NO
    -- Query to put this all these 4 columns on the same line, ending up with 3 lines.
    DROP TABLE #a

    Try the below query
    CREATE TABLE #a
     PMT_ID INT IDENTITY(1,1),ACCT_NO INT, PMT_TYPE CHAR(1), PMT_AMT MONEY, PMT_DATE DATE)
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'P', 450, '2012-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'I', 100, '2012-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'P', 450, '2012-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'I', 100, '2012-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'P', 450, '2012-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'I', 100, '2012-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'P', 351, '2012-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'I', 102, '2012-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'P', 352, '2012-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'I', 102, '2012-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'P', 353, '2012-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'I', 102, '2012-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'P', 850, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'I', 200, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'P', 880, '2013-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'I', 201, '2013-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'P', 855, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'I', 203, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'P', 451, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'I', 99, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'P', 451, '2013-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'I', 99, '2013-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'P', 451, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 1, 'I', 99, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'P', 352, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'I', 101, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'P', 353, '2013-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'I', 103, '2013-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'P', 354, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 2, 'I', 103, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'P', 851, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'I', 199, '2013-09-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'P', 881, '2013-10-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'I', 201, '2013-11-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'P', 854, '2013-12-01')
    INSERT INTO #a ( ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE ) VALUES  ( 3, 'I', 205, '2013-12-01')
    SELECT PMT_ID, ACCT_NO, PMT_TYPE, PMT_AMT, PMT_DATE 
    FROM #a
    SELECT ACCT_NO, SUM(PMT_AMT) TOT_PRINCIPAL_PAID
    FROM #a
    WHERE PMT_TYPE = 'P'
    GROUP BY ACCT_NO
    SELECT ACCT_NO, SUM(PMT_AMT) TOTAL_INTEREST_PAID
    FROM #a
    WHERE PMT_TYPE = 'I'
    GROUP BY ACCT_NO
    SELECT ACCT_NO, SUM(PMT_AMT) TOTAL_PRINCIPAL_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'P'
    AND DATEPART(year,[PMT_DATE])=DATEPART(year,DATEADD(year,-1,GETDATE()))
    GROUP BY ACCT_NO
    SELECT ACCT_NO, SUM(PMT_AMT) TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'I' 
    AND DATEPART(year,[PMT_DATE])=DATEPART(year,DATEADD(year,-1,GETDATE()))
    GROUP BY ACCT_NO
    select 
    T123.ANO,
    SUM(TOTAL_PRINCIPAL_PAID) TOTAL_PRINCIPAL_PAID,
    SUM(TOTAL_INTEREST_PAID) TOTAL_INTEREST_PAID ,
    SUM(TOTAL_PRINCIPAL_PAID_YTD) TOTAL_PRINCIPAL_PAID_YTD,
    SUM(TOTAL_INTEREST_PAID_YTD) TOTAL_INTEREST_PAID_YTD
    from
    SELECT ACCT_NO ANO
    ,SUM(PMT_AMT) AS TOTAL_PRINCIPAL_PAID
    ,NULL AS TOTAL_INTEREST_PAID
    ,NULL AS TOTAL_PRINCIPAL_PAID_YTD
    ,NULL AS TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'P'
    GROUP BY ACCT_NO
    UNION
    SELECT ACCT_NO
    ,NULL AS TOTAL_PRINCIPAL_PAID
    ,SUM(PMT_AMT) AS TOTAL_INTEREST_PAID
    ,NULL AS TOTAL_PRINCIPAL_PAID_YTD
    ,NULL AS TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'I'
    GROUP BY ACCT_NO
    UNION
    SELECT ACCT_NO
    ,NULL         AS TOTAL_PRINCIPAL_PAID
    ,NULL         AS TOTAL_INTEREST_PAID
    ,SUM(PMT_AMT) AS TOTAL_PRINCIPAL_PAID_YTD
    ,NULL         AS TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'P'
    AND DATEPART(year,[PMT_DATE])=DATEPART(year,DATEADD(year,-1,GETDATE()))
    GROUP BY ACCT_NO
    UNION
    SELECT ACCT_NO
    ,NULL         AS TOTAL_PRINCIPAL_PAID
    ,NULL         AS TOTAL_INTEREST_PAID
    ,NULL         AS TOTAL_PRINCIPAL_PAID_YTD
    ,SUM(PMT_AMT) AS TOTAL_INTEREST_PAID_YTD
    FROM #a
    WHERE PMT_TYPE = 'I'
    AND DATEPART(year,[PMT_DATE])=DATEPART(year,DATEADD(year,-1,GETDATE()))
    GROUP BY ACCT_NO)T123
    Group by T123.ANO 
    DROP TABLE #a

  • Refresh the whole page in one case in SPRY

    I have created login page in php, Using spry i posted the
    form in same page,getting response in div section i.e. <div
    id="response_form1" align="center"></div>
    when i supply wrong password the form submitted and error
    message appeared in <div id="response_form1"
    align="center"></div>.
    Now my question is that how can i achieve the whole page to
    be refreshed when i successfully authenticated.
    In other words
    i want the whole page to be changed in one case (redirect the
    whole page).
    and in other case response will be getting in DIV (Not whole
    page will be updated/posted).
    code of Login_ajax.php file is given below .
    login_form.php
    <?
    if(count($_POST)>0){
    $usrname=$_REQUEST['usrname'];
    $pass=$_REQUEST['pass'];
    $cmdlogin=$_REQUEST['cmdlogin'];
    //echo $usrname."<br>".$pass;
    if (file_exists('adm.os')) {
    $lines = file('adm.os');
    for($i=0;$i<count($lines);$i++){
    $auth=explode('||',$lines[$i]);
    $key=array_search($usrname,$auth);
    if(!is_int($key)){
    $msg = "<b>Error : <font color=Red>Username /
    Password not exists or correct ...</font></b>";
    }else if($auth[0]==$usrname &&
    $auth[1]==md5($pass)){
    header("Location: new.php");
    }else{
    $msg = "<b>Error : <font color=Red>Username /
    Password not exists or correct ...</font></b>";
    } else {
    $msg = "<b>Error : <font color=red>The file
    $filename does not exist</font></b>";
    echo $msg;
    }else{
    ?>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <link href="css/samples.css" rel="stylesheet"
    type="text/css" />
    <style type="text/css">
    .product {
    cursor: pointer;
    .hover {
    background-color: #FFFFCC !important;
    .selected {
    background-color: #CCCCCC;
    .style6 {font-size: 14px}
    .style7 {font-size: 12px}
    </style>
    <script src="js/xpath.js"
    type="text/javascript"></script>
    <script src="js/SpryData.js"
    type="text/javascript"></script>
    <script src="js/SpryUtils.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    // Callback function that will update the response_form1 div
    with the response that comes from the server
    function updateResponseDiv(req)
    Spry.Utils.setInnerHTML('response_form1',
    req.xhRequest.responseText);
    //-->
    </script></head>
    <body>
    <table width="100%" height="100%" border="0"
    align="center" cellpadding="0" cellspacing="0">
    <tr><td>
    <form name="form1" method="post" action="login_ajax.php"
    onSubmit="return Spry.Utils.submitForm(this,
    updateResponseDiv)">
    <table width="30%" border="0" align="center"
    cellpadding="0" cellspacing="0">
    <tr>
    <td height="25" colspan="2"> </td>
    </tr>
    <tr>
    <td height="25" colspan="2"><span class="style5
    style6"><strong>Administrator
    Login</strong></span></td>
    </tr>
    <tr>
    <td width="40%" height="25"><div align="right"
    class="style5 style7"><strong>Username
    :</strong></div></td>
    <td width="60%" height="25"><input type="text"
    name="usrname" id="usrname"></td>
    </tr>
    <tr>
    <td height="25"><div align="right" class="style5
    style7"><strong>Passwd
    :</strong></div></td>
    <td height="25"><input type="password" name="pass"
    id="pass"></td>
    </tr>
    <tr>
    <td height="25" colspan="2"><label
    for="cmdlogin"></label>
    <div align="center">
    <input type="submit" name="cmdlogin" id="cmdlogin"
    value="Login">
    </div></td>
    </tr>
    </table>
    </form>
    <div id="response_form1" align="center"></div>
    </td></tr>
    </table>
    </body>
    </html>
    <?}?>
    end login_ajax.php
    --------------------------------------------------------------

    quote:
    Originally posted by:
    NAVISD
    One embiguity i have your alteration to code makes sense but
    can you please clear me how PHP header("Location : new.php"); &
    $msg=true; communicate to javascript response function you have
    mentioned?
    Good point. It actually doesnt .. thats why it wouldnt work.
    I mixed the wrong functions with each other.
    Lemme think of someting..
    Found something, lemme edit
    First, U need to update your setInnerHTML function of
    SpryData with this:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1306334&enterthread=y
    So just copy paste it over the old innerHTML function
    This function allows u to fireup javascripts true
    setInnerHTML..
    Than change this php code to:
    }else if($auth[0]==$usrname && $auth[1]==md5($pass)){
    header("Location: new.php");
    }else{
    TO:
    }else if($auth[0]==$usrname && $auth[1]==md5($pass)){
    $msg = "<script language="javascript"
    type="text/javascript">window.location="new.php";</script>";
    }else{
    What this basicly will do.. Is add the script inside the div.
    and executes it.. Seems a wierd work a round but it could work
    ^_^

  • WHY CAN'T I JUST CLOSE 1 EMAIL INSTEAD OF CLOSING THE E MAIL AND THE WHOLE PROGRAM?

    OK! I HAVE AN E-MAIL OPEN. I HAVE READ IT AND I WANT TO CLOSE IT. I LEFT CLICK ON THE X OF THE E MAIL. NOT ONLY DOES THE E-MAIL CLOSE, BUT THE WHOLE THUNDERBIRD PROGRAM CLOSES TOO. ALL I WANT IS JUST TO CLOSE THE E MAIL -- NOTHING ELSE. HOW DO I DO THAT?

    And when I click on that top-right X, it closes just the message window and leaves Thunderbird running. I can't tell what you're doing differently.
    You could close a message window with the Escape key, usually at top left of your keyboard. Or ctrl+w, or alt+F4. But the X ought to work too. Or you could set it to open in a tab, with its own close button as in my picture (but tabs have also confused a lot of people who go for the X at top right and so close the program.)
    Or you could do as I do and read your messages in the bottom pane. But I'm guessing from your choice of block capitals that you have eyesight issues and need things as big as possible.

  • Stop whole program with one button

    Hi, I've written a program for reading some values out of a measurement instrument. Now i want to have one button which stops the entire program no matter in which loop or which subVI the program is in. I have a subvi to make a connection to the device and i can't get out of this when he is trying to make that connection. Also the stopbutton i've used now is only read when the program is in a specific while loop. Can is solve this problem. I've attatched my program.
    Attachments:
    oplossing2.vi ‏74 KB

    You will need to use global variables to communicate between VIs. Don't make it a habit since using them can lead to race conditions and synchronization problems, so I would recommend that you look into functional global variables, semaphores, notifiers and queues. The Help document in LabVIEW has detailed explanations on each one of them.
    You will need to call a subVI in parallel if you want to continue with the execution of other tasks in your mainVI. I have created a quick example which shows the use of a global variable and using a subVI in parallel.
    Message Edited by Adnan Z on 02-17-2009 04:31 PM
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies
    Attachments:
    Example.zip ‏13 KB

  • Got a Mail 'update' and the whole program is sqiffy!

    Hi Most Knowledgeable Colleagues - I launched my computer yesterday after it being off for a day, I opened Mail as usual, was asked if i'd like to be 'shown' new features - clicked okay and then found my pop accounts had disappeared and .me account had replaced it. I tried various ways to delete this and restore my pop accounts but to no avail - so i re-set-up all my pop accounts. Then after several thousand emails loaded i found it wouldn't delete them. So i did some 'rebuild' which partially worked, but there seems to be allsorts of glitches: mail is marked as sent then seems to be back in outbox, sending is very slow, some messages appear in deleted folder other don;t, mailboxes won't delete despite several attempts/reboots etc they are still there.. Where is the Junk folder?
    Is there a fix/update or am I the only one who is having this problem? Thanks - L

    Hi eie687-
    It really sounds like you need a fresh install of the latest version. Here are the steps:
    * Get the latest version: http://www.mozilla.org/en-US/firefox/new/
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version.
    * Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    * Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    * Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.

  • IPhoto '08. Does TM treat the whole lib as one file?

    I just upgraded to iLife 08 and noticed that iPhoto stores the whole photo lib in one package. Next TM backup copied 7 Gb to the backup drive. That's about the size of my photo lib.
    I'm wondering if Time Machine treats iPhoto lib package as one file meaning that it will backup the whole thing even if I add just one photo into the lib?

    Hop over to the iLife iPhoto area. But the photo library is just a package, still has folders and from what I read (haven't upgraded yet) on MacFixit, backups should just see the internal package changes, not the 7GB every time (and some have even larger libraries), 
    Maybe it was an attempt to look neat, and that most people don't need to manually look inside the library for where and how files are stored.

Maybe you are looking for

  • OEM windows 7 professional 64bit - HP ProBook 4530s

    I have try to download the windows from www.microsoft.com/en-us/software-recovery After entering my product key from my laptop with preinstaled windows, the site gives me this message: "Unsupported Product The product key you entered appears to be fo

  • Profit center - Return on Investment

    Hi All, S_ALR_87013339 - Profit Center Comparison: Return on Investment  - Can any one explain me what is this report? What type of data we can get through this report?  rajeswjari

  • QT 7.4

    I was going to ask why QT 7.4 seems to have 'broken' VBR. Then I realized my question had already been answered (if I rip at 256 and have VBR checked, it should still display 256, even though the actual bitrate is different). Board software won't let

  • 3.2 Update Error

    Trying to do an update from a 3 node VDI install. vda-preserve goes fine but when I try to do a vdi-install I get the following error: Error: All Oracle VDI Hosts should be preserved. Here is the text from the logs, notice the line comparing preserve

  • Smartform check printing - Remittance overflow

    I have developed a check using the smartforms, and the check is printed on legal sized paper.  Page one is the check with so many lines for the remittance, but if there are too many lines to fit on the check page for the remittance we need the printe