Extra blank space problem in af:selectOneChoice

Hi All,
I m using <af:selectOneChoice> to display few items in combo box. Now the problem is when the page gets load 1st time, its show an extra blank space in item list, but after selecting any item from the list page gets refreshed and reload again, now it does not have any extra blank space in the list.
How do I remove this blank space from the combo box ???

Hi Usha,
1. Remove the Condition from you Context tab.
2. In the Driver Program check for the condition and fill the value in the internal table which is passed to
    the adobe form.
3. Make the subform (under which the field is added in the hierarchy view) as flowed.
4. In the script editor, Select the 'javascript' and write the script to hide the form field specifying the condition here.
for e.g
if (xfa.form.FORM.SUB_FORM.matnr == "123") {
    xfa.form.FORM.SUB_FORM.Region = "hidden";
NOTE: Javascript is Case sensitive and stops working immediately after the line of code where an error occurs.
Hope this proves to be useful.
Thanks,
Swar.

Similar Messages

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

  • How to add extra blank space in xml

    I open the xml file in notepad I get this
    <XXON_EXT_BANK_ACCOUNT_NAME>創名聯合會計師事務所                                        </XXON_EXT_BANK_ACCOUNT_NAME>
    But when I open the xml file in html format the blank space is gone.
    How can I add extra blank space in xml?

    Hi
    Why do you need the extra space for?
    This difference in display that you see between your browser and notepad/notepad++
    will not affect your generated report.
    Bogdan 

  • How to remove extra blank spaces from log file.

    i have created a log file which contain the logs of a program. the logs are getting created fine for the first execution of the program but from the second time the log file is getting blank space's after every character.
    i have used the code to append the text in log files few examples : 
     'Clean up process started....' >> $log
    File name :'+ $files +'Time-Stamp: '+ $endtime +'Search complete.' >> $log 
    .i want to remove the extra spaces after each character but not all the spaces from the file. Thanks in advance.

    hi  mjolinor
    add-content is used to insert text it does not append text at the file .i used >> to append the text on log file ..
    from 
    Get-Help ADd-Content
    Synopsis
    Appends content, such as words or data, to a file.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Print extra blank pages & problem receiving faxes

    Hi -- My Photosmart C7280 All-In-One begins most printing jobs by printing out a blank page. Also, if I'm printing multiple pages, many of them will be blank (but the document prints in entirety) It doesn't matter if I'm printing a Word document (which I know has a conflict with HP, and which I also know does not have a blank second page at the end), or an attachment to an e-mail, or information from a web page, or even pritnting an envelope.  In fact, I have to let the envelope roll through blank, wait for the error message that there is no paper in the tray, then shoot it through again before I'll receive a printed envelope. Also, if I'm copying multiple pages I'll receive the extra blank pages, but not if I'm copying pages one at a time.
    Also, I used to be able to receive a fax automatically.  The call would go to my recorded message.  As soon as it ended, the incoming fax was recognized and it would print.  It doesn't do that any more.  I have to manually pick up the receiver of the phone before the machine will begin receiving the fax.
    My HP printer is on a network.  I can't remember if it still worked or not after we placed it on the network.  Also, I recently downloaded IE 8. 
    This has been frustrating me for months, but have not had the time to seek help till now.

    I have the same problem - print a document and a few seconds later a blank page comes out....  Any ideas?

  • Blank Space problem in Adobe Form

    Hello Gurus,
    In my Adobe form, One field has to be displayed based on a condition. So, for that field, in Context tab, condition is specified and its working also i.e. It condition is true then data is not displayed in the layout but I find the blank space for it. I dont want that blank space to be displayed.
    Example:
    In layout, address is in format as shown below.
    Name
    Street
    City
    Region
    Postal code
    Country
    Here, I have a condition that, Region field should not be displayed only for Material eq '123' i.e. same address has to be printed as shown below.
    Name
    Street
    City
    Postal code
    Country
    But, If I give condition then address is shown as below.
    Name
    Street
    City
    >Here, am getting empty space & I dont need this blank space to there in the layout.
    Postal code
    Country
    So, Can anyone please help me for this.
    Thanks in Advance.
    Regards,
    Usha

    Hi Usha,
    1. Remove the Condition from you Context tab.
    2. In the Driver Program check for the condition and fill the value in the internal table which is passed to
        the adobe form.
    3. Make the subform (under which the field is added in the hierarchy view) as flowed.
    4. In the script editor, Select the 'javascript' and write the script to hide the form field specifying the condition here.
    for e.g
    if (xfa.form.FORM.SUB_FORM.matnr == "123") {
        xfa.form.FORM.SUB_FORM.Region = "hidden";
    NOTE: Javascript is Case sensitive and stops working immediately after the line of code where an error occurs.
    Hope this proves to be useful.
    Thanks,
    Swar.

  • Subreport causing an extra blank space in PDF export of SSRS 2008 report

    Hi All,
    I have a requirement of showing individual report and a Supervisor report.
    In the individual report, I will run the SSRS report for a particular worker. In the supervisor report, I am supposed to show the report for each worker working under the supervisor.
    I have created the individual report and it works fine(even when exported to PDF).
    Now in order to create the supervisor report, I will get the supervisor ID which I broke into various individual ID's of workers working under the supervisor in DataSet and created a subreport which points to the Individual report. I embedded this subreport
    in a Tablix and gave a group by on the ID so that for each ID, the report runs one time.
    The issue that I am facing is that when I export the Supervisor report in PDF, after each page, I get an extra blank page.
    The Supervisor report only contains the Tablix which has only one column containing the sbureport which points to the Individual report and a Header and footer and nothing else.
    Still I am getting this extra page on PDF export. Please help on the same.

    Hi HiddenIdentity,
    According to your description, you have a report to display subreport for each ID and you have set page break between each group instance. Now when you export the report into PDF, it generate an extra blank page between each group instance. Right?
    In Reporting Services, Reports exported using PDF and Image are optimized for a book-like or printed experience where pages are a consistent size. Page breaks are inserted vertically and horizontally at specific locations within the report body. These specific
    locations are determined by the page width and page height settings. Please see the following link:
    Rendering Behaviors (Report Builder and SSRS)
    In this scenario, when you put a sub report in a cell, the whole subreport body will be displayed in this cell. If the total width exceed the page width of a PDF page, the content will goes to the next page. That's it need two pages to render each subreport.
    So please modify the subreport report size to make it as big as the tablix so that it can be rendered within one PDF page.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Extra blank space in formula and summary fields

    I have a report that gives text output. In that I have 3 fields which are numeric.
    One of them has source as summary column- numeric 3 digits(format mask 000) and other 2 has source as formula column- numeric format mask (0000.00)
    Here is my problem- When the value in my summary column is 3, it prints space(instead of 0) and 03,
    if the value is 56, it prints a space and 56. if the value is 139, it prints a space and 139. Now this increaases the size of my line by 1 space, which is acceptable to the system that we are feeding this data.
    Similar thing is happening for the formula columns, 1 space (instead of 0) and then 000.00 is printed, if the value is filling the format mask, then it will have an extra space before giving out the value 1234.56.
    Can somebody please help me with the situation.
    Thanks
    Anna

    Finally, I got the fix.
    Here is what I did: Instead of the format mask '000' or '099' or '0nn' I used '000Y'
    adding a Y supresses the extra space that is reserved for + or - sign. And supression need to be added at the end like I showed, not like 'Y000'.
    Now my data looks like this, which is what I wanted:
    04/23/20120020123.451234.5610/24/2008
    If you look close, there are no spaces now as compard to my previous data line.
    Thank you all both for spending some time and giving me pointers.

  • Removing extra blank space after Header in IE

    This is my first webpage in Dreamweaver (actually it's my
    first webpage!) I'm still super new and can use A LOT of help.
    First off, I'm using the two column elastic left sidebar
    header/footer template from DW. When I preview my page in IE I get
    an extra gap between the header and the sidebar/maincontent portion
    of the screen. I've tried zeroing all of my margins and padding and
    that seems to have no effect. I read some of the other posts and
    found some code that sounds like it should fix the problem, so is
    this all I have to add to my code?
    Attach Code:
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional
    comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout
    it needs to avoid several bugs */
    </style>
    <![endif]-->
    Also, I am trying to add an image placeholder to my header,
    but everytime I try, the placeholder becomes part of the <h1>
    tag. I don't want it to be part of the <h1> tag (I don't
    think). I would like to be able to just place it in the header so
    that I can float it left and have it not effect my <h1> tag
    at all. Is there a fix for that? I would assume that there would
    be, but seeing as I'm still at Newb status, I have no idea what
    that code would be.
    Thank you!

    Ewww - made the page in Word, did you?
    span.style81 {mso-style-name:style81;
    mso-ansi-font-size:17.5pt;
    mso-bidi-font-size:17.5pt;
    font-family:Arial;
    mso-ascii-font-family:Arial;
    mso-hansi-font-family:Arial;
    mso-bidi-font-family:Arial;
    color:black;
    font-weight:bold;}
    Try changing this -
    <table width="795" border="0" bordercolor="#000000"
    bgcolor="#000000"
    style="border-color: #333333;">
    to this -
    <table width="795" border="0" bgcolor="#000000"
    style="border-color:
    #333333;" cellspacing="0" cellpadding="0">
    Be aware that without specifying a border-style, and
    border-width, your
    border-color style will have no effect.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "moon64" <[email protected]> wrote in
    message
    news:en1idh$kca$[email protected]..
    >I am getting a small space on some of my pages in-between
    the header and
    >the
    > first table. The problem only shows itself in IE, not
    through Firefox. I
    > have
    > encountered the same problem on some other things I have
    been working on.
    > Here
    > is a portion of the file if anyone could kindly see what
    is casuing the
    > problem. Thanks in advance. This board must have
    answered 100 questions
    > for me
    > so far.
    >
    >
    http://www.1candlemarketing.com/fund/headertest.html
    >

  • Need to add a additional blank space in output

    In the following outputs a line of numbers like: 5 43 12 23 10 29 etc. I would like to add a extra blank space between each number. What and where do I need to change or add in the following code to make this happen?
    Code:
    import java.util.Arrays;
    import java.util.List;
    import java.util.Collections;
    public class onetime {   
    public static void main( String [] args ) {       
    final int DOMAIN = 36 * 2;
    char [] characters = new char[DOMAIN];
    Integer [] numbers = new Integer[DOMAIN];
    char ch = 'a';
    int j = 0;
    for ( j = 0; ch <= 'z'; ++ch, ++j )
    characters[j] = ch;
    for ( ch = 'A'; ch <= 'Z'; ++ch, ++j )
    characters[j] = ch;
    for ( j = 0; j < DOMAIN; ++j )
    numbers[j] = new Integer( j );
    List list = Arrays.asList( numbers );
    Collections.shuffle( list );
    Arrays.sort( characters );
    String str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZaBcDeFgHiJkLmN";
    int [] encodedValue = new int[str.length()];
    int pos = 0;
    final int max = str.length();
    System.out.print("\nFirst number is a, second is b and so on. After z you start with A then B and so on. After Z you start with 0 then 1 till 9. After 9 the next four are ? . , !\n");
    for ( j = 0; j < max; ++j ) {           
    ch = str.charAt( j );
    pos = Arrays.binarySearch( characters, ch );
    encodedValue[j] = numbers[pos].intValue();
    System.out.print( encodedValue[j] );
    System.out.print( ' ' );
    System.out.print("\n");
    System.out.print("\n\n\n");
    System.out.print("\nSee readme for more detailed instructions\n\n");

    System.out.print( encodedValue[j] ); replace the above line of code with the following:
       System.out.print( encodedValue[j] + "  " );i am not quite sure what r u asking. but i wish this would bring u a bit helps.
    System.out.print( ' ' );
    System.out.print("\n");
    System.out.print("\n\n\n");
    System.out.print("\nSee readme for more detailed
    ed instructions\n\n");

  • Af:inputText problem : how to display text containing blank spaces

    Hi,
    I have a inputText in af:table with clickToEdit mode, when I commit a value from input text
    for e.g
    "This is______________ a ________text with_________lot________of_______blank spaces"
    (_ undescore represents spaces)
    it get saved perfectly fine to db, but when I am in display mode , it removes all spaces leaving one space
    "This is a text with lot of blank spaces"
    seems like problem is with while displaying, component is not rendering more than one blank spaces
    Message was edited by:
    user626222

    Hi Frank,
    Thanks for your response,
    I am using inputText in af:table with editingMode="clickToEdit"
    so, when its in edit mode, it deplays the correct value as its saved in db
    as soon as you come back to view mode , it eliminates extra spaces replaces with one space
    Thank you

  • How to remove the extra or blank space from RTF Template

    Hi All,
    Try to remove the extra space from  xml template.
    Here I have attached the .xml file with .rdf, here the issue is when you load the data we will get 2 page output but when I am trying to add any column or extra space in the last page of this template the output getting 4 pages with lot of blank space. Could you please guide me to solve this issue.
    Could you please let me know how to do the attachement in this forum as I am new to this community.
    Regards,
    Sushant

    Can you drop in a mail with RTF, xml data to [email protected], I will help you on the issue.

  • RTF Template Blank Spaces Issue

    Hi,
    I have one issue in the RTF File. I have developed templates for the dunning letter report.
    If i have only one line in the main body table and below this table i have some contents information for the customer to print in the report. The issue is there is blank spaces between the table and the contents when i am printing one or two invoices in the report.
    I want to remove this blank spaces and bring the contents information to print just below the table even it is sinle report or many records in the report.
    please guide me if any one come accross with this issue.
    with regards
    Ram

    Hi,
    Make sure there are no spaces before/after your form fields - put them on their own line with no spaces in between. On their own line they don't generate an extra line.
    If you are still having problems email me the xml and rtf ggr888 [AT] gmail [D0T] com
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Printing PDF from IE with Adobe Reader - extra white space at top of page

    I searched the forums far and wide but did not find this question or information to answer it.  If it's out there, I'd be much obliged if you'd point me in the right direction.
    A user of the web app for which I do tech support just called to say that starting today, whenever he opened a PDF from our app (in IE), the PDF looks fine on screen but when he prints the PDF, every page has extra blank/white space inserted at the top, which cuts off the bottom inch or two of each page.
    No other users have called with this complaint, and if changes to our app or an automatic background Adobe Reader or IE update caused this problem, I would have heard from many users.  I have a sneaking suspicion I have heard about this from other users, but since troubleshooting their IE or Adobe isn't exactly my job, I don't know if I did any more than advise them to talk to their tech support people. 
    I can't recreate his problem (read: it works fine for me), but I'd like to help him.  Can anyone think of a reason why this might be happening?
    Thanks in advance.

    What I know:  He's using Adobe Reader X.  I do not know if it's the most recent version.  The problem only exists with PDFs from our web app; he's not having trouble with other sites or with other PDFs.
    I do not have a copy of the PDF; I can't give you the copy I downloaded when I logged into his account because there is proprietary confidential information on it, but everything worked fine for me and he's the only user with this complaint, so I believe it's related to his PC or printer, not to our app or to Adobe per se. 
    I sent him email asking for more information, but I do not know what printer he's using.  I don't even know what version of Windows he's running. 
    Based on some info from Adobe, I suggested he make sure he's using the most recent version (10.1.2), try 'print as image" to see if that's any more successful, and make sure his printer drivers are up to date. 
    Given the nature of tech support, if he solves the problem or finds a workaround he's happy with, I may never hear from him again to know.  I just wanted to know if this was a known issue and what recommended resolutions for it might be.  Having not found anything on the web at large, I figured the Adobe forums would be a good place to ask.
    Thanks for the time you took to answer.

  • SSRS 2008 Report with two tablix have extra blank pages

    I am working on a report in SSRS 2008 that has two tables (or tablices?). My report is set to a width of 11 and height of 8.5, left and right margins of 0.25, top and bottom margins of 0.5. Paper size is Letter, Orientation is landscape.
    With margins accounted for, I basically have 10.5 of workspace for the Body. The first tablix's width is way under 10.5 but the second tablix has lots of columns and would have to span two pages so the Body goes past 10.5 but I
    kept it under 22 (twice one page).  I put a PageBreak after the first tablix. When I run the report and do a Print Layout, the first tablix prints with a blank page after every printed page of that table. The second tablix prints just fine, no extra
    blank pages in between. So I suspect that it is the "empty space" to the right of the first tablix, which is caused by the second tablix's width, that is the problem.
    However when I tried to switch the tables in my report and have the wider tablix print first and the narrower tablix print after it, I did not get any extra blank pages on both; the reports prints just fine.
    Unfortunately, I cannot have the wider tablix print first with the report I need. I would like to know if this is a bug in SSRS 2008? It appears that there is something with the order report objects are printed and their size. Has anyone figured this out
    yet?  Thanks.

    I found
    this post on the MSDN forum that offers the following solutions that worked for a few people responding to that thread.  You might want to try one of these:
    "I found the problem cause.  In Reporting Services, report body width must be <= (report width - report margins width).I reduced the margins to zero width, and the pagination problem disappeared!"
    "I have solved my problem. With SSRS you must be very careful with the way you place objects
    Growing objects will push those on their right, even if they are not on the same line /!\
    Consider a textbox 2 inches large centered, and a growing matrix beneath it. on the left, 1 inch large. At run time the matrix will grow and the title will be pushed aside. And this may cause blank pages.
    A workaround is to create 1 rectangle per object. The rectangle should occupy all the body space available while objects occupy only a part of their embedding rectangle."
    Carla
    Carla Sabotta

Maybe you are looking for

  • Ipod stuck in lock mode and won't connect to Windows computer

    My Ipod is stuck on the lock position and won't connect to my computer when I plug it in. The hold switch moves back and forth just fine and it was working perfectly yesterday. It's the classic nano that's square. It's stuck on a song that I used as

  • How to support 30+ clients using weblogic5.1 with hpux11.0

    Hi,all I am using weblogic 5.1 in hp ux 11.0, and we are doing stress test , with little numbers (<20)clients, it can work properly,but when the client number increase to nearly 30, the speed is very slow,and then weblogic server hangs. we are using

  • OSTC Query Not Showing Correct Percent If Component is Changed

    Hello gurus and experts...here is an interesting question: Question:  Why does a query not report proper Sales Tax Code percentage from OSTC table when a component is updated? Sales Tax Code (STC) of CA-37B, with a rate of 10.25% is made up of three

  • Things Missing in C2-02

    Bought this phone,is reasonably good for its price,could be better if the following issues were taken care of. 1)Touch Screen- While messaging there is no option to write with the on-screen keypad. 2)Brightness cannot be changed, 3)Music player. no o

  • How to add azerbaijan language to sap portal

    how to add new azerbaijan language to sap portal?İ want step by step configuration .Thanks advance