Automatic trimming of blank spaces

Hello,
I noticed that Oracle Forms will remove all blank spaces from a text field automatically (if the text field contains only blank spaces).
Is this controlled by a specific setting ?
Thanks

Hello,
No,i do not need those spaces.
But i was asking if this can be changed or not.

Similar Messages

  • Trim multibyte blank space

    String.trim() removes single byte white spaces, but not multibyte white spaces.
    If a string contains Japanese characters and has leading or trailing white spaces, String.trim() does not remove the leading & trailing multibyte white spaces.
    Is there any way to achieve this.
    Regards
    Aswin Asokan

    subclass the string class and override the trim() method to do the things you want to do.
    or maybe call trim() twice :)
    Tom

  • File Content Conversion Removes Leading Blank/Space

    I'm having a problem where file content conversion is trimming leading blanks/space/whitespace from fields when reading in the inbound file.  I've seen where people have posted that you need to use fieldContentFormatting to prevent content conversion from stripping the leading/trailing whitespace.  I added that parameter to my list (see below example) but it still appears to be trimming the leading whitespace.  Look forward to hearing your thoughts.  Here are the details:
    I'm using fixed length file content conversion for Sender File Adapter (SP15).  I have the following parameters set:
    Document Name = MaterialData
    Recordset name = item
    Recordset Structure = MaterialLine, 1
    I have:
    MaterialLine.fieldNames = matno_external, mat_description
    MaterialLine.fieldFixedLengths = 40, 40
    MaterialLine.fieldContentFormatting = nothing, nothing
    The following is the input file (notice spaces prior to second occurrence of material numbers)
    ZED00000001                             AIMS LIGHT A
    ZED00000001                            AIMS LIGHT B
    ZED00000002                             AIMS SWITCH A
    ZED00000002                            AIMS SWITCH B
    ZED00000003                             AIMS SEMICONDUCTOR A
    ZED00000003                            AIMS SEMICONDUCTOR B
    The following is the source XML after file content conversion from SXMB_MONI (note spaces no longer exist in matno_external tag).
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MaterialData xmlns:ns="http://xxxxxxx.com/yyy/test">
    - <item>
    - <MaterialLine>
      <matno_external>ZED00000001</matno_external>
      <mat_description>AIMS LIGHT A</mat_description>
      </MaterialLine>
      </item>
    - <item>
    - <MaterialLine>
      <matno_external>ZED00000001</matno_external>
      <create_date>10/09/06</create_date>
      <mat_description>AIMS LIGHT B</mat_description>
      </MaterialLine>
      </item>
    - <item>
    - <MaterialLine>
      <matno_external>ZED00000002</matno_external>
      <mat_description>AIMS SWITCH A</mat_description>
      </MaterialLine>
      </item>
    - <item>
    - <MaterialLine>
      <matno_external>ZED00000002</matno_external>
      <mat_description>AIMS SWITCH B</mat_description>
      </MaterialLine>
      </item>
    - <item>
    - <MaterialLine>
      <matno_external>ZED00000003</matno_external>
      <mat_description>AIMS SEMICONDUCTOR A</mat_description>
      </MaterialLine>
      </item>
    - <item>
    - <MaterialLine>
      <matno_external>ZED00000003</matno_external>
      <mat_description>AIMS SEMICONDUCTOR B</mat_description>
      </MaterialLine>
      </item>
      </ns:MaterialData>

    Thanks all for your attempts but I figured it out and wasn't this the biggest case of irony.
    Here I was trying to prevent leading spaces from being trimmed in the loading of my file and my problem was that when I typed:
    MaterialLine.fieldContentFormatting
    I actually left a "blank" at the end of the "g" in Formatting.  Apparently XI didn't like that and neither gave me a runtime or compile error.  Anyway I found this and though I'd share in case anyone else encounters it.  I removed the blank and all is working now.

  • Lots of blank space when printing array with only last element printed

    I have a slight problem I have been trying to figure it out for days but can't see where my problem is, its probably staring me in the face but just can't seem to see it.
    I am trying to print out my 2 dimensional array outdie my try block. Inside the trying block I have two for loops in for the arrays. Within the second for loop I have a while to put token from Stringtokeniser into my 2 arrays. When I print my arrays in this while bit it prints fine however when I print outside the try block it only print the last element and lots of blank space before the element.
    Below is the code, hope you guys can see the problem. Thank you in advance
       import java.io.*;
       import java.net.*;
       import java.lang.*;
       import java.util.*;
       import javax.swing.*;
       public class javaflights4
          public static final String MESSAGE_SEPERATOR  = "#";
          public static final String MESSAGE_SEPERATOR1  = "*";
          public static void main(String[] args) throws IOException
             String data = null;
             File file;
             BufferedReader reader = null;
             file = new File("datafile.txt");
             String flights[] [];
                   //String flightdata[];
             flights = new String[21][7];
             int x = 0;
                   //flightdata = new String[7];
             int y = 0;
             try
                reader = new BufferedReader(new FileReader(file));   
                //data = reader.readLine();   
                while((data = reader.readLine())!= null)   
                   data.trim();
                   StringTokenizer tokenised = new StringTokenizer(data, MESSAGE_SEPERATOR1);
                   for(x = 0; x<=flights.length; x++)
                      for(y = 0; y<=flights.length; y++)
                         while(tokenised.hasMoreTokens())
                            //System.out.println(tokenised.nextToken());
                            flights [x] [y] = tokenised.nextToken();
                            //System.out.print("*"+ flights [x] [y]+"&");
                   System.out.println();
                catch(ArrayIndexOutOfBoundsException e1)
                   System.out.println("error at " + e1);
                catch(Exception e)
                finally
                   try
                      reader.close();
                      catch(Exception e)
             int i = 0;
             int j = 0;
             System.out.print(flights [j]);
    //System.out.println();

    A number of problems.
    First, I bet you see a lot of "error at" messages, don't you? You create a 21x7 array, then go through the first array up to 21, going through the second one all the way to 21 as well.
    your second for loop should go to flights[x].length, not flights.length. That will eliminate the need for ArrayIndexOutOfBounds checking, which should have been an indication that you were doing something wrong.
    Second, when you get to flights[0][0] (the very first iteration of the inner loop) you are taking every element from the StringTokenizer and setting flights[0][0] to each, thereby overwriting the previous one. There will be nothing in the StringTokenizer left for any of the other (21x7)-1=146 array elements. At the end of all the loops, the very first element in the array (flights[0][0]) should contain the last token in the file.
    At the end, you only print the first element (i=0, j=0, println(flight[ i][j])) which explains why you see the last element from the file.
    I'm assuming you have a file with 21 lines, each of which has 7 items on the line. Here is some pseudo-code to help you out:
    count the lines
    reset the file
    create a 2d array with the first dimension set to the number of lines.
    int i = 0;
    while (read a line) {
      Tokenize the line;
      count the tokens;
      create an array whose size is the number of tokens;
      stuff the tokens into the array;
      set flights[i++] to this array;
    }

  • Blank spaces in code view

    Hello,
    Whenever I copy and paste text from another website -- sometimes from my own website after it goes live -- onto Dreamweaver, the text looks just fine in Design view. Fonts and paragraphs are preserved, as they're supposed to according to my preferences.
    However, when I look at the code view, there are always several -- sometimes a whole lot of -- blank spaces separating words; blank spaces that were not in the original text (even in code view) and that can't be detected in Dreamweaver's design view.
    It looks ok online just like it looks ok in Dreamweaver's design view, but I'm just a little concerned that those blank spaces may confuse search engine crawlers.
    For instance. In design view and online, one sees:
    "Great Holiday"
    but in the code view/source page you'll see
    "Great                    Holiday"
    That's what the crawlers and spiders will see as well. And they may think that "Great Holiday" and "Great                    Holiday" are two different sets of keywords when they should be the same.
    How can I ensure that only *one* blank space is allowed in Dreamweaver's code view, whenever I copy and paste text from webpages? Is there a way that I can preserve the texts' format and fonts while ensuring *one* blank space in code view?
    Any suggestions would be much appreciated.

    No, actually this is what happens:
    If one of us copies text from our blog online (www.altfg.com/blog/) we see the following in Dreamweaver's design view:
    Right behind Clash of the Titans, DreamWorks Animation’s How to Train Your Dragon, featuring the voices of Jay Baruchel, Gerard Butler, and
    America Ferrera, earned $3.8 million (+9.2%) domestically on Thursday,
    but in code view there are blank spaces between words. Blank spaces that shouldn't be there:
    <p>Right behind <em><strong><a href=
    "http://www.altfg.com/blog/movies-431/clash-of-the-titans-box-office-predictions/"
    >Clash       of the Titans</a></strong></em>, DreamWorks Animation’s <em>How to   Train Your Dragon</em>, featuring     the voices of <strong>Jay Baruchel</strong>,<strong> <a href=
    "http://www.altfg.com/blog/photos/bradley-cooper-gerard-butler-andrew-r-jones-810/"
    >Gerard       Butler</a></strong>, and <strong>America Ferrera</strong>, earned     $3.8 million (+9.2%) domestically on Thursday, </p>
    Notice the blank spaces separating "featuring      the voices" or "Gerard       Butler." Those shouldn't be there. Maybe it makes no difference. On the browsers, it all looks fine. But is there a way to ensure that Dreamweaver doesn't allow more than one blank space between words in code view?
    Also, *no one* has responded to my query about automatic hyperlinks for images. Any ideas?
    That has been such a drag.
    http://forums.adobe.com/thread/613801?tstart=30
    Thank you.

  • Carriage returns are replaced by blank space in SOAP message.

    Hi,
    i am using SOAP request based website. i am using the weblogic webservices. when we sent any SOAP request to the server, if the SOAP xml message contains any carriage returns(new lines) are replaced by a single balnk space.
    i have a requirement where user can enter details in multiple lines. but by the time when it readched server, the SOAP xml message has changed. all the carriage returns are repalced by a blank space.
    Can you please help how to solve this issue.
    Thanks
    subba.

    What are your trying to accomplish?
    I'm thinking you are trying to get a several 'fields' together as a single 'string'. In which case I'd simply concat the fields together like
    SELECT a, b||' '||c ...
    to create a single string with "contents of b space contents of c"
    If you are trying to get one hundred and one blanks, of make a field 101 characters wide with blank padding, then you want to look in the SQL Reference manual for things like lpad, rpad and trim.

  • New line break and extra blank space characters disappear after submit form?

    Hello,
    I have a PDF form with a Submit button that is dynamically created in my code to send the form data to the server in HTML format.
    After the form data is received on the server side, all strings with new line break and extra blank spaces are gone.
    For example, if I enter string in a text field as shown below on the form:
    Hello   ,  
    this is  
        just a
    test
    After the form data is sent to the server, this string would become:
    Hello , this is just a test
    New line breaks are gone. Also, if there is more than 1 blank space character between 2 characters, the extra blank space characters would be removed as well.
    It does not only happen to multi-line text field, even with single-line text field. If I have a string like this in a single-line text field:
    Hello         this is just              a         test
    After the form data is sent to the server, it would become:
    Hello this is just a test
    The form is created in OpenOffice then converted to PDF. The Submit button is created in my program using iText.  I have no idea it is iText that trims my string or PDF itself does it.
    Can anyone give me any possible explanation? Thanks.

    That is not what I get. Since it's URL-encoded, spaces are represented by the "+" character and carriage returns are represented by the "%0d%0a" (cr/lf) sequence.
    Are you looking at the actual data that getting sent to the server or the output from the server after it processes it?

  • Simple??? Want "INSERT" function to return blank space after a field, how?

    All,
    Am I just having a brain fart? I have a situation where I have a field that needs to return just one space, or a value that has a space before and after it.
    Example:
    In the text ==> I am<field>going to the office. <-- notice no space between am, <field> and going
    I want it to say if FALSE, then "I am *not* going to the office."
    If true, then "I am going to the office."
    If true, I'm simply RETURN(""); <-- This returns a blank space
    If FALSE, I have tried:
    ret="not"
    RETURN(" " & ret & " ");
    This returns "I am notgoing to the office". <-- Notice no blank space after "not"?
    I've tried
    ret="not";
    ret2=(" " & ret);
    RETURN(Insert(ret2, 3, " "));
    Still the same result. What's strange is, if I do a RETURN(Insert(ret2, *2*, " "));, then it returns "I am no tgoing to the office" <-- Notice the space between the "o" and the "t"?
    Ideas?

    Trailing spaces are often removed from data. In your case, the easiest thing to do will be to use what is called the "hard space" character instead of a "real" space. This is key code ALT+0160. For all intent and purposes, it looks like a space and will print as a space, but since it is not technically the space (0032) character, it will not be trimmed from your projects. Just open the quotes, turn off the NUMLOCK and hold down the ALT key and type 0160 and then release the ALT key. This will add the hard space into your string. Then if you are like me, you will have to remember to turn the NUMLOCK back on.
    " not "
    I'm not sure how this will post into this message, but the example above is using hard space characters.
    Edited by: user9976634 on Dec 5, 2012 12:52 PM

  • Blank Spaces in the report

    <p>Hi </p><p>My Report has some columns which has the option as "Can Grow" so that when the returned value from the database is more that one line it can accomdate the data in the field.</p><p>The problem i am facing is that when the records are printed in the pages and when the next record is unable to fit in the remaning section of the report it automatically pushes to the next page.<br />In this scenario the previous page has blank space after the next record is printed.</p><p>Is there way that i can suppress this balnk space and force teh record to be printed in the same page and when the page is over it follows in the next page.</p><p>Thanks in Advance<br />Moa</p>

    <p>My problem was that I wanted to display several lines in a total field: order amount, minimum charge, delivery charge and tax. When any of them was zero, I needed to hide it without leaving a big gap. </p><p>Here was the solution: </p><p>Create a textbox. Set the textbox&#39;s "Suppress blank lines in embeded fields" property. <br />Instead of using database field (for example, table.fieldValue) and a label, create a formula that says:  </p><blockquote><p>If isNull{table.fieldValue} then </p><p>    "" </p><p>else </p><p>"Value:" + Chr(9) + ToText({table.fieldValue})   </p></blockquote><p>I placed a tab in this formula to space it out. Add tab stops (one left-aligned, one decimal) to your textbox, and drag the formula into it (embed) instead of the database field. Add the other fields to the textbox as well, separating fields by adding carriage returns. Bingo. The field and the line will disappear when there is no data.</p><p> I hope this helps.</p>

  • Text item with a blank space

    I am trying to save a blank space in a text item but everytime i do, the item is getting trimmed.
    if i put in " " then it trims to null.
    If i put in "P " then it rtrims to "P"
    What am i doing wrong?

    I dont think i have been clear on what we are trying to achieve. They will not always need a blank space but could need one if they choose to do so.
    The form concatenates a set of values. So we have a set of information that is exported by the form.
    i.e.
    ONE
    TWO
    THREE
    FOUR.
    on button press turns into ONETWOTHREEFOUR
    they then have a custom seperator text item to specify what seperator is used to seperate the values. So this is where i want the user to be able to specify anything they want, including a blank space or anything else they require like comma etc so if they entered ", "
    on button press turns into ONE, TWO, THREE, FOUR
    at present it trims it turning it into ONE,TWO,THREE,FOUR
    Hope this makes sense as to why i want the blank space.
    I can add it as a list item and concatenate it on save but this this is a little OTT for what is a simple task

  • Error Blank spaces smartforms

    Hello,
    I have an smartform who recibes a table of char255 lines. The only thing I do is a loop over it and show each line.
    My problem is I have some lines with a lot of blank spaces (for example"01                    7,50     10,30") and on the screen those spaces doesn´t fill the same space each char so it get shown with bad format.
    Do you know why is this happening??
    Rgds
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 17, 2009 11:43 AM

    You may display the OTF spool in RAW mode so that to make sure that the COURIER font has been used (because it might have been automatically replaced by SAP, if your device type does not allow COURIER, see SE73 printer fonts and also "Font conversion" button which converts all existing system fonts).
    Moreover, if you use SAPWIN, SAPlpd program may have a replacement font defined for Courier, run saplpd.exe manually and check this option.

  • Message Mapping using Left justified, right blank/space filled

    Hi,
    My Interface is outbound Interface.
    Suppose source field named 'Filename' is mapped with Target field named 'Filename'.Condition is AS IS(Left justified, right blank/space filled).
    How should i do this mapping?

    Hi Sanghamitra Duttagupta,
                                                you can try this UDF below
    public static String fieldJustified(String s)
              try
                   final int fieldLength=20;
                   char filler=' ';
                   s=s.trim();
                   int l=s.length();
                   while(l<fieldLength)
                        s=s+filler;
                        l++;
              catch(Exception e)
                   return s;
              return s;
    Please reset the value of the variable "fieldLength",  in code above to the field length as per your need. The right side will be filled with extra spaces since value of "filler" variable is ' '. you can set this to any character of your choice so that total field length is equal to value of variable "fieldLength" (which is 20 here).
    so if input is  "        hi"
    output           "hi                  "
    regards
    Anupam
    Edited by: anupamsap on Aug 1, 2011 1:53 PM

  • Viewing/Identifying blank spaces in SQL*plus

    How can i identify blank spaces in Sql*plus? How will i know if the result of the following query has the blank spaces on the right trimmed?
    SQL> select rtrim('sxxx  ') from dual;
    RTRI
    sxxxMessage was edited by:
    J.Kiechle

    Why? This seems a pretty strange requirement for me.
    Are you sure that you have a problem with blank padded characters?
    select 1, '|'||rtrim('sxxx  ')||'|' from dual
    UNION
    select 2, '|'||'sxxx  '||'|' from dual;
    Row#     1     '|'||RTRIM('SXXX')||'|'
    1     1     |sxxx|
    2     2     |sxxx  |

  • HowTo turn off automatic trim for char fields

    I have a CHAR(1) field in the database containing a space. This is mapped to a char field in an entity Bean, but the space will not be loaded. Instead it is automatically trimmed to '', which leads to an exception when converting the char into an Enumeration. Does anyone knows a solution or a work around to turn of this automatic trimming? I can't change the values, so this would not be a solution.
    Greetings,
    Oliver
    Edited by: user11932222 on 23.09.2009 01:48
    Edited by: user11932222 on 23.09.2009 01:49

    You can disable trim of CHAR fields using a SessionCustomizer and setting setShouldTrimStrings(false) on the Session's DatabaseLogin.
    http://www.eclipse.org/eclipselink/api/1.1.2/org/eclipse/persistence/sessions/DatabaseLogin.html#setShouldTrimStrings(boolean)
    There is not currently a JPA persistence.xml property for this, please log a bug for this.
    James : http://www.eclipselink.org

  • Gmail formatting icons appear as blank spaces in Firefox 4.0 How to correct this?

    I find that,after switched over to Firefox 4.0, the formatting icons in Gmail "compose mail" page appear as blank spaces. How to get back the display of these icons?

    If images are missing then check that you aren't blocking images from some domains.
    See:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    * Check the permissions for the domain in the current tab in Tools > Page Info > Permissions
    * Check that images are enabled: Tools > Options > Content: [X] Load images automatically
    * Check the exceptions in Tools > Options > Content: Load Images > Exceptions
    * Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images)
    There are also extensions (Tools > Add-ons > Extensions) that can block images.
    * [[Troubleshooting extensions and themes]]

Maybe you are looking for

  • Time is not being displayed in the menu bar.

    Hi, I this morning i woke my mac from sleep to find that it is not displaying the time in the menu bar anymore. How do i fix this?

  • Down payment request in foreign currency

    Xperts, I am facing the following issue. I am entering a down payment request (F-47) in foreign currency. I am assigning a payment method in order to pay the request through the payment program F110. When the payment program pays the down payment req

  • Query on Active Sync

    Hi, I have a query on Active Sync. I am making some changes in a couple of attributes. Is there a way or a variable through which i can get only the changed values. activeSync.chnages gives me the entire value of the changed attributes. for eg: Origi

  • Access denied: HTTP - Host Request with Widget Foundation + Yahoo

    Hi, I have a problem with the new Yahoo widget engine's (4.5) suggested structure, when trying to execute an RFC request. An older version of my .kon file has a classic structure, and it works fine, I write the script into the .kon file, it looks lik

  • Multiple Context Paths Per Web Application

    Hi, We have a Web Application which has a Context Path of "titanadmin". We have some HTML pages which refer to this within the URLs they contain. We need to move the functionality in this Web Application to another Web Application with a Context Path