Leading blank space in text field

Hi guys,
i have defined include type in designer(adobe) to display text from SO item. which is working very much fine.
If the SO item text is maintained with leading tabs, adobe is able to show the text exactly.
But if the SO item text is maintained with leading spaces, adobe is defaulting value to left by deleting the leading spaces.
I need to show the value in mirror image. Hence i need to retain the leading spaces in adobe too.
Appreciate valuable suggestions

HI,
Yes, you are right. I was checking weather we could handle this without scripting.
Moreover, can anyone check whatz wrong with this source. I am trying to pad tab infront of the field value.
But its not happeing.
data.BodyPage_Details.sf_Tsk_Tab_Loop.sf_Seq_Tab_Loop.sf_Opr_Tab_Loop.sf_PRT.sf_PRTData.sf_prt_header_text.PRT_LONG_TEXT::initialize - (JavaScript, client
if ( (sf_PRT.sf_PRTData.sf_prt_header_text.PRT_LONG_TEXT.rawValue)  != null   )
    this.rawValue =  "\t" + this.sf_PRT.sf_PRTData.sf_prt_header_text.PRT_LONG_TEXT.rawValue;
    this.presence =  "visible" ;
else
     this.presence     =  "hidden";

Similar Messages

  • 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.

  • Removing leading zeros and leading blank spaces from an input field

    Hi All,
    I have an input field which is alphanumeric and i need to remove the leading zeros and blank spaces in it , but intermediate spaces should be kept .
    so i used the UDF
            String output = input.replaceFirst("^0+","");
            return output;
    but this code does not remove the leading blank spaces . Can anybody help in modifying this code so that even the leading blank spaces along with leading zeros  can be removed .
    Regards ,
    Loveena .

    lets say input is a
    then
    int len = a.length();
    for(int i;i< length;i++)
    if(a.substring(0,1).equals(" ") || a.substring(0,1).equals("0"))
    a = a.substring(1,len);
    return a;
    hope you got the logic so that you can enhance it better

  • 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

  • Leading blank space in data

    When I query a form on a field with data that contains as its
    first character a blank space, why do I get an error 'invalid
    relational operator'
    On examining the underlying SQL query, I find that the relational
    operator = has been overwritten with a blank space. This happens
    in any form in Developer/2000. A field value without a leading
    blank does nor create a problem
    Thanks
    Gnana Supramaniam
    null

    Try it with ltrim(rtrim(field name)).
    It will work.
    Syed.
    Gnana Supramaniam (guest) wrote:
    : When I query a form on a field with data that contains as its
    : first character a blank space, why do I get an error 'invalid
    : relational operator'
    : On examining the underlying SQL query, I find that the
    relational
    : operator = has been overwritten with a blank space. This
    happens
    : in any form in Developer/2000. A field value without a leading
    : blank does nor create a problem
    : Thanks
    : Gnana Supramaniam
    null

  • Leading zeros in dynamic text fields

    I have a dynamic text field that indicates the degree of
    rotation of a knob. I need the display to have three digits showing
    at all times. This means I need leading zeros from 0 to 99. ie,
    000, 001, 002, etc.
    Is there a way to do this numerically or do I have to change
    the numbers to strings and concatenate??
    Thanks,

    Yes, for the most part only strings can start with leading
    zeros.
    You might run into some troubles because Flash treats a
    leading zero as a sign that a number is octal, base-8.
    So if you were planning on using Number() to cast your values
    into numbers, don't! Instead use parseInt(someString,10).

  • Including blank spaces to the field

    Hi,
    I have a field in the internal table with length 10.
    If this field is blank, i want to assign 10 spaces in that field.
    how to do tht.
    plz help.

    Hi,
    Hope below code will be useful for u.
    data: v_dt type d value '        '.
    i given 8 spaces here becoz length of d is 8. likewise u can use ur Internal table
    write: 'date',v_dt.
    Reward if helpful....
    Regards,
    vijay

  • Set blank to a text field

    Hi,
    I have a PG where I have 2 dropdown and a text field. Now dropdown A has fire partial action. Now what I want to do is as soon as i select any super commodity i want to set that text field value to blank.
    i have tried to setText for that field but it is not working as I am trying that in processFormRequest. Can you please let me know how to hanlde this easility?
    Thanks
    Debashree

    Since there is no VO attached to the item, do what Srini suggests , that is the only option you have since SPEL would not support the value property.
    Please search in the forum on how to do the redirection, I remember posting some code for this
    Thanks
    Tapash

  • Need a Blank line between Text field data

    hello friends, Happy New Year..
    i have a varchar2(200) size field and i am Entreing data into it like this;
    Chairman  Name1
    Member    Name2
    Member    Name3
    Member    Name4
    Member    Name5
    Member    Name6
    Secretary Name7what to do is, insert an a blank line between all lines of this text field. The output to like this ;
    Chairman  Name1
    Member    Name2
    Member    Name3
    Member    Name4
    Member    Name5
    Member    Name6
    Secretary Name7The names are separated by pressing Enterkey (i dont know its equivalent chr(10) or chr(13).
    TYVM.

    You can also try the below :
    Assumption here is that you will always have data in that column in 7 lines.
    rec.rowno in (2,4,6,8,10,12,14) is included to create empty row in between each row.
    create table test(a varchar2(200));
    insert into test values('Chairman  Name1
    Member    Name2
    Member    Name3
    Member    Name4
    Member    Name5
    Member    Name6
    Secretary Name7');
    commit;
    select
           case
             when rec.rowno = 1 then
                   substr(a,1,instr(a,chr(10),1,1) - 1)
             when rec.rowno in (2,4,6,8,10,12,14) then
                  null
             when rec.rowno = 3 then
                   substr(a,(instr(a,chr(10),1,1)+1),instr(a,chr(10),1,2))  
             when rec.rowno = 5 then
                   substr(a,(instr(a,chr(10),1,2)+1),instr(a,chr(10),1,3))                          
             when rec.rowno = 7 then
                   substr(a,(instr(a,chr(10),1,3)+1),instr(a,chr(10),1,4))              
             when rec.rowno = 9 then
                   substr(a,(instr(a,chr(10),1,4)+1),instr(a,chr(10),1,5))
             when rec.rowno = 11 then
                   substr(a,(instr(a,chr(10),1,5)+1),instr(a,chr(10),1,6))
             when rec.rowno = 13 then
                   substr(a,(instr(a,chr(10),1,6)+1))                                            
           end name1,
           null signature,
           null "DATE"
      from test, (select rownum rowno from dual connect by level <= 14) rec;Edited by: neel_s on Dec 31, 2009 1:07 PM

  • Blank space between text boxes after publishing

    I have a few pages with a relatively large number of text boxes on them (perhaps 20). These are all separated by a few pixels in iWeb, but when I publish to .mac, I see quite a bit of space between them. Is this a known problem? Is there a fix?
    Thanks,
    Patrick

    Go into iWeb and check that your text boxes are not overlapping each other. If they are, this can cause problems when publishing. Check that they do not overlap and re-publish and see what happens then.

  • Blank space in Amount field

    Hello All,
    I have one clarification.I have one field called amount.Its value is taken as 0.00 from the table. I have to make it as blank.I have made it as blank to that field in display pattern properties by setting as * in adobe designer. This is suitable for print form. In case of interactive form how can this be done to achieve the functionality.If the value is given from the other side to the amount value its not taking since in display pattern it has been set  as *.Can anybody help me out to solve this issue. 
    This is very urgent.I will reward you with points.
    Thanks,
    Swapna

    Swapna,
    Check my reply [here|Adobe Forms --Amount field Problem;.
    Chintan

  • How to copy paste a table structure from word document into Text Field [field format Rich Text]

    In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document.
    Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field.
    Pasted content retains all text formatting [Bold, Italic, Underline, Indentation] except the Table format. Text Field is removing table metadata from the content and converting it into plant text.
    Is there anyway to copy paste table structure as it is from word document into Text Field?

    Hi,
    I don't think you can! While you can paste formatted text into the rich text field, the table metadata means nothing to the textfield.
    Niall

  • Clear the content of a text field

    hello guys,
    i have text fields in a screen which are been populated in the PBO. Now i want to clear the content of the  text field such that the user can input new values in those text field.
    so, anyone knows how i can achieve this.
    tried,
    text field name = ' ', space.
    clear text field name.
    but none worked.
    thanks you for ur help.

    Hi,
    I think you have doen some thing like this in PBO.
    screen_field_name = 'some value'.
    So now in PAI you can do the following.
    CASE sy-ucomm.
         WHEN 'F_CLEAR'.    " Fcode for the clear button in the screen.
          CLEAR : field_name.
      ENDCASE.
    If the field is a mandatory field then you need to create a AT EXIT module and write the same code in that.
    Hope it helps you.
    Thanks,
    Sri.

  • How to insert blank spaces in XML tag?

    Hi Experts,
    I have a variable of type char and lenght 10 with value "ABCDE".  When I write this value in xml tag <TEXT> using simple transformation it ignores the trailing blank spaces and the result xml string looks as <TEXT>ABCDE</TEXT>.
    I want the xml tag with trailing blank spaces i.e. it should be like <TEXT>ABCDE     </TEXT>. And suppose if the variable does not contain any value, the xml tag should contain 10 blank spaces like <TEXT>          </TEXT>.
    I have tried using the solution given in this link
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/f52846257a0485e10000000a155369/frameset.htm
    but unfortunately it doesn't work.
    Please guide me to achieve this.
    Regards,
    Ravi

    ABAP prog:
    DATA: text(10)    TYPE c VALUE 'ABCDE',
          xml_xstring TYPE string.
    CALL TRANSFORMATION z_test SOURCE root = text
                            RESULT XML xml_xstring.
    WRITE xml_xstring.
    Transformation:
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    <tt:root name="ROOT"/>
    <tt:template>
          <Text tt:value-ref="ROOT"/>
    </tt:template>
    </tt:transform>
    Result in xml string:
    <?xml version="1.0" encoding="utf-16"?>#<Text>ABCDE</Text>
    Also tried transformation using:
    <tt:template>
          <Text>
               <tt:value length="10" ref="ROOT"/>
          </Text>
    </tt:template>
    Thanks.

  • Remove blank spaces in a text field?

    How can I remove blank spaces in a text field? Some text fields have a lot of blank fields that need to be removed so that I can report only on the text.
    CRXI
    Edited by: Burton Roger on Feb 10, 2009 5:48 PM

    Ex:
    "Hi,
    I have a need for monthly service desk reporting.
    Please provide data on single sheet.
    Thank you"
    I would like to shrink it down to -
    Hi, I have a need for monthly service desk reporting. Please provide data on single sheet. Thank you"

Maybe you are looking for

  • Firewire to Thunderbolt

    I want to transfer footage from my digital camera to my new iMac, as there is no firewire port anymore what do I need? I transferred footage with no problem on my old Dual processor G5, what firewire connection do I need don't know how many pins that

  • Viewing size changes from FCP to QT

    I cant find how to view in its original 4:3 size a FCP movie that i already compressed into .mov (H.264) file. QuickTime squeezes the image a little from up and down. I have tried with other movies and its the same. I havent had this issue with the e

  • ESS PORTAL Timesheet; Increase visible rows for Search help from 5 to 8

    Hi, My requirement is to increase the number of rows of Search help. Currently It is displaying 5 row. I need to increase it to 8. Thanks.

  • Problem with premiere pro cs6 trial

    i have it all downloaded  but when i go to launch an application from the adobe folder it asks me to sign in. then it tells me there is no internet connection....but i do have internet connection. someone please help. i have lots of college work to d

  • How WLS makes one JMSServer leave or join a distributed destination?

    HI,           According to the WLS documents for Distributed Destination:           When one member becomes unavalibale due a server failure, traffic is then redirected toward other avaliable destination members in the set.           Currently, I cre