Adding carraige Return at the end of the file

The following is my Shell script which will transfer the File from one path to another:
The file is having /n(Line Feed) at the end of earch line,but the client required a Carraige Return /r along with Line Feed for all the lines in the Output File.
Please guide me how to add Carraige Return before Line Feed
The following is the Shell Script:
#!/bin/bash
login_usr_pwd=$1
conc_user_id=$2
conc_user_name=$3
requestid=$4
prev_req_id=$5
report_type=$6
batch_name=$7
file_name="o$prev_req_id.out"
echo $report_type
echo $batch_name
echo $file_name
if [ "$report_type" = "EFT" ]
then
file_1="$batch_name.aba"
echo "EFT-----------"
echo $file_1
echo "-----------"
tr -d '<#***#>' < $COMMON_TOP/admin/$APPLOUT/$file_name > $XXAP_TOP/out/"$file_1"
chmod 777 $XXAP_TOP/out/"$file_1"
else
file_1="out_1_$prev_req_id.txt"
echo $file_name
echo $file_1
tr -d '<#***#>' < $COMMON_TOP/admin/$APPLOUT/$file_name > $XXAP_TOP/out/$file_1
chmod 777 $XXAP_TOP/out/$file_1
fi
Best Regards,
Mahi

add chr(10)+chr(13) (dos/windws line ending): unix2dos <file>remove chr(10)+chr(13), make end of line only chr(10): dos2unix <file>

Similar Messages

  • Row getting added in the end of the scroll

    Hi -
    I am using a scroll area on a page on level 1. The issue iam encountering is that when ever i click the plus sign to add a second or third row (assume one record already exists in scroll 1) , the row gets added in the end of the scroll and also the fields are blank. However as delievered the new row should get added on the top of the scroll meaning 1 of 2 not 2 of 2, and also it should carry forward the values from the prior row. Please any suggestion or help is greatly appreciated.

    I figured it out. The reason it was happening was because, my scroll record had another key field after EFFDT and EFFSEQ, due to which the delivered copy forward logic for new rows in scroll did not work and the row was getting added in the end or after the first blank row always.

  • Osx 10.7.4   safari 6.0  when I add a new bookmark to the "bookmarks menu" it is added somewhere in the middle instead of at the end of the list.  this just started a few days ago after an update.  Has anyone else noticed this?.

    osx 10.7.4   safari 6.0  When I add a new bookmark to the "bookmarks menu" it is added somewhere in the middle instead of at the end of the list.  This just started a few days ago after an update.  Has anyone else noticed this?.

    Just for those who are interested, this is what cleared the "bookmark menu"  trbl I had.
    Open System Preferences > iCloud
    Deselect the box next to Bookmarks, then reselect it.
    Quit and relaunch Safari. Try a bookmark again.

  • How do I duplicate layers & groups without automatically adding a "copy", "copy 1", "copy #" at the end of the new group?

    How do I duplicate layers & groups without automatically adding a "copy", "copy 1", "copy #" at the end of the new group?
    It's been pestering me for quite a while now, since I often work with the same elements over and over again. Its frustrating to have to change the name of each layer manually, especially if I'm copying a whole group.
    Is there a setting in Photoshop or perhaps an external script that can help fix this for me?
    Cheers,
    Qiming

    There is no way to defeat this within the program itself. Here's the workaround:
    Duplicate the file (from the Image menu).
    Drag the Group or layers from the Layers list from the duplicate to the image window of the original , while holding down Shift.
    That will make a "copyless" copy and reposition the copyed material in the exact same position it was on the original.

  • Previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once before. Recently that isn't happening. How do I get that feature back?

    When downloading, previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once. Now that isn't happening. How do I get that feature back?

    When downloading, previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once. Now that isn't happening. How do I get that feature back?

  • After editing a photo in another program, the photos return to the library at the end of the grid panel instead of at their original loacation.  How do I avoid this or alternatively, is there a quick way of moving them back to their original position inst

    After editing a photo in another program, the photos return to the library at the end of the grid panel instead of at their original loacation.  How do I avoid this or alternatively, is there a quick way of moving them back to their original position instead of clicking and dragging them?

    Sort your photos by File Name or Capture Date
    Use View->Sort

  • Want to buy a home by the end of the year - do I have a chance?

    Hi everyone, I'm new to the forums, and only a "lurker" for about a week or so. There are too many factors involved to explain why, but my wife and I want to buy a house by the end of the year; so we're calling December 15 our deadline. As you read through our situation below, please keep the following questions in mind. I have the opportunity to use about $3000 to pay down some debt; what do I pay down, and what do I leave with a balance (and use for purchases)?Should I open a personal loan to pay off some cards and have a "new" type of loan on my credit report? Or will the added inquiry hurt more than the new line will help? I get constant offers from crap places like Prosper, but maybe with a better company...Should I refinance my NJ Class loans at a lower interest rate?Should I refinance my car loan at a lower interest rate or longer term?Should I go into repayment on the Federal student loan now so I can choose the repayment plan with the lowest monthly payment (30-year "extended" or "graduated extended") and have it show up on my credit report with a low monthly payment? Or will it not come up on my credit report as such (will it still show a high payment)? Or will the payment amount be ignored by the mortgage company (I've heard some use something like 1% of the loan amount per month)?Since my wife's employment situation is not ideal, can I get approved with only my credit and income and whatnot (making me the only one legally responsible for payment), but still have "joint ownership" of the property?It looks like a downpayment of 5% on $240k ($12k) turns into about $20k of up-front expenses when you count closing costs and escrow-tax-insurance-somethingorother (technical term, right?). What are the chances that after settling on a price with the seller, they'd accept bumping up the price by the amount of my closing costs, and then paying my closing costs for me? So basically, I'd be financing the closing costs. I've seen it mentioned in another form ("I offered $###k with seller-paid closing costs"). If the chances are low, how else can I reduce those closing costs? I've seen negative points, personal loans and cash advances (not sure if legal to use borrowed funds?), and downpayment-assistance programs (reduce downpayment = more cash available for closing costs, but I haven't seen this offered in NJ outside of taking a second mortgage for the downpayment in certain cases only) mentioned, but does anyone have a definitive list of how to lower the financial burden of closing costs?Based on my income, debts, interest rates, monthly amount I can put into savings, and general "homebuying timeline," when should I get pre-qualified? Please do not limit your advice to that related to the questions above... I hope to learn as much as I can, as quickly as I can  1. Mortgage Credit Scores:  
    What are your fico MORTGAGE credit scores for each mortgage applicant?I don't really want to pay to get mortgage scores now because I'm not ready to get prequalified... still paying down credit cards, so to me it's useless to get the score until my credit situation is stable. Here are free scores from credit cards and whatnot:
     Myself:Discover 6/21: 773Citi 5/26: 744Capital One 6/18: 746Mint.com 4/7: 686 (score to be updated July 7th) My Wife:Discover 6/14: 749 Based on these, and the general deviation between them and mortgage scores (<50 points?) I think I would be able to qualify for a conventional loan, skipping FHA (ugh... mortgage insurance for life?). Some low-downpayment loan programs like Fannie Mae's MyCommunityMortgage (MCM) require higher scores (especially for DU), and I do think I would have the required 680-or-so, but as I mention elsewhere in this post, I haven't found an NJ MCM lender (other than brokers). But ideally, a 3% downpayment (like MCM) and reduced (compared to FHA and conventional) MI (again, like MCM) would be ideal... Obviously, there's no guarantee that these are anywhere close to the mortgage scores, so once I feel like I've paid down my cards as far as I need to (i.e. I feel I'm ready to get pre-qualified), I'll make sure to buy the mortgage scores. I'm thinking that point will be in about a month, but that depends on your answer(s) to question 8 :\ 2. Credit Negatives:  None except for a late payment more than 24 months ago on a student loan that was in "interest-only deferment." I believe that's on TransUnion, which is what Capital One pulls. 3. Gross Income./4. Source of income.   Myself: $65,000 (+ bonus that some years is as low as $500, so won't include it)My wife: $13,000 (±$2,000) All income is from employment (hers is part-time, and with two retail jobs, very likely to vary; mine is a salaried position). I may get an added part-time just to boost my savings, but it wouldn't be reported to them (I'm thinking a 3-6 month deal). 5. Monthly debt payments. Here are all my cards and loans, including month opened, APR, balance, limit, and payment. All balances as of today: Currently in my name w/wife as authorized user:Elan Financial CC, opened 6/2013, 20% APR:$-10 ($10,600 CL); payment $0Discover It CC, opened 5/2013, 15% APR:$2,900 ($5,000 CL); payment $59 **current APR 0% since entire balance was transferred from Elan at one point with a 0% offer that expires in AugustCapital One Quicksilver CC, opened 2008, 16% APR:$678 ($4,000 CL); payment $25Citi ThankYou Preferred CC, opened 8/2013, 14% APR:$700 ($2,600 CL); payment $25BankAmericard Cash Rewards CC, opened 8/2013, 15% APR:$616 ($2,000 CL); payment $25 My credit limits all went up within the last 6 months. Before then, they were $6,600 for Elan, $4,000 for Discover, $1,000 for Capital, $2,000 for Citi, and $800 for Bank of America. BofA was the only one that didn't automatically raise my limit or tell me I should request an increase, and when I requested it, they were the only ones that hit me with a HP. The Kay card below has also had a constantly-rising credit limit, from an original of $500, to $2500 a year ago, to the current $4000. Just in my name:Kay Jewelers CC, opened 4/2012, ridiculous (25%?) APR:$0 ($4,000 CL) - payment $0Macy's CC, opened 5/2014, 25% APR:$0 ($600 CL as of March) - payment $0M&T Auto Loan, since 9/2013, 5.3% APR:$10,310 ($14,218 original) - payment $231 (72 months total)HESAA/NJ Class, in repayment since 6/2015, 7.5% (approx. avg.) APR:$13,014 (originally less, but interest has accrued while in school) - payment $131FedLoans Direct Loans, in grace until 11/2015, 5% (avg.) APR:$56,237 (originally $52,000, but interest has accrued while in school) - payment $403 under standard repayment, <$250 under extended repayment ("Mortgage Letter" shows $403 unfortunately, since I can't pick a repayment plan now unless I forfeit the rest of the grace period) Wife's name w/me as authorized user:Discover CC, opened 5/2015, ridiculous (>20%) APR:$1,304 ($1,500 CL) - payment $35 So basically, I have a crapload of debt and quite a few recent inquiries. However, my credit score shot up when:The 5/2013 accounts aged to 2 years (and thus the inquiries were removed);I paid down cards and increased limits; usage went from ~$13k of ~$19k revolving limit used to about ~$6.5k (at one point) of about ~$25k (at one point) revolving limit used; now it's at about $5k used of $29k;I was added as an authorized user on my wife's card (at card opening).I think those point to a nice boost to the credit score when (1) I pay down the cards even more [to end of July], and (2) the three inquiries from BofA, Citi, and M&T disappear [2 in Aug, 1 in Sep]. Sounds like my pre-approval should be early October, making my intended closing date near-impossible . Maybe I can still qualify with a good rate despite the inquiries?
    6. Employment (for those who are employed). Myself:Went from $16k/year to $26k/year part-time while in school, now $65k/year (as of last month) and salaried, all at the same company for 4 years now, and the boost was due to graduating; surely they can throw out the 2-year requirement? I plan on staying here for many years, and am about 99.9% certain there will be no reason for that income to drop in the forseeable future. Wife:Nothing's sure, and it's very low pay. As noted above, $13k/year at the moment, but she's unhappy with both (retail... ugh) jobs, so that's not guaranteed. She's looking for a break and a decent office job, but even if she gets it, I'm pretty sure the short length of time that she'd have it before getting a loan would make the difference in income useless. I'll add here our budget: In our current situation, with about $5000/month net income ($1k from her, $4k from me), we can comfortably save $2000/month. July and October are 5-week months, so that goes up to $3000 those months. However, I'm using the $3000 surplus from this month to pay down cards. So that's $7k added to savings thru October or $9k thru November. Hypothetically, I could "skip" paying off cards (or pay down all but Discover) in order to boost up savings.
    7. Assets/Reserves. This is to determine how much you could potentially have as a down payment and also as reserves to help qualify (for example if your debt to income ratio is high this could help qualify you anyway). Savings: $5000Checking: Everything that goes in, goes to paying credit cards or into savings. I haven't made a purchase transaction with a debit card in over a year because I get points on all my cards. So call it $0 available for moving to savings.
    8. Location:  This is to determine govt guaranteed loan limits, what special programs might be available for you, how much property taxes & homeowners insurance will likely be, amongst other items. Central New Jersey (Somerset, Middlesex, possibly Hunterdon counties). I don't know where I can find a "conforming" 3-3.5% down loan here that's not FHA, since no local banks seem to advertise something like it. I've been looking at MyCommunityMortgage and they seem awesome - 3-5% down with mortgage insurance that is typical for 10-15%-down conventional loans - but when I do search for "Fannie Mae + your home state" as recommended, all I get is HomeFirst and general info on MyCommunityMortgage (since the income/value limits are higher for NJ, that info gets included in all their documentation on the program).
    9. Property Description:  Single-family, "single home" (no townhouse/condo). No foreclosures, short sales, or other "as-is" situations.
    10. Property Value.  $200,000-$250,000
    11. Occupancy.  Currently? Rent $550/mo. As far as every credit application I've filled out is concerned, it's my responsibility. However, since the contract IS in both our names, I could hypothetically call it $275/mo (even split) or $440/mo (split based on relative income). Not sure what that would help/hurt with; I've heard of sticker shock being a concern for some, but if all goes according to plan ($2000/mo into savings, basically the amount the mortgage+tax+insurance would be), I don't see that being an issue. 12. Transaction Type. Purchase - primary residence. ----------------------------------------- Sorry for the extremely long post... and thank you all in advance

    Georgie_Boy wrote:
    Hi everyone, I'm new to the forums, and only a "lurker" for about a week or so. There are too many factors involved to explain why, but my wife and I want to buy a house by the end of the year; so we're calling December 15 our deadline. As you read through our situation below, please keep the following questions in mind. I have the opportunity to use about $3000 to pay down some debt; what do I pay down, and what do I leave with a balance (and use for purchases)? You want to get as many of your ccs to zero as you can ...optimum scoring is one account carrying a balance of 3-9% of your CL, all others at zero ...the mortgage lenders will count each account with a balance as a monthly debt due equal to your minimum payment when calculating your dtirs ...those minimum payments quickly add up and can seriously impact how much you can get approved for.Should I open a personal loan to pay off some cards and have a "new" type of loan on my credit report? Or will the added inquiry hurt more than the new line will help? I get constant offers from crap places like Prosper, but maybe with a better company...Ignore the personal loan offers. You have a decent credit mix now between your ccs and auto installment loan. A personal loan would only hurt your scores at this point.Should I refinance my NJ Class loans at a lower interest rate? Not personally familiar with these but it looks like a SL from the other info you've provided. Generically you should refinance when the total cost of doing so is beneficial to you. That said, a mortgage lender is going to look at total student debt, and use the greater of your current payment or 1% of the total ...thus refinancing for mortgage purposes may not result in any dtir benefit to you. Should I refinance my car loan at a lower interest rate or longer term? If this is a new car loan, yes ...if its a used car loan, it depends on age and value because your current rate isn't outrageous for an older car loan ...generically, if you can refinance to a lower monthly payment at a reasonable cost, you should do so in order to lower your dtir ...but its a trade-off because the HP will probably cost you a few points on your scores.Should I go into repayment on the Federal student loan now so I can choose the repayment plan with the lowest monthly payment (30-year "extended" or "graduated extended") and have it show up on my credit report with a low monthly payment? Or will it not come up on my credit report as such (will it still show a high payment)? Or will the payment amount be ignored by the mortgage company (I've heard some use something like 1% of the loan amount per month)? All of the govt guaranteed loan programs have recently moved to using the higher of your current payment or 1% of the total in your dtir calculations ...do the math and act accordingly. Be wary of any lender that is not using the higher figure when giving you preapproval numbers, uw will inevitably catch it and it could torpedo your loan after you've signed a contract and spent on prepaids and fees.Since my wife's employment situation is not ideal, can I get approved with only my credit and income and whatnot (making me the only one legally responsible for payment), but still have "joint ownership" of the property? She is either on the loan or not ...you can't have it both ways. At the time you apply, your LO will look at both of your incomes and tell you what will work best in your situation. As long as her income can be documented via tax returns, it should be "useable"It looks like a downpayment of 5% on $240k ($12k) turns into about $20k of up-front expenses when you count closing costs and escrow-tax-insurance-somethingorother (technical term, right?). What are the chances that after settling on a price with the seller, they'd accept bumping up the price by the amount of my closing costs, and then paying my closing costs for me? So basically, I'd be financing the closing costs. I've seen it mentioned in another form ("I offered $###k with seller-paid closing costs"). If the chances are low, how else can I reduce those closing costs? I've seen negative points, personal loans and cash advances (not sure if legal to use borrowed funds?), and downpayment-assistance programs (reduce downpayment = more cash available for closing costs, but I haven't seen this offered in NJ outside of taking a second mortgage for the downpayment in certain cases only) mentioned, but does anyone have a definitive list of how to lower the financial burden of closing costs? This is very specific to the loan program ...conventional with 5% dp limits seller concessions to 3%, FHA is 6% regardless, USDA is technically unlimited ...be aware that every lender will have their own overlays which may affect those numbers. It is also affected greatly by your market conditions which at the moment vary greatly by your locale ...in a buyers market, you can expect seller concessions ...in a sellers market, probably not. USDA offers the best govt guarantee program for closing costs since they will allow you to include closing costs in the loan up to the appraised value. New Jersey's web site is screwed up (at least for me) and I can't nail down exactly what dp/closing cost assistance programs are available to you but it looks very dependent on the specific location you are buying in.Based on my income, debts, interest rates, monthly amount I can put into savings, and general "homebuying timeline," when should I get pre-qualified? DO NOT get "pre-qualified" ...get "pre-approved" ...a pre-qual is virtually meaningless ...a pre-approval means they've actually looked at your documentation and, short of verification, are reasonably sure they can get you to closing ...its a huge difference ...as far as when? ...yesterday would have been great ...rates are rising ...its almost certainly going to get worse ...so bite the bullet ...find a decent realtor in your target area, ask them to recommend lenders they have worked with that can actually close their loans ...talk to those lenders ...get a pre-app ...go shopping ...if your credit scores/dtir improve significantly because of cc paydowns, ask your lender to rescore you ...mortgage pulls within 30-60 days all count as one HP. Please do not limit your advice to that related to the questions above... I hope to learn as much as I can, as quickly as I can  1. Mortgage Credit Scores: Its essential to your question of "when" that you know your actual mortgage scores ...the Discover scores are actual Fico cc scores, the others are FAKOs afaik ...but the Fico cc and mortgage scoring models differ in several important ways and vary easily by +/- 50 points depending on what is in your CRA files ...mine actually track fairly closely but others have seen very negative differences ...its worth the $40 imnsho to know where you actually stand ...anything you do to improve them in the next month will only help but is not sufficient reason to delay ...again imnsho.  2. Credit Negatives:  Have you tried to have the late removed from the CR? Depending on the SL source, some programs have been very responsive to GW requests after a good payment record has been reestablished ...ymmv but you lose nothing by trying.  5. Monthly debt payments. Get the Discover to under $500 if possible ...and ask for a CLI asap ...Discover has been handing them out like candy lately ...keep a balance open 3-9% if possible but if not, as low as you can ...its more important to zero the other ccs first.Capital One Quicksilver CC, opened 2008, 16% APR:$678 ($4,000 CL); payment $25 ...pay it to zeroCiti ThankYou Preferred CC, opened 8/2013, 14% APR:$700 ($2,600 CL); payment $25 ...pay it to zeroBankAmericard Cash Rewards CC, opened 8/2013, 15% APR:$616 ($2,000 CL); payment $25 ...pay it to zero HESAA/NJ Class, in repayment since 6/2015, 7.5% (approx. avg.) APR:$13,014 (originally less, but interest has accrued while in school) - payment $131FedLoans Direct Loans, in grace until 11/2015, 5% (avg.) APR:$56,237 (originally $52,000, but interest has accrued while in school) - payment $403 under standard repayment, <$250 under extended repayment ("Mortgage Letter" shows $403 unfortunately, since I can't pick a repayment plan now unless I forfeit the rest of the grace period)Its almost certain that the last two will be seen as a combined 69k SL with $690 used in your dtir calculation Wife's name w/me as authorized user:Discover CC, opened 5/2015, ridiculous (>20%) APR:$1,304 ($1,500 CL) - payment $35 ...pay this to zero Credit score almost certainly isn't your major problem ...debt-to-income is Total income = 78k =6500 moTotal mo debt = 134cc/231auto/690SL= 1055 + ~1600 mo PITI+MI (220k@5%/5%dp) NJ taxes are higher than national avgs = 2655 total monthly paymentsThats a be ratio of 41% ...ideal is <36% but many programs will go higher
    6. Employment (for those who are employed). Do not count on reason and logic being used in the mortgage process ...this will come down to finding a lender who will work with you ...if the 4 yrs is same company and the line of work matches your degree, it may not be a problem ...but its one reason you want to get the pre-approval process going now ...to find a lender who knows your exact situation, has reviewed the documentation, and given you a pre-approval knowing all the facts ...av pre-qual will look at your score, ask you for your current income, and promise you pie-in-the-sky until the rubber meets the road and his uw upchucks over your employment history ...goodbye loan and all the money you paid ...get a real pre-approval  8. Location:  Hunterdon county has a lot of areas eligible for the USDA program and your income is well within the limits ...if the commute is acceptable, its a good program. Somerset/Middlesex are mostly ineligible. The NJ website for dp assistance programs isn't working for me but take the effort to ask your prospective lenders about these programs and their experience with them. Any that pooh pooh them should be scratched off your list. 11. Occupancy.   Sticker shock WILL be an UW issue but you appear to have it addressed. Current rent will not factor in to dtir for your mortgage.  ----------------------------------------- Sorry for the extremely long post... and thank you all in advance ...I could only wish that everyone would supply as much info as you have ...please feel free to ask if you dont understand ofr if I misunderstood something ...hth

  • Add JTable Row Headers At The End Of The Rows(At Right)?

    hi all
    i got this example for adding JTable Row Headers,but it adds the headers at the left(beginning of the row)
    and i want to add the headers at the end of the row(at right),any ideas how to do that?
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.AbstractListModel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.ListCellRenderer;
    import javax.swing.ListModel;
    import javax.swing.UIManager;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.JTableHeader;
    * @version 1.0 11/09/98
    class RowHeaderRenderer extends JLabel implements ListCellRenderer {
      RowHeaderRenderer(JTable table) {
        JTableHeader header = table.getTableHeader();
        setOpaque(true);
        setBorder(UIManager.getBorder("TableHeader.cellBorder"));
        setHorizontalAlignment(CENTER);
        setForeground(header.getForeground());
        setBackground(header.getBackground());
        setFont(header.getFont());
      public Component getListCellRendererComponent(JList list, Object value,
          int index, boolean isSelected, boolean cellHasFocus) {
        setText((value == null) ? "" : value.toString());
        return this;
    class RowHeaderExample extends JFrame {
      public RowHeaderExample() {
        super("Row Header Example");
        setSize(370, 150);
        ListModel lm = new AbstractListModel() {
          String headers[] = { "Row1", "Row2", "Row3", "Row4"};
          public int getSize() {
            return headers.length;
          public Object getElementAt(int index) {
            return headers[index];
        DefaultTableModel dm = new DefaultTableModel(lm.getSize(), 4);
        JTable table = new JTable(dm);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setRowHeight(18);
        JList rowHeader = new JList(lm);
        rowHeader.setFixedCellWidth(50);
        rowHeader.setFixedCellHeight(18);
        rowHeader.setCellRenderer(new RowHeaderRenderer(table));
        JScrollPane scroll = new JScrollPane(table);
        scroll.setRowHeaderView(rowHeader);
        getContentPane().add(scroll, BorderLayout.CENTER);
      public static void main(String[] args) {
        RowHeaderExample frame = new RowHeaderExample();
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.setVisible(true);
    }

    fixed by:
    list.setBackground(table.getTableHeader().getBackground());here's the full code:
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.ComponentOrientation;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.DefaultListModel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.ListCellRenderer;
    import javax.swing.UIManager;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.JTableHeader;
    * @version 1.0 11/09/98
    class RowHeaderRenderer extends JLabel implements ListCellRenderer {
      JTable table;
      RowHeaderRenderer(JTable table) {
        this.table = table;
        JTableHeader header = table.getTableHeader();
        setOpaque(true);
        setBorder(UIManager.getBorder("TableHeader.cellBorder"));
        setHorizontalAlignment(CENTER);
        setForeground(header.getForeground());
        setBackground(header.getBackground());
        setFont(header.getFont());
      public Component getListCellRendererComponent(JList list, Object value,
          int index, boolean isSelected, boolean cellHasFocus) {
        list.setBackground(table.getTableHeader().getBackground());
        setText((value == null) ? "" : value.toString());
        return this;
    class RowHeaderExample extends JFrame {
      public RowHeaderExample() {
        super("Row Header Example");
        setSize(370, 150);
        setLocationRelativeTo(null);
        DefaultListModel lstModel = new DefaultListModel();
        lstModel.addElement("Row 1");
        lstModel.addElement("Row 2");
        lstModel.addElement("Row 3");
        lstModel.addElement("Row 4");
        DefaultTableModel dm = new DefaultTableModel(lstModel.getSize(), 4);
        JTable table = new JTable(dm);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setRowHeight(18);
        JList rowHeader = new JList(lstModel);
        rowHeader.setFixedCellWidth(50);
        rowHeader.setFixedCellHeight(18);
        rowHeader.setCellRenderer(new RowHeaderRenderer(table));
        JScrollPane scroll = new JScrollPane(table);
        scroll.setRowHeaderView(rowHeader);
        table.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        scroll.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        getContentPane().add(scroll, BorderLayout.CENTER);
      public static void main(String[] args) {
        RowHeaderExample frame = new RowHeaderExample();
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.setVisible(true);
    }

  • How to add a sub report at the end of the main report whilst grouped

    Hi!
    I have a main report that is grouped by the Customers name and then details of transactions they did with the company.
    I need to add a letter at the end of each group for each customer (With their name displayed in the letter). I tried adding a sub report in the report footer, but it only appears once at the end of the report, rather than at the end of each group for each customer.
    How can I achieve the desired result?
    Regards
    Vik

    Vik,
    You are on the right track with the sub-report.
    1. Create your letter in a separate report.
    2. Add the Letter Report to your original report as a sub report in the group footer.
    3. Set the report links on the "Group By" field.
    This will give you a letter record for each report record with the same grouping as the main report.
    Hope this helps,
    Jason

  • HT201272 can someone help me with this chat session.Font Size You are chatting with an Advisor now. This chat will be recorded. At the end of the session, you can print the transcript or request a copy via email. Privacy Policy Advisor [4:49 p.m.]: Hi, my

    Font Size
    You are chatting with an Advisor now. This chat will be recorded. At the end of the session, you can print the transcript or request a copy via email.
    Privacy Policy
    Advisor [4:49 p.m.]:
    Hi, my name is Jacob. It'll be just a moment while I review the comments you provided.
    Advisor [4:49 p.m.]:
    Hello Machelle, how may I assist you today?
    Customer [4:51 p.m.]:
    Can you please help me recover the new testament of the bible from media group. The have vanished.
    Customer [4:52 p.m.]:
    I need to recover the lost purchases I made from media group. I had all of the new testament.
    Advisor [4:53 p.m.]:
    Thank you for this information, I understand that you are missing some purchases. I do want to apologize for this inconvenience. I will be more then happy to look into  this for you.
    Advisor [4:53 p.m.]:
    Would you be able to provide your Apple ID? This is the email used to sign into the iTunes store.
    Customer [4:54 p.m.]:
    [email protected]
    Advisor [4:54 p.m.]:
    Thank you, one moment please.
    Advisor [4:56 p.m.]:
    Were these individual purchases? If so could you provide the name for each individual purchase?
    Customer [4:57 p.m.]:
    yes it the new testament books of the bible
    Customer [4:57 p.m.]:
    genesis etc...
    Advisor [4:58 p.m.]:
    I apologize, but I am not exactly familiar with the New Testament. Would you be able to provide these names for me so I can locate them on my end?
    Customer [4:59 p.m.]:
    Genisis Mark Matthew Luke John
    Customer [4:59 p.m.]:
    Exodus Levitus Numbers
    Advisor [5:00 p.m.]:
    Just a quick question, were these all audiobooks?
    Customer [5:00 p.m.]:
    Duetoronomy
    Customer [5:00 p.m.]:
    Yes from media group
    Advisor [5:00 p.m.]:
    Okay, are you currently on a computer with iTunes installed?
    Customer [5:01 p.m.]:
    yes
    Advisor [5:02 p.m.]:
    Unfortunately, audiobooks and ringtones are the only items on the iTunes store unavailable for re-download through iTunes in the Cloud. What I can go ahead and do is try and re-add these audiobooks back to your download queue for re-download. Please note if they have been removed or modified on the iTunes store they may not be available for re-download. Would this be okay?
    Customer [5:03 p.m.]:
    yes thank you!
    Advisor [5:03 p.m.]:
    Excellent, one moment please.
    Advisor [5:05 p.m.]:
    I apologize but after reviewing your account, it looks like we have already issued 3 exceptions for you to re-download your audiobooks in the past. Back on 02/23/2013. I apologize but we will be unable to do another exception for you. 
    Customer [5:06 p.m.]:
    that down load did include the new books of the bible that I had.
    Customer [5:07 p.m.]:
    that down load did not have the new testament books of the bible that I had
    Advisor [5:07 p.m.]:
    While reviewing the notes, this was issued to add all available audiobooks bought on your account. I again apologize but I will be unable to issue another exception to you. As the previous advisor did inform you to make sure to back up your files.
    Customer [5:08 p.m.]:
    the other advisor did not down load the new testament books. The advisor did not restore all of the books that I had originally brought.
    Advisor [5:10 p.m.]:
    While looking closer, the books that you are missing are no longer available to be re-downloaded. This is the reason why they were not added back to your download queue when he issued them. Unfortunately, as we do not handle the content on the iTunes store you will need to get in contact with the publisher of the content as they were the ones two remove or modify these books on the iTunes store. If you would like I can provide a link to their support site.
    Customer [5:11 p.m.]:
    yes they are I saw them.
    Advisor [5:11 p.m.]:
    They may have been modified by the content owner. This will be the reason why they were not added. As Apple does not control 3rd party content on the iTunes store. You will need to get in contact with them as we are unable to re-add this content back to your download queue.
    Customer [5:12 p.m.]:
    it is I just looked at it in the itunes store
    Customer [5:13 p.m.]:
    the material is still the same. The store does have it.
    Advisor [5:13 p.m.]:
    Machelle, if the items have been modified since you bought them, they will be unavailable for us to issue them back to you. You will need to get in contact with the providers for these books as they are the content owners and we do not have access to issue these back to you.
    Customer [5:14 p.m.]:
    the are still the same bible books that I purchased at the store.
    Customer [5:14 p.m.]:
    The audio books are the same. When I buy it again nothing will be different.
    Advisor [5:14 p.m.]:
    Machelle, I understand this. This is what our records are showing. When the previous advisor tried to re-issue them to you they were unable to as they have been modified on the iTunes store.
    Advisor [5:15 p.m.]:
    In order to receive further support for this issue you will need to get in contact with Media Group as they are the content providers for these audiobooks.
    Customer [5:15 p.m.]:
    I will buy them from another source. Don't say they have changed. The books are the same books I brought. They are at the store.
    Advisor [5:16 p.m.]:
    Machelle, Apple does not handle the content for 3rd party publishers on the iTune

    MoonSwan wrote:I've never heard of a validating editor but I was recently wondering what exists that could help me.  Aside from emacs, what should I search for to find one of these validating editors?
    You can use whatever tool you prefer - for someone already using emacs, emacs is a natural choice. Simple, easy to use online tools exist e.g. http://schneegans.de/sv/
    Just upload the file in question ('Validate by file upload' option) and click 'Validate':
    The '=' character cannot be included in a name. (723:10)
    <Terminal="Terminal">
    ^
    Googling 'xml validation' should give you some more tools / services if this one is not good enough.

  • Need to add a new row at the end of the table

    Experts,
    working jdev 11.1.1.3.0
    i am adding row programetically, my requirement need to add the row at after last row.
    i tried different ways.
    Row newLastRow = getPWBBidLaneVO().last();
    int lastRowIndex = getPWBBidLaneVO().getRangeIndexOf(newLastRow);
    getPWBBidLaneVO().insertRowAtRangeIndex(lastRowIndex - 1,
    laneRow);
    this is giving --- java.lang.ArrayIndexOutOfBoundsException: 0
    and
    http://kohlivikram.blogspot.com/2008/10/add-new-row-in-adf-table-on-button.html --- its giving index out of bound because vo.getRangeSize() is 25. We set this value at vo for performance improment suggestions.
    is there a way to add a new row at the end of the table?

    Add this to the view row impl class
           public void insertRow(Row row) {
               //go to the end of Rowset if it has rows
               Row lastRow = this.last();
               if (lastRow !=null){
                    //insert new row at the end and make it current
                   int indx = this.getRangeIndexOf(lastRow)+1;
                   this.insertRowAtRangeIndex(indx,row);
                   this.setCurrentRow(row);
               }else { // empty Rowset
               super.insertRow(row);
               }

  • Empty lines at the end of the payload generated in FTP server

    Hi All,
    I am facing an issue in one of the use cases that I am trying to implement.
    I am getting a purchase order from one of the trading partners through Oracle B2B.
    B2B forwards this B2BM (B2B message ) to AIAB2BInterface. From AIAB2BInterface my BPEL process gets invoked, which in turn invokes the AdapterComposite which has a FTP adapter that writes the purchase order to a FTP server. PFB the end to end flow.
    PurchaseOrder from ABC trading pertner--> Oracle B2B --> AIAB2BInterface --> TestInputProvABCS --> TestInputAdapter -> Host trading partner picks up the file from FTP location
    In the ProvABCS I retrieve the actual payload from the B2BM and convert it into a string using ora:getContentasString. I am then invoking the adapter composite and sending the string as the input to FTP adapter. At the adapter composite I use a simple native schema (for validation of the input string) which has only one element PO_Info of the type string. But when the file gets generated in the FTP server there are empty lines and junk characters at the end of the file.
    Need some advice on this. Why are the empty lines coming in the end of the file? Please help!
    Thanks

    OK, I cannot figure out a way to modify the JTable (in an extended class) directly.
    So, what I did was to add a wrapper around the TreeTableModel which shows an empty row at the end.
    For those of you who are in a similar situation, the methods that I had to modify are
    public boolean isCellEditable(Object node, int column);
    public int getIndexOfChild(Object parent, Object child);
    public int getChildCount(Object node);
    public Object getChild(Object node, int i);
    These other methods are required if you are using a TreeTable instead of just a table (see http://java.sun.com/products/jfc/tsc/articles/treetable2/index.html)
    public Object getValueAt(Object node, int row, int column);
    public Object getValueAt(Object node, int row, String columnName);
    public void setValueAt(Object node, int row, int column, Object newValue);
    public void setValueAt(Object node, int row, String columnName, Object newValue);
    The signature of above methods is slightly different than the ones at: http://java.sun.com/products/jfc/tsc/articles/treetable2/src/TreeTableModel.java
    This is due to the fact that, if you want to display the serial no. (as in row number), then getValue() can just return the row number. IndexedTreeTableModel is another wrapper around the TreeTableModel which can add an extra column to display the serial number.

  • Everytime I save a file from chrome it wants to save it with a (1) at the end of the file name. It i

    Everytime I save a file from chrome it wants to save it with a (1) at the end of the file name. It is extremely frustrating since I save hundreds of pdf files every month.
    It is the first time opening the file so it shouldn't be reverting to adding a (1) every time.
    I have chrome Version 28.0.1500.95 m

    Chrome does not use Adobe Reader to view or save PDF files. It does it all itself.
    Similarly FireFox, though it can be told to use Adobe Reader to view PDF files, doesn't do so by default. And Adobe Reader has nothing to do with saving.

  • Not the end of the world, multi button mouse problem.

    Hi there, I have a Microsoft multi button mouse which works fine in Leopard. I have configured 2 of the buttons for Command+H (Hide), and Command+W (Close). The buttons work fine everywhere except one place, and that's System Preferences.
    I have added a custom configuration for System Prefs, but that doesn't seem to solve the problem either. It isn't the end of the world, but it would be nice if it did work.
    Thanks,
    Anil.

    Hi Topher,
    I am using the latest driver from Microsoft, and the mouse works fine everywhere else except System Prefs. I haven't tried USB Overdrive because the Microsoft driver has a very nice front end which makes configuring the mouse very easy.
    Thanks,
    Anil.

  • Xpath Debatching in Orchestration -The part 'part' of message 'Message_In_Copy' contained a null value at the end of the construct block

    Hi ,
    Facing strange issue in Xpath debatching in Orchestration.
    Getting following error in construct shape:
    The part 'part' of message 'Message_In_Copy' contained a null value at the end of the construct block
    Code inside the construct block:
    sXpath = System.String.Format("/*[local-name()='Customers' and namespace-uri()='http://Debatch.Customer']/*[local-name()='Customer' and namespace-uri()='http://Debatch.Customer' and position()={0}]", nLoopCount);
    System.Diagnostics.Debug.WriteLine(sXpath);
    Message_In_Copy= xpath(Message_In, sXpath);
    Schema used:
    <?xml version="1.0" encoding="utf-16"?>
    <xs:schema xmlns="http://Debatch.Customer" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://Debatch.Customer" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="Customers">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="unbounded" name="Customer">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" type="xs:string" />
    <xs:element name="id" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    Can anyone help me out ? to identify the root cause for above issue.
    Thanks,
    Kind Regards,
    girsh
    girishkumar.a

    I agree with Shankycheil here, querying XPath will return XMLNode and thus can't be assigned to XMLNode.
    But for debatching in Orchestration using Xpath is not a very good idea. 
    Because using XPATH loads the complete message in memory(XML Structure) and then performs processing.
    This approach is always prone to throwing Out of Memory exception and low in performance also.
    Therefore I would suggest you to perform debatching by calling XML Disassembler(XMLReceive) pipeline.
    As pipeline works with Stream it will have better performance and you will also get complete control over the messages.
    Refer the below samples for debatching using XML Receive pipeline within Orchestration.
    Comparrison between XPATH and ReceivePipeline for Debatching:-
    De-batching within an orchestration using XPath or calling a pipeline
    Debatching within Orchestration using Pipeline-
    http://tech-findings.blogspot.in/2013/07/debatchingsplitting-xml-message-in.html 
    https://jeremyronk.wordpress.com/2011/10/03/how-to-debatch-into-an-orchestration-with-a-pipeline/
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

  • Imported a file of music, tracks 1-3 stuck at the end of the album....

    I imported a file of music and hand added a few tracks. I went through and numbered them 1 through 30something, for some reason tracks 1, 2, and 3 are at the end of the album, in that order. The Get Info pages are all the same, compilation feature is on (there are different artists). All the other track numbers are fine with no repeats and are in proper numerical order.
    I know it's something simple, lol, I know it.

    Hi, Kenna1313.
    Have a look at this article in the Apple Knowledge Base and let us know if it brings you any combination of joy and/or satisfaction.

Maybe you are looking for

  • Cannot print off my iPad with photos art 5520

    Help, I am having a really hard time printing anything on my iPad. Even the e print and AIO remote app will not recognize my wireless printer. Am I doing something wrong? I can print off my laptop with no problems, but my iPad will not recognize the

  • Is there any way to track or find my lost ipod touch 5G without using Find My Iphone?

    Imlost my ipod about a week and a half ago, and the last place i remeber using it was ina friends car, but i looked in my friends car and it was no where to be found!! Kinda weird, but anyway I want to know if there is any way for me to track or find

  • Problem with called id

    hi there, my problem is with the caller id. I need to block the caller dailing number to the destination User and In my side setup i am using AS5300 with hdsl modems and E1 lines are configured. i tried a lot to block the caller id but still i didn't

  • Firefox missing mouse clicks

    I have updated both my desktop (Win7) and my laptop (WinXP) to Firefox 9.0.1 (from 8.0) and both are suffering from this issue. about 99% of my left mouse clicks seem to get ignored, but middle and right are both perfectly find. Left button operates

  • How to create a Taxonomy classification folder with KM or Index API

    Hi All! I'm developing an application that needs to create a taxonomy structure dynamically. The structure is something like -Taxonomies -> Index_MI ->Tax_MI -> Docs1 and Docs2 I have already created the repositories and the index with no complicatio