How to retrieve only the text from a multiline Varchar2 field?

Dear Friends,
I have a text in a varchar2 field having text only in line2.
I want to retrieve the text only skipping the blank line.
The syntax REPLACE(FIELD_NAME,CHR(10),'') is not working.
Please help me.
Thanking you,
With Regards
Franklin

there must be other characters in your text field that are not chr(10) (line feeds etc).
use a regular expression to replace all the non-printable characters:
select regexp_replace(field_name,'[^[:print:]]') from table

Similar Messages

  • How do I copy and paste only the text from a cell?

    Hi -
    Every time I want to move text to a different cell, copy and paste copies all styles as well.  How do I just copy and paste the text while leaving the style of the receiving cell in tact?
    Thanks.
    Chris

    Christopher.  If the alternating row color is the obstacle, I suggest selecting the table, then setting the background color to white, then check the "Alternating Row Color" check box in the Table Formatter:
    Now sorting will not affect row color

  • How can I add the text from a Word document to an existing PDF that is my letterhead?

    I have a business letterhead created to a PDF file.  I'd like to add text from letters to this letterhead but do not know how.  Please help.

    Hi tatestar1,
    You would either need to use Acrobat to edit your letterhead PDF, or add the text in whatever application you used to create the letterhead in the first place, and then re-create the PDF. If you have the source file, then the latter may be easier.
    Best,
    Sara

  • How can i extract the text from the PDF files,Power point files,Word files?

    hi friends,
    i need to extract text from the PDF files,Power Point,Ms word files.Is it possible with java?if yes how can i extract text from those files.please give solution this problem.i would be thankful if u provide solution.
    regards,
    prakash.

    Find an API which could read each of those files and start coding.

  • How do I stop the texts from other iPhone users trying to reach the person who has my old phone number?

    I no longer have cell phone service but I still use my iphone every day for apps and imessage. Now someone has my old phone number. It seems that this person does not have a iphone. Everytime one of their friends with an iphone tries to text them the message goes to my iphone. I have tried many things to stop this. I took my old phone number off my apple account and I took out my old sim card. But I still am getting texts from other iphones attempting to reach whom ever has my old phone number. HELP please. This person is very popular, at first it was funny now its annoying. I'm sure the person with my old number is even more upset than I since they are actully paying for service.

    Hello there, lalaysa.
    The following Knowledge Base article offers up some great recommendations for unlinking your old phone number from your device:
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Unlink a phone number
    To remove a phone number from an Apple ID, sign out of FaceTime and Messages on your iPhone:
    Settings > Messages > Send & Receive. Tap your Apple ID, then tap Sign Out.
    Settings > FaceTime. Tap your Apple ID, then tap Sign Out.
    This should remove your phone number from other devices using the same Apple ID with FaceTime and Messages. If the phone number is still available on other devices after you sign out of FaceTime and iMessage on the iPhone, you may need to sign out of iMessage and FaceTime on all your devices, then sign in to FaceTime and Messages again on devices you want to use.
    Note: If you no longer have access to the iPhone that is using the number you want to remove, reset your Apple ID password.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • HELP: How to get only the text of an element Node

    Hello
    I am using XPath for the following XML document:
    <Start>
    <User>
    <LoginName>abc</LoginName>
    <Password>qqq</Password>
    </User>
    <User>
    <LoginName>xyz</LoginName>
    <Password>ttt</Password>
    </User>
    </Start>
    Now I want to get the password for the LoginName = 'xyz'.
    The XPath I have written is:
    //User[LoginName='xyz']/Password[text()]"
    The result I get is:
    <Password>ttt</Password>
    But what I want is ONLY the password TEXT i.e the value of the password and NOT the complete node information. What Should I do with the Xpath string so that the result only gives: ttt
    Please help me with this as this has hold me now for quite a long time.
    Thanx.
    Arshad

    Use this method to get the text in Java
    public String getTextContents ( Node node )
    NodeList childNodes;
    StringBuffer contents = new StringBuffer();
    childNodes = node.getChildNodes();
    for(int i=0; i < childNodes.getLength(); i++ )
    if( childNodes.item(i).getNodeType() == Node.TEXT_NODE )
         contents.append(childNodes.item(i).getNodeValue());
    return contents.toString();
    }

  • How can I change the text from impossible to read blue to black

    Unlike Chrome, which has an ad-on that changes the text to black, I have so far been unable to find a way to change Firefox's terrible light blue text to black, despite having made many attempts through Tools, Option, Colors, etc. Help will be appreciated. I am using version 30 on an HP Laptop running Win7

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.
    Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
    Make sure that you allow pages to choose their own colors and check the default colors.
    *Tools > Options > Content Fonts & Colors > Colors [X] "Allow pages to choose their own colors, instead of my selections above"
    Note that these settings affect background images.
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong

  • How do I change the text of a specific MESSAGE field for a specific Alert

    I want to change the text for the "Message" field (10.2.0.5 OEMGC) for the "Blocking Session Count" alert that shows up in Notifications.
    Does anyone know where the text is stored? I do not find it in Preferences>Rules in the Console nor in any obvious views or tables in the OMS.

    What is the Agent version monitoring the Database for which this alert is raised?
    You need to apply the fix for Bug : 9110313 to the Agent on the database machine.
    Refer to Note 9110313.8: Bug 9110313 - Metric clear alerts reported when warning and critical threshold are crossed

  • How to retrieve all the data from a BLOB using view-generated accessor

    I am using JDeveveloper 10g v. 10.1.3 and am storing an image in a database as a blob object and need to retrieve all of the data to get the entire image and store it in an ImageIcon. The code I have works partially in that it retrieves the correct data, but only gets a piece of it, leaving me with a partial image.
    AppModuleImpl am;
    ImageVwViewImpl vo;
    am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
    vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
    ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();
    ImageIcon icon = new ImageIcon(ivo.getImage().getBytes(1, (int)ivo.getImage().getBufferSize()));
    jULabel1.setIcon(icon);I either need to know how to use a stream to get the data out (from BlobDomain method getBinaryStream()), or how to get the other chunks of data separately.
    edit: I know the problem is that getBufferSize() returns an int which is too small to hold all the data, but need to know what to use instead. Thanks!

    This is the code I'm using now. Same problem :(
    AppModuleImpl am;
            ImageVwViewImpl vo;
            am = (AppModuleImpl)panelBinding.getDataControl().getDataProvider();
            vo = (ImageVwViewImpl)am.findViewObject("ImageVwView");
            ImageVwViewRowImpl ivo = (ImageVwViewRowImpl)vo.getCurrentRow();  
            ImageIcon icon = new ImageIcon(ivo.getImage().toByteArray());
            jULabel1.setIcon(icon);

  • How to restore only the notes from icloud?

    Dear Community,
    I'd like to know how to use icloud on your phone, not on mac or pc, in depth.
    I've done some research on my own and found out how, but I just couldn't experiment on my own since it might be wrong and remove all my current data, such as notes and contacts. So can you guys tell me if the information below is correct?
    When you accidentaly deleted your notes:
    -Go to setting -> icloud
    (at this point, your "notes" should be already on a 'on' otherwise it isn't backed up)
    -Turn the "notes" off and back on, then your notes should be back.
    *same thing with contacts and so fourth...
    Now here are my questions
    1.If above is wrong, what is the correct procedure?
    2.If above is correct, what determines the "back up point"?
    does icloud backs up datas automatically or something? when I turn the "notes" off and on to retrieve my datas, how old are the back up datas?
    If I were to force the "retrieving back up" by turning the "notes" off and on RIGHT NOW, would I have the same exact data that I have now, or would it retrieve the data that was automatically backed up sometime ago? (or does it even back up automatically at all???)
    3.Do you have to turn on the "icloud backup" on Storage & Backup screen (setting>icloud>storage&backup) in order for everything stated above to work? or this totally separate backup system??
    The reason why I have to know all these info in depth is because I use my phone for my business matter, and a lot of important information and contacts are saved... I do know that you can back up your iphone through itune, but that way you have to store the entire phone, also I can't be doing backup process every single day. so for stuff like contacts, notes, calender, I want to retrieve selectively at my will right away.
    Please help people!
    Thank you

    It's not possible to selectively restore parts of the backup - it's all or none.  If you had been syncing your contacts, calendar and notes to iCloud or an app on your computer, just sync them back - it's automatic with iCloud if you set this in settings.
    Your in-app history and data was contained in the backup you aren't using.  There's no way to retrieve them without restoring the entire backup.  For all you know, the problem causing the overheating was corrupted app data that you don't want back in the phone.

  • How to pass the text from a table to the field label on the selection scre

    hi guru's
      i have requirement were in i have to pass the text from a table as field label for
       a input field on the selection screen.
      EX:    selection screen  
                (xxxxxxx )  __________   
                field label    
      please help 
    regards,
    vara

    hi all,
    can you please check the code, and suggest am i doing wrong any were.
    types: xtab(200).
    data : ttab type table of xtab,
    w_so type xtab.
    data: routine(32) value 'TEMP_ROUTINE',
    program(8),
    message(128),
    line type i.
    AT SELECTION-SCREEN OUTPUT.
    select field text DATA_ELEMENT from zauthgrptxt into table t_fieldlabel where STARALLOWED EQ c_asteriks.
    DESCRIBE TABLE t_fieldlabel LINES N.
    w_so = 'REPORT ZTEMP_PROGRAM.'.
    append w_so to ttab.
    w_so = 'FORM TEMP_ROUTINE.'.
    append w_so to ttab.
    loop at t_fieldlabel.
    w_field = t_fieldlabel-field.
    CONCATENATE 'SELECT-OPTIONS: ' ' P_' w_field zspace ' FOR ' ' T_FIELDLABEL-' w_field ' NO INTERVALS NO-EXTENTION.' INTO w_so.
    append w_so to ttab.
    endloop.
    w_so = 'ENDFORM.'.
    append w_so to ttab.
    generate subroutine pool ttab name program
    message message
    line line.
    if sy-subrc = 0.
    perform (routine) in program (program).
    else.
    write:/ Message.
    endif.
    The sy-subrc = 4. nothing is coming into 'program' at generate subroutine pool
    very urgent requirement please help
    thanks,
    vara

  • Getting the text from a JTextArea...

    hi, I'm making a perfect calculator program and I'm trying to add a Note Pad function to it, I also want to hide that so the other interface can be used; I can get it hided and come again but I'm wondering how could I get the text from the JTextArea INCLUSIVE the enters that are made withing it, so:
    theString = jTextArea1.getText();only gives me the text and no enters; suggestions?

    I think I displayed it wrongTwo things to keep in mind...
    Certain Swing components will just ignore newlines, so you have to be careful where/how you're displaying your multiline text strings. Some components will display it all as one line, some will only display the top line, some will even show \n instead of doing the newline. It all just depends.
    And JTextArea does support word wrapping, so just because it looks like there's a newline, there may not be one.

  • When I print a webpage from FF how can I make the text and images bigger?

    I am trying to print an eticket for a flight. The text on the schedule comes out too small and the UPC symbol's black lines look ganged together. I know I can view it zoomed up, but how do I make the text and images stay zoomed so they will print out that way?

    I upgraded but the problem remains. At least with Firefox I do have the option to print a selection even if it mangles the top and bottom lines. With Safari or Chrome I have no option to print a selection. At the moment the only way to get a complete copy of the selection is to copy to openoffice etc and print from there.

  • How do I get old texts from the Cloud

    How do I get old text from the Cloud?   Issues with my phone forced the Verizon Tech to wipe my phone and start over.  He said the Cloud would hold everything and I could retrieve it later.   I can't find any of the saved texts that I had.   Help please.

    Had you previously backed up your texts to the cloud? Yes, you can save things in the cloud, but you must first set it up to do so.

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

Maybe you are looking for

  • HP Color LaserJet CP2025 is listed as Offline

    Our HP Color LaserJet CP2025 was bought in the middle of November, 2011 and has been working fine since then. I set it up with a static IP address and no one has had troubles connecting or printing until yesterday. All of a sudden the printer is list

  • Why upgrade to 4.2

    With all the complaints about the 4.2 upgrade (crashing phones, draining batteries, etc.), why would you upgrade to the 4.2 OS if your phone is working fine (on let's say 4.0 or 4.1)? My 3gs is a refurb that came with 4.1 and is works fine. I've even

  • Order Confirmation

    Hi All In a MTO process, all items got confirmation in PO but no Order Confirmation to customer was triggered. Reason might be Confirmation status "partially confirmed" in the status tab of the header of the sales order. But I also checked that all i

  • List of Instances in SMSY is blank

    Dear gurus, I'm having problem when setting up SMSY in Solution Manager. When setting up Landscape Components in Menu "Systems" tab "Instances", there's no instance read. But in tab "Software Components", the list of software components is listed. Th

  • Disabling controls at runtime

    Jdev 11.1.2.3.0 ============ I am having problems on what I want the user to see at runtime. I want to use controls (command buttons, etc) to control what a user will be able to see depending on the situation. My scenario is described in the followin