Problem in alignment in TableHeader

i'm facing a problem in JTable Headers
i wanne to set the direction for the text in the header from top to bottom.
as headers in word processing system.
Thanx for help

i hope u'll understand meI do, that's why I strongly invite you to follow Sebastiaan's suggestion of writing your own custom header renderer. You have to choices :
- either you make it subclass JTextArea and make sure you insert "\n" after each letter of your title
- or you make it subclass JLabel and use html tags around your title and <br> tags between your letters.

Similar Messages

  • Problem in aligning dynamic UI with the static UI

    Hi All,
    I have problem in aligning dynamic UI with the static UI, I am using Matrix layout.
    Static fields are spread over 2 colums and 3 rows:
    lableA SPACE input field SPACESPACE lable B SPACE input field
    lableC SPACE dropdown SPACESPACElableD SPACE dropdown
    lableE SPACE dropdown SPACESPACElableF SPACE dropdown
    Now when a value is selected in C, than E becomes visible, and depending on the values selected in E, there are dynamic UI generated, i.e dynamic lables and depending on some validation it will be either a dropdowns or input fiels or both.
    at run time screen is like this:
    lableA SPACE input field SPACESPACE lable B SPACE input field
    lableC SPACE dropdown SPACESPACElableD SPACE dropdown
    lableE SPACE dropdown SPACESPACElableF SPACE dropdown
    dynaSPACEdropdown
    dynbSPACEinput field
    if I change my selection in E than layout looks like:
    lableA SPACE input field SPACESPACE lable B SPACE input field
    lableC SPACE dropdown SPACESPACElableD SPACE dropdown
    lableE SPACE dropdown SPACESPACElableF SPACE dropdown
    dynaSPACESPACEdropdown
    dynbSPACESPACEinput field
    Requirment: I need all the lables as well as dropdown/ input fiels in line with the static fields irrespective of my selection in E.
    Something like this:
    lableA SPACE input field SPACESPACE lable B SPACE input field
    lableC SPACE dropdown SPACESPACElableD SPACE dropdown
    lableE SPACE dropdown SPACESPACElableF SPACE dropdown
    dyna   SPACEdropdown
    dynbSPACESinput field
    dyncSPACESdropdown
    All this elements are in a group and that group has 2 transparent containers, 1 for static and for holding dynamic UI.
    I tried playing with the container properties, and also tried fixing width of dynamic UI but still the alignment issue is encountered.
    Can U guys plz give in ur valuable inputs as i need to fix this urgently.
    Regards,
    JJ

    Hi Armin,
    Can you please elaborate your solution ?, I do not have an idea of InvisibleElement & IWDView.resetView() ,
    If you can give me the exact pointer than it would be great and a good learning exp. for me.
    Thanks for the action assignment part, it worked.
    if (wdContext.nodeMaterialClass().size() > 0 && wdContext.currentContextElement().getActionMatCls()) {
         if (wdContext.currentMaterialClassElement().getMaterialClass_Description() != null || !wdContext.currentMaterialClassElement ().getMaterialClass_Description().equalsIgnoreCase(" ")) {
               IWDGroup Searchgroup = (IWDGroup) view.getElement("DynGroup");
    Searchgroup.destroyAllChildren();
    view.getContext().reset(false);
                                                      for (int i = 0; i < wdContext.nodeMaterialCharateristcs().size(); i++) {
                                  //this for label
         IWDLabel CharLabel = (IWDLabel) view.createElement(IWDLabel.class, "label" + i);
         CharLabel.setText(wdContext.nodeMaterialCharateristcs().getMaterialCharateristcsElementAt(i).getDescr_Char());
         CharLabel.setDesign(WDLabelDesign.EMPHASIZED);
         CharLabel.createLayoutData(MatrixHeadData.class);                              CharLabel.setWidth("154px");                              Searchgroup.addChild(CharLabel);
                 further there are conditions to create either dropdown or input field
    Can you please point where and how to apply your solution.
    Regards,
    JJ

  • Problem with align element.

    Hi everybody,
    i have a problem with align element on my page. I explain:
    i have used into a panel page a panel group to align my element horizontal, but when i set the vertical-align on top, the element are align in middle.
    Now is......
    text text text text text text
    text text text text text text
    text text text text text text
    text text text text text text tablelayout
    text text text text text text
    text text text text text text
    text text text text text text
    But i wont........
    text text text text text text tablelayout
    text text text text text text
    text text text text text text
    text text text text text text
    text text text text text text
    text text text text text text
    text text text text text text
    Thanks.

    Have you tried using a panelHorizontal instead of a panelGroup?
    The components are automatically laid out horizontally and it has a Valign property that you can set to top.

  • Problem with align and Selection Tool.

    This is a weird problem which I cannot explain at all.
    I am using AI CS3 with Windows XP.
    I am having this completely random problem with the selection tool and align pallette I cannot explain.
    I have a group of objects and groups of objects I am trying to use the align pallette on.
    Sometimes when I select all of the items I want to align, either by shift-clicking each one, or by drag-selecting them I am getting a random behavior where sometimes the align button will move all of the objects COMPLETELY off of the artboard, all the way to the edge of the working area and beyond into the grey area you cannot see.
    Normally, this would be caused by a stray point somewhere way off-screen or some other cleanup oriented thing on my part. However in this case, the behavior is random and does not happen every time I hit the align button.
    Sometimes it takes items within my grouped objects (lines of text) and moves THEM completely off the work area, leaving the other items in the groups in place. Sometimes the bounding box when I drag-select the items will stretch extremely far off of the work area.
    I have even dragged the extra large bounding box, bringing the edge that was once way off screen onto the work area, in outline view, in hopes of finding the stray point or object that could be causing this. However NOTHING appears that can be causing the align to throw all of my objects off-screen.
    The random nature of this behavior and the way it sometimes affects my text objects inside of groups leads me to believe it is a program bug and nothing I am doing.
    The behavior takes place regardless if I select by dragging or by shift-clicking, and is happening in more than one file, also randomly.
    Also, choosing "align to art board" vs. "align to crop area" does nothing to change this behavior.
    It is quite irritating. I've been using illustrator since v.88 so I have enough experience to know this is not normal.
    Any help with this one would be greatly appreciated.

    When this behaviour occurs, are perhaps guides included in your selection?

  • JSpinner problems with alignment of text

    I experience problems with the alignment of the text within the spinner. I read a few topics on this forum. Many answers point to the solution of grabbing the JFormattedTextField from the spinner and call the setHorizontalAlignment(int) method. Seems hat doesn't work for me.
    Here is the code I wrote:
    SpinnerDateModel dateModel = new SpinnerDateModel();
    JSpinner dateSpinner = new JSpinner(dateModel);
    JSpinner.DateEditor dateEditor = (JSpinner.DateEditor)dateSpinner.getEditor();
    JFormattedTextField tf = dateEditor.getTextField();
    tf.setHorizontalAlignment(JFormattedTextField.RIGHT);
    maybe I am missing something. Please help!
    Thank You in advance.

    I'm not sure if this is the solution, but the getTextField() Method should be called on a JSpinner, rather than a SpinnerDateModel. I took this Method from the Swing Tutorial and made it static, so i could use it anywhere:
    public static JFormattedTextField getTextField(JSpinner spinner) {
              JComponent editor = spinner.getEditor();
              if (editor instanceof JSpinner.DefaultEditor) {
                   return ((JSpinner.DefaultEditor)editor).getTextField();
              } else {
                   System.err.println("Unexpected editor type: "
                                          + spinner.getEditor().getClass()
                                          + " isn't a descendant of DefaultEditor");
                   return null;
         }Besides, setting an Editor for this JSpinner is not neccesary, because it is chosen automaticaly. You only need to do so if you have implemented a custom SpinnerModel.
    Hope this was any help...

  • CS5 problems with aligning to key object?

    I use guides as key objects for alignment no problem in CS4 for Mac, but in CS5 the objects just fly off somewhere not visible anywhere in file. I've checked prefs but can't see anything that would create this behavior, and Aligning to Pixel Grid does not seem to matter. Still works fine in CS4. I could draw a line to align to as a work around, but this would be tedious. Aligning to selection and artboard is working correctly. Has anybody else noticed this or know what could be causing it? Thank you in advance for your help.

    forgot about the Preview Bounds but still in all if you need the option then this is nasty, I also forgot this is so old and issue.
    Really should be addressed in a point release or ext version.
    If there were someone here who could argue the issue to the right people it might be meaningful.

  • Continuing problem with alignment

    It is a mystery to me why this problem returned. You can see in the link below that the tops of the Main Content and the Sidebar are not aligned with each other. I had this fixed by adding the overlap:hidden rule to the menubar#1.
    http://www.openrangeimaging.com/Test/Gravity-Test/index.html
    Then I made the sidebar have round corners. The problem returned. I'm starting to think it may be demonic possession. I have tried all sorts of stuff with the css but just cannot get the MainContent to move up to be aligned with the top of the Sidebar.
    I can add 15px top margin to the Sidebar1 and that moves it down into alignment with the Main Content. (15px is the size of the round corner images that make up the corners of the Sidebar. Coincedence?)  It looks ok but it doesn't seem quite right. I'm going to have some of the pages have 2 equal size columns and some 1 large column, may even have a 3 column page. I got the feeling that having to add the top margin to one and not the other is going to cause problems.
    Additionally if you click on some of the links to the other pages that I made from the template page prior to adding the round corners you can see that the MainContent moves up to where it should be. (I guess those pages haven't changed to reflect the updated template that they are based on because the Sidebar and MainContent are editable regions in the template?)
    Any suggestions on how to fix this? As always thanks for any help

    markf12 wrote:
    It is a mystery to me why this problem returned. You can see in the link below that the tops of the Main Content and the Sidebar are not aligned with each other. I had this fixed by adding the overlap:hidden rule to the menubar#1.
    http://www.openrangeimaging.com/Test/Gravity-Test/index.html
    Then I made the sidebar have round corners. The problem returned. I'm starting to think it may be demonic possession. I have tried all sorts of stuff with the css but just cannot get the MainContent to move up to be aligned with the top of the Sidebar.
    I can add 15px top margin to the Sidebar1 and that moves it down into alignment with the Main Content. (15px is the size of the round corner images that make up the corners of the Sidebar. Coincedence?)  It looks ok but it doesn't seem quite right. I'm going to have some of the pages have 2 equal size columns and some 1 large column, may even have a 3 column page. I got the feeling that having to add the top margin to one and not the other is going to cause problems.
    The alignment issue is being cause by the 'commented out' section of code below:
    Change from this:
    <!--<div id="sidebar1">
      <h3>GRAVITATION</h3>
        <p>Write store specials and other content in this space. To be updated on a semi-regular basis </p>
        <p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, </p>
        <!-- end #sidebar1 -->
    <!-- </div>-->
    To this:
    <!-- <div id="sidebar1">
      <h3>GRAVITATION</h3>
        <p>Write store specials and other content in this space. To be updated on a semi-regular basis </p>
        <p>Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, </p>
        </div> -->

  • Problem in Alignment - Adobe Forms

    I am new to Adobe forms technology.
    I have an production issue: When they run a standard report to generate a PDF pay stub in R/3, it looks fine with all the columns. But when the same pay stub is viewed though our ESS on portal (Company website), few values in the columns are good but few of them are not aligned. They are moved to the left.
    So what can be the problem?
    What are the things I need to check?
    How do I see the Adobe form? How is the adobe form being passed to the portal?
    Thanks
    Kiran
    Edited by: kiran dasari on Jan 23, 2009 2:08 AM

    Few fields have reference to table XBT. But when I see this in SE 11, such a table is not existing at all.
    Can any of you share some ideas or clues?
    Thanks in anticipation.
    Regds,
    Kiran
    Edited by: kiran dasari on Jan 26, 2009 7:53 AM

  • Problem whit aligning in CS6

    i can't align objects to anything, i zoom in on the object and try to align it to either perspective grid, grid, rulers and it bounces off to another posititon, just a few pixels off where i try to snap it.
    also, whit "smart guides" on, i can't even create a square that fits the entire artboard! i doesnt snap all the way and leaves a tiny space blank! THIS IS RIDICILOUS how and why the hell is this happening?
    im using CS6, all "snap to" options are off, ive searched in the forums and tried messing whit the settings as indicated and nothing seems to fix this problem
    this is not the first time that this is happened and its effin up my work EVERY TIME, i have to spent 2-3 hours extra on every work trying to get around the problem and its quite honestly unacceptable coming form such a big known program/company.
    is there any solution to this? if a dont find a solution im gonna have to change to another program beacuse this is just plain stupid, i cant believe such little and very crucial thing its not working on illustrator

    ive tried whit align-to-pixel-grid on and off and it's still trowing my anchors wherever it feels like.
    heres a video, im trying to center te top of this tower, and it doesn't let me, it just bounces away from where i try to put it
    https://www.dropbox.com/s/okt8xdpbd6e1ph4/AiCS6%20.mov
    please help

  • Having problems when aligning footer div and content div close together, in the browsers they are wi

    My problem is when I paste text or paste anything in div tag. I have a container that contains everything. I have a content div that contains content. I also have a footer. When I align the footer at the end to content div which is in the container, it looks good until I look at it in a the different browsers, the content and footer are so wide apart. I've tried everything I could to make the browsers look as close as what I do in dreamweaver cs4. Is there a solution to this problem?
    This is the link to page working on.
    http://www.nlclv.org/truenewwebsite/html/doctrine.htm
    The footer and content div are align very close in dreamweaver but very far apart in the browsers.
    Also if you click on this link and click on calendar of events page you will see the samething.
    Thanks for your help.

    Absolutely positioned divisions are NOT a good primary layout method. Here's why:
    http://www.apptools.com/examples/pagelayout101.php
    You should use a CSS with default CSS positioning (which is no positioning at all).  And then use margins, padding and floats to align elements on the page.  Also, if you want the page height to flex to content (as it should), remove the height property from divisions containing text.
    Something like this:
    http://alt-web.com/TEMPLATES/2-col-fixed-flash-holder.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Problem - Table Alignment

    Hi,
    For some reason, when I am creating a table I cannot centre
    it without is dropping a long way down the page. It will align left
    and right without any problem, but each time I try and choose
    'align centre', the same problem occurs.
    I have tried several pages, some derived from different
    templates and other that are 'standard' pages, and the problem
    seems to be the same.
    Oddly, I just tried the exercise in the 'Main Content'
    section of a page, and the table dropped down the page as soon as I
    hit 'centre', but the same page has a table in the 'Header'
    section, which I was able to centre without a problem!
    I have attached the code.
    Any help would be greatly appreciated.
    Regards,
    Nigel

    In the code you supplied you have <div
    id="mainContent"> with no closing
    </div> tag. It would appear that the mainContent div is
    a wrapper, so
    centering on the cage would be done with it.
    width:500px;
    margin: auto;
    Set the width to whatever you want but it must be specified.
    "Col Mustard" <[email protected]> wrote in
    message
    news:goj759$itc$[email protected]..
    > Hi,
    > For some reason, when I am creating a table I cannot
    centre it without is
    > dropping a long way down the page. It will align left
    and right without
    > any
    > problem, but each time I try and choose 'align centre',
    the same problem
    > occurs.
    > I have tried several pages, some derived from different
    templates and
    > other
    > that are 'standard' pages, and the problem seems to be
    the same.
    > Oddly, I just tried the exercise in the 'Main Content'
    section of a page,
    > and
    > the table dropped down the page as soon as I hit
    'centre', but the same
    > page
    > has a table in the 'Header' section, which I was able to
    centre without a
    > problem!
    > I have attached the code.
    > Any help would be greatly appreciated.
    > Regards,
    > Nigel
    >
    > <div id="mainContent">
    > <table width="100" border="0" align="center"
    cellpadding="5"
    > cellspacing="0">
    > <tr>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > <tr>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > <td> </td>
    > </tr>
    > </table>
    > <p><br />
    >

  • Problem with aligning buttons with background image.

    Dear all,
    Just an introduction, I am a newbie to dreamweaver and currently hopelessly lost in solving some problems, and wish to seek your advice and help here.
    I am creating a webpage with a background that shows a line across near the top of the site. I placed an image with the line as background under the page properties. I am placing buttons on that line, so when I mouse over the buttons, the part of the line above the buttons will darken, showing that the button has been selected.
    The image of the buttons include the darken lines and the words. I can align the button lines with the background line when viewing the site in 100%, but on other resolutions or if I zoom in 125% or 150%, the lines are not aligned.
    Here is a picture of my dreamweaver working area, where I manually adjust the buttons to align with the background line. The button lines are already not aligned here, but they look aligned on site in 100%.
    [IMG]http://i1126.photobucket.com/albums/l614/artbox11/pic1.jpg[/IMG]
    Here are how the lines look at 150%. The arrows show where the button lines are not aligned with the background image line.
    [IMG]http://i1126.photobucket.com/albums/l614/artbox11/pic2.jpg[/IMG]
    Can anyone advise how I can align the button lines with the background image line so that whichever resolution I view the lines will be aligned from side to side? Any tips and advice will be greatly appreciated, as I have been looking around DW for a day now and cannot find out how to fix this.
    Thank you!!

    Dear Murray, thank you for offering to help, much appreciated.
    Here are my codes. I did not write any of the codes though, I just use the design tab and built tables and insert images.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Metamorfic</title>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <style type="text/css">
    <!--
    body {
    background-image: url(Metamorfic%20Site%20Files/BG.jpg);
    .style3 {font-size: xx-small}
    -->
    </style>
    <script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
    </head>
    <body onload="MM_preloadImages('Metamorfic Site Files/Button - About 2.jpg','Metamorfic Site Files/Button - Contact 2.jpg')">
    <table width="800" border="0" align="center">
      <tr>
        <td> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td height="187"> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td width="116" height="32"> </td>
        <td width="552"> </td>
        <td width="110"> </td>
      </tr>
    </table>
    <table width="1100" height="50" border="0" align="center">
      <tr>
        <td width="1094" height="46"><table width="672" height="34" border="0" align="center">
          <tr>
            <td width="666" height="30" align="center" valign="bottom"><img src="Metamorfic Site Files/Button - About 1.jpg" width="122" height="28" id="Image3" onmouseover="MM_swapImage('Image3','','Metamorfic Site Files/Button - About 2.jpg',1)" onmouseout="MM_swapImgRestore()" /><img src="Metamorfic Site Files/Button - Contact 1.jpg" width="110" height="28" id="Image6" onmouseover="MM_swapImage('Image6','','Metamorfic Site Files/Button - Contact 2.jpg',1)" onmouseout="MM_swapImgRestore()" /></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="800" border="0" align="center">
      <tr>
        <td height="340"> </td>
      </tr>
    </table>
    <table width="800" border="0" align="center">
      <tr>
        <td width="300" align="center" valign="middle"> </td>
        <td width="25" align="center" valign="middle"> </td>
        <td width="25" align="center" valign="middle"> </td>
        <td width="25" align="center" valign="middle"> </td>
        <td width="25" align="center" valign="middle"> </td>
        <td width="25" align="center" valign="middle"> </td>
        <td width="25" align="center" valign="middle"> </td>
        <td width="25" align="center" valign="middle"> </td>
        <td width="25" align="center" valign="middle"> </td>
        <td width="300" align="center" valign="middle"> </td>
      </tr>
    </table>
    <p> </p>
    </body>
    </html>

  • Output display problem in alignment

    i am displaying vendor wise purchase register details in my output  i have many line items per each vendor.
    i want to display vendor wise line items.
    suppose AFTON CHEMICALS is coming 10 times in the output i want to display this  with all line items.
    example..
    NAME                           AMOUNT  BILLNO
    AFTON CHEMICALS       10000      AS105
    MUMBAI
    400078
    AFTON CHEMICALS       20000      AS106
    MUMBAI
    400078
    AFTON CHEMICALS       30000      AS107
    MUMBAI
    400078
    AFTON CHEMICALS       40000      AS108
    MUMBAI
    400078
    AFTON CHEMICALS       50000      AS109
    MUMBAI
    400078
    but now i am getting  output  as below.
    AFTON CHEMICALS      
    MUMBAI                        
    400078                         
                                         10000      AS105
                                         20000     AS106
                                         30000      AS107
                                         40000      AS108
                                         50000      AS109
    I want to display above  output as below
    AFTON CHEMICALS       10000      AS105
    MUMBAI                         20000     AS106
    400078                           30000      AS107
                                         40000      AS108
                                         50000      AS109
    i have written code as following
    loop at output.
    on change of output-name1.
    write:/output-name1,
           /output-name2,
          /output-ort01,
          /output-pstlz.
    endon.
    write:/ output-amout, output-billno.
    Pls suggest me how to display my line items infront of the name1 as i said above.
    Pls suggest me its very urgent.

    Venkat rao,
    Check the sample program for your case. It solves your problem
    REPORT zvenkat_test2.
    DATA:
          BEGIN OF itab OCCURS 0,
             name1 TYPE char25,
             name2 TYPE char25,
             ort01 TYPE char25,
             pstlz TYPE char25,
             amt   TYPE p0008-bet01,
             billno TYPE i,
           END OF itab.
    DO 10 TIMES.
      itab-name1 = 'AFTON'.
      itab-name2 = 'CHEMICALS'.
      itab-ort01 = 'Bombay'.
      itab-pstlz = '400078'.
      itab-amt   = 2000 + sy-index.
      itab-billno = sy-index + 1.
      APPEND itab.
      CLEAR itab.
    ENDDO.
    LOOP AT itab .
      ON CHANGE OF itab-name1." OR itab-name2 OR itab-ort01 OR itab-pstlz.
        RESERVE 4 LINES. """Check this
        WRITE:/ itab-name1,
              / itab-name2,
              / itab-ort01,
              / itab-pstlz.
        BACK.                   """Check this
      ENDON.
      WRITE: /30 itab-amt, itab-billno.
    ENDLOOP.
    Regards,
    Venkat.O,

  • Portal Collection List Renderer - problem with alignment

    Dear All,
    I'm having an issue with alignment of columns when changing a Layoutset.
    This modification is all done with SAP standard components, so I decided to try my luck here first at SDN before writing an OSS message.
    Here's what is happening:
    I want to have the KM files listed like this:
    (as I can't put a printscreen, I will put it on text for you to have an idea)
    FILENAME..................MODIFIED...........................MODIFIEDBY
    ...file1..........................xx/xx/xxxx..........................aaaaaaaa
    Description of file1 here....
    file2.............................xx/xx/xxxx..........................aaaaaaaa
    Description of file2 here....
    file3.............................xx/xx/xxxx..........................aaaaaaaa
    Description of file3 here....
    To obtain this I'm changing the standard object AdminCollectionListRenderer
    I do this by going to KM configuration and change this SAP standar object on
      Collection List Renderer Settings > AdminCollectionListRenderer
        Flavor:
          From: List
          To: Not Set
        Displayed Properties:
          From: rnd:icon,rnd:displayname(contentLink)+rnd:action,contentlength,rnd:lock,modified,modifiedby
          To: rnd:displayname(contentLink),rnd:lock,modified,modifiedby,rnd:description(\[2;1-1\]/noTitle/maxChars=300)
    The result is ok, but there's a very small detail that doesn't disappear no matter what I do.
    If you go to the txt above, the "file1" is ALWAYS one blank space to the right. It's not aligned with the
    other items on the list.
    Has anyone experienced this ?
    Is there any solution ?
    Kindest Regards
    /Ricardo Quintas

    Check in your type preferences. Apply leading to entire paragraphs will fix this. It's likely that the return at the end of your last line has a larger point size assigned to it, and it's throwing your leading off.

  • Having problems in aligning my text in Sapscript...

    Hello Experts,
    I am displaying 4 items in my main window and created a paragraph format with tab
    spacing. Now my problem is this, when one of the variables does not have a value, the items
    on the right of it moves to the left so it misaligns. How can I do it in such a way that
    even though one of the items does not have a value, it will still be in place?
    Thank you guys and take care!

    Hello Experts,
    I have defined my items this way:
    T1    &REGUP-XBLNR&,,&REGUP-BLDAT&,,&LTYC_SGTXT&,,&REGUP-DMBTR&
    And in my TABS, I have the values of 2.20 CM(Left), 2.30 CM(Left) and 14 CM(Decimal).
    The 2.20 CM is for the &REGUP-BLDAT&, the 2.30 CM is for the &LTYC_SGTXT& and 14 CM for the &REGUP-DMBTR&.

Maybe you are looking for