How to resize column width in report?

hi all,
i read somewhere here that in order to resize column width in a report, you need to go to report attributes, then edit the column you wish to resize and then go to the CSS Style and place something like "width=600px". while this works very well in Internet Explorer, it somehow has no effect in Firefox 3.0. is there a way to make it work both browsers?
thanks
allen

Hi,
Sorry, I misunderstood. There are several methods you could use:
1 - Use the span tags around the data itself - this would require adding the tags into the sql statement itself
2 - Use javascript to set the column widths by adding a style to the TD tags for each cell
3 - Create a new Report Template and use COL tags immediately after the TABLE tag in the Before Rows section to specify the widths of all columns
Option 3 may be the easiest?
Andy

Similar Messages

  • How to controll column width in report ?

    Dear All,
    i have created Classic Report but here Column width is too large.
    i want to controll column width in report .
    How can i do this..
    Thanks

    Hi Vedant,
    There are two possibilities in your case.
    1.width of your column heading is too large.
    include break in your column heading
    for ex .. column heading is employee department number then write it as *[Employee(br)Department(br)Number]* // replace ( with < and ) with > in br
    2) Value is too large
    Go to Report Attributes->edit your column->column formatting->css style
    In CSS style put this display:block;width:100px;white-space:wrap
    Hope this will helps you,
    Thanks,
    Jitendra

  • How to set column width in alvgrid

    hi
    how to set column width in alvgrid.
    thanks.

    Hi,
    Check this,
    REPORT  ztest.
    DATA: BEGIN OF i_scarr_tab OCCURS 0.
            INCLUDE STRUCTURE  scarr.
    DATA: END OF i_scarr_tab.
    DATA: i_scarr LIKE TABLE OF i_scarr_tab WITH HEADER LINE,
          w_scarr LIKE LINE OF i_scarr_tab.
    DATA: o_grid      TYPE REF TO cl_gui_alv_grid,
          o_container TYPE REF TO cl_gui_custom_container.
    DATA: lt_fcat     TYPE lvc_t_fcat,
          ls_layo     TYPE lvc_s_layo,
          ls_sort     TYPE lvc_s_sort,
          lt_sort     TYPE lvc_t_sort,
          ls_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    START-OF-SELECTION.
      CALL SCREEN 9000.
    *&      Module  status_9000  OUTPUT
          text
    MODULE status_9000 OUTPUT.
      SET PF-STATUS '9000'.
      SET TITLEBAR '9000'.
    ENDMODULE.                 " status_9000  OUTPUT
    *&      Module  user_command_9000  INPUT
          text
    MODULE user_command_9000 INPUT.
      CASE sy-ucomm .
        WHEN 'BACK' OR 'EXIT'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " user_command_9000  INPUT
    *&      Module  init_9000  OUTPUT
          text
    MODULE init_9000 OUTPUT.
      IF o_container IS INITIAL.
        SELECT * FROM scarr INTO CORRESPONDING FIELDS OF TABLE
           i_scarr UP TO 100 ROWS.
        IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    Create a custom container control for ALV Control
          CREATE OBJECT o_container
              EXPORTING
                  container_name = 'CONTROL'.
    Create a ALV Control
          CREATE OBJECT o_grid
              EXPORTING i_parent = o_container.
          PERFORM build_field_catalgue.
          ls_layo-sel_mode = 'A'.
          CALL METHOD o_grid->set_table_for_first_display
            EXPORTING
              i_save          = 'A'
              i_default       = 'X'
              is_layout       = ls_layo
            CHANGING
              it_outtab       = i_scarr[]
              it_fieldcatalog = lt_fcat
              it_sort         = lt_sort[].
        ENDIF.
      ENDIF.
    ENDMODULE.                 " init_9000  OUTPUT
    *&      Form  build_field_catalgue
          text
    -->  p1        text
    <--  p2        text
    FORM build_field_catalgue .
      DATA: ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-cprog
          i_internal_tabname     = 'I_SCARR_TAB'
          i_structure_name       = 'SCARR'
         i_client_never_display = 'X'
        CHANGING
          ct_fieldcat            = ls_fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
        MESSAGE 'FCAT Error' TYPE 'I'.
        EXIT.
      ENDIF.
      LOOP AT  ls_fieldcat.
        CLEAR ls_fcat.
        ls_fcat-fieldname = ls_fieldcat-fieldname.     "Fieldname
        ls_fcat-ref_table = ls_fieldcat-tabname.       "DDIC ref struct
        ls_fcat-inttype   = ls_fieldcat-inttype.       "Data type
        ls_fcat-outputlen = ls_fieldcat-outputlen.     "Column width
        ls_fcat-coltext   = ls_fieldcat-seltext_m.     "Column Header
        ls_fcat-seltext   = ls_fieldcat-seltext_m.     "Column Desc
        ls_fcat-ref_field = ls_fieldcat-ref_fieldname. "Reference field
        ls_fcat-ref_table = ls_fieldcat-ref_tabname.   "Reference table
        CASE  ls_fieldcat-fieldname.
          WHEN 'LUGGWEIGHT' OR 'FORCURAM'.
            ls_fcat-edit      = 'X'.
            ls_fcat-do_sum    = 'X'.
          WHEN 'URL'.
            ls_fcat-no_out = 'X'.
          WHEN OTHERS.
            ls_fcat-edit      = ' '.
            ls_fcat-do_sum    = ' '.
        ENDCASE.
        APPEND ls_fcat TO lt_fcat.
      ENDLOOP.
    ENDFORM.                    " build_field_catalgue
    check the programs bcalv_grid*.
    check this link for more detailed example.
    http://www.supinfo-projects.com/fr/2005/alv_display_fr/2/
    Regards
    Sruthi

  • Resize column width for JTable without column headers?

    Hi,
    I find that for me to resize columns of a JTable by using
    mouse dragging, I MUST have column headers and then drag
    column headers to resize them. Is my understanding correct?
    Actually, I need to have a table without header columns.
    How can I use mouse to resize column width by dragging?
    The background for this request is that I am putting a
    complex table as another table's column header and I hope to
    be able to resizing the complex table by mouse dragging.
    Thanks very much,
    David

    Hi,
    I think you have mistake there. Try
    <style type="text/css">
    table.apexir_WORKSHEET_DATA td {
    white-space:nowrap !important;
    td[headers="DESCR"] {
    width:300px !important;
    max-width:300px !important;
    #apexir_DESCR {
    width:10px;
    max-width:300px !important;
    </style>And you can try add
    table.apexir_WORKSHEET_DATA {
    width: 100% !important;
    table-layout: fixed !important;
    }Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Resize column width in ALV

    How can we resize column width in WebDynpro ALV same as in SAPGUI?

    Hi Khandal,
    Thomas has said about the same resizable feature in this [thread|Adjusting Column width on Web Dynpro ALV;.
    "That functionality is there in 7.0 Enhp1. It works for standard tables and ALV. You only have to set the fixedTableLayout property to True. Here is a video of it:
    [http://www.flickr.com/photos/tjung/2806011790/|http://www.flickr.com/photos/tjung/2806011790/] "
    Regards,
    Uday

  • How to save column widths in tag monitor and tag config editor?

    how to save column widths in tag monitor and tag config editor?

    The attached example may help.
    After launching the editor, I locate a reference to the front panel control named "Tag List".
    This is type cast as a multicolumn list box which then allows me to increment through all of the cells and set the widths as i go.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Set_Width2.vi ‏60 KB
    SET_WIDTH.JPG ‏94 KB

  • How to fix column width in a report

    Hi all,
    i have to set the width of a column of a report of mine fixed and to have text wrapping inside of it.
    i would prefer to avoid to modify the theme (that might involve other item) and i wanna work just on that report.
    i've tried to create a new template (Report Region Wrap) and i guess i'm supposed to set something like:
    SPAN STYLE="white-space:nowrap"
    but i don't know where...
    This is the "definition" of my template:
    <table cellpadding="0" cellspacing="0" border="0" summary="" class="t9GCCReportsStyle1" id="#REGION_ID#">
    <tr>
    <td valign="top">
    <table width="100%" cellpadding="0" cellspacing="0" border="0" summary="">
    <tr>
    <td class="t9RegionHeader">#TITLE#</td>
    <td class="t9ButtonHolder">#CLOSE#   #PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##HELP#</td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td class="t9Body">#BODY#</td>
    </tr>
    <tr>
    <td class="t9RegionFooter"></td></tr>
    </table>
    i've already tried putting it in <td class="t9Body" ... > but with no results.
    thankx a lot,
    matte

    I had the same problem and searched the forum I came up with the following conclusions.
    </div>
    </div>
    The ability to use the CSS is determined in the template.
    The template must allow wrapping for this to work.
    </div>
    </div>
    I got my columns (columns of varchar2(500) the wrap and split words at white space.
    </div>
    </div>
    I added</div>
    </div>
    <style>
    </div></div>
    .t12data{white-space:normal !important;}</div></div>
    .t12dataalt{white-space:normal !important;}</div></div>
    </style></div></div>
    to the Page / HTML header
    </div>
    </div>
    and added
    </div>
    (removed < for formatting)div style="width:100px; white-</div>space:normal">#column_name#</div(removed > for formatting)
    </div>to column_formatting / html_expression
    </div>where 100 is the pixel with
    </div>and column_name is name of the souce item
    </div>I am using theme12 (blue) / report Standard, Alternating Row Colors
    </div>and didn't want to change the template as it is being used in other apps.
    Message was edited by:
    rbackmann1
    null

  • Controlling Column Width in Report Region

    I have a report region based on a simple select statement. I'd like the table to be the full width of the region and I'd like the columns to be spaced evenly so that they are also the full width of the region. I have figured out how to set the table width via Report Attributes Substitution, but I am unable to set the column width. Any help would be greatly appreciated.
    Mark

    Hi take a look into this post:
    Translated in English:
    http://translate.google.de/translate?sl=de&tl=en&js=n&prev=_t&hl=de&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.apex-at-work.com%2F2010%2F08%2Fsilbentrennung-hyphenation-in-apex-ger.html
    Code must be extracted from Original post:
    http://www.apex-at-work.com/2010/08/silbentrennung-hyphenation-in-apex-ger.html
    This could be also interesting for your:
    http://www.apex-at-work.com/2010/03/automatic-linebreak-if-word-breaks-out.html
    Tobias
    http://apex-at-work.com

  • Change column width in report

    After creating a report using table 'dept', I have updated that dept table and increased the width of the column dname from 14 to 20. I would like to know how to change the width of the dname column in the report that I created earlier so that it can now show 20 characters. Thanks.

    fsidrak wrote:
    I am working on report builder 6i reports. I want to increase the width of a column X in a report in runtime depends on the
    value of a certain column Y in the same report.Hi fady,
    Try to accomplish this by setting Horizontal Elasticity properties.
    Hope this helps
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.*

  • How to autosize column widths in Mail?

    One of the nice features in Windows that I can't seem to find in OS X is the ability to quickly auto adjust the column widths.
    In Outlook, you can either double click one column heading divider to adjust that column's width, or double click the furthest (to the right) column heading divider and all of the columns adjust their width for best viewing.
    In Mail, I have to drag each of the column dividers to adjust the width.
    If I resize the Mail window, I need to adjust them again.
    I haven't been able to find an easy way to do this.
    Does this feature exist in Mail?

    haroldo1 wrote:
    One of the nice features in Windows that I can't seem to find in OS X is the ability to quickly auto adjust the column widths.
    In Outlook, you can either double click one column heading divider to adjust that column's width, or double click the furthest (to the right) column heading divider and all of the columns adjust their width for best viewing.
    In Mail, I have to drag each of the column dividers to adjust the width.
    If I resize the Mail window, I need to adjust them again.
    I haven't been able to find an easy way to do this.
    Does this feature exist in Mail?
    no. you have to adjust the column widths individually by hand.

  • How to highlight columns in the report

    Hi,
    I have two tables/views with same structure, one is with old data and one is with new data (there may be one or more changes in the column for a row). My application has to generate a report comparing these two tables/views and display only changed rows with older row first and then below that new one.
    Ok my query is how can i "Highlight" the columns in the report those have been changed from old values.
    I want to "Highlight" only new data columns.
    Also if you can guide me in query how to compare these two tables/views.
    Regards,
    Smith

    Hi,
    I think you can do this with a single SQL statement and a custom "Row Template" for the report. Something like: [http://apex.oracle.com/pls/otn/f?p=267:83] - if that is the sort of thing you mean?
    Andy

  • How to increase column width in Table Maintanance (SE56)

    Hi,
    Can somebody tell me how I can adjust the column width permanently in SE56, so that when I use SM30 to enter data, the columns
    correctly adjusted.
    Thanks,
    mini

    Go to SE80 > Select Function Group > Enter your FG... select your Screen..
    Open the Screen Painter.. change the width of the required column.
    Regards,
    Naimesh Patel

  • How to control column width in table?

    I have a table with four columns, and they are all with same width.
    But I want to make one of them wider.
    How should I do?
    public void loadTable(){
    Vector infoList = myObj.getInfoList();
    Info info;
    DefaultTableModel dtm = (DefaultTableModel)myPanel.tblList.getModel();
    String[] columnNames = {
    "wider column",
    "Column B",
    "Column C",
    "Column D"};
    dtm.setColumnIdentifiers(columnNames);
    for(int i=0;i< infoList.size();i++){
    // add stuff to "data"
    dtm.addRow(data);
    myPanel.tblList.setModel(dtm);
    myPanel.tblList.getColumnModel().getColumn(1).setWidth(100);
    I also tried setPreferedWidth(), not working for me either.
    What should I do?
    Thank you

    Try setting all the column widths. Define values for normal and width columns:
            DefaultTableColumnModel tcModel = (DefaultTableColumnModel) myTable.getColumnModel();
            Enumeration columnEnum = tcModel.getColumns();
            while (columnEnum.hasMoreElements()) {
                TableColumn column = (TableColumn) columnEnum.nextElement();
                if (column.getModelIndex()  != 1) {
                    column.setPreferredWidth(narrowWidth);
                } else {
                    column.setPreferredWidth(wideWidth);
    Cheers
    DB

  • How to set column widths in tables for selected table only, not globally throughout document?

    I've been utilizing the below script (thank you so much Ramkumar. P!) to set column widths throughout a sizable InDesign book with tables on every page and it is truly a time saver. At this point in time, I have three versions of it because there are different column widths throughout the book. Is it possible to augment the script to run only on a selected text frame (containing a table)? If so, would someone be kind enough to share the augmented script with me? I've been trying to figure out this seemingly simple change through trial and error with no success as yet. I realize this is a totally newbie request and I'm entirely at the mercy of the kindness of the Javascript gods that contribute within this forum. Seeing that in a different post related to this script, one such guru responded to a request as simple as "Where do I put the scripts in InDesign" gave me enough courage to ask for some help! Thank you in advance to anyone willing to provide a solution.
      var myDoc = app.activeDocument;
         var myWidths = [100, 100, 150, 150];
         for(var T=0; T < myDoc.textFrames.length; T++){
             for(var i=0; i < myDoc.textFrames[T].tables.length; i++){
                 for(var j=0; j < myWidths.length; j++){
                     myDoc.textFrames[T].tables[i].columns[j].width = myWidths[j];
         alert("Table width updated successfully...");

    Hello all
    I have the same problem in that I'm not a scripting person, but was able to get the above script working without problem, and it does set irregular table column widths perfectly, so thanks to Ramkumar. P for that.
    BUT, it changes the column width for ALL tables in the document, whereas I would like to just target the selected table.
    Any ideas as to how I might amend this script to achieve this?
    Thx, Christian

  • How to set column width in GridPane in FXML?

    I would like to set width, for ex, of column 4 in GridPane.
    I can do like this:
    <columnConstraints>
                <ColumnConstraints prefWidth="100"/>
                <ColumnConstraints prefWidth="200" />
                <ColumnConstraints prefWidth="200" />
                <ColumnConstraints prefWidth="200" />
    </columnConstraints>If i have 10 columns should i add 10 column constraints? (i need to set only width of 4th column)
    How can i do it easier?

    >
    Hi, Can someone please help on how to set the columnwidth in csv file using javacode.
    I used FileWriter class to upload data into the csv file but csv file is taking default width while showing content. Is there a way to set the fixed column width or set width dinamically based on value?
    >
    The fields in CSV (Comma-Separated-Value) files are separated by commas; they do not have a fixed width.

Maybe you are looking for

  • Case statement and Decode function both are not working in Select cursor.

    I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. On the other hand both the things work in just select statement. See the first column in select (PAR_FLAG), I need to have this evaluated

  • Transporting Appraisal Template in Predefined Performance Management

    Hi all I have created a transport for Category and Appraisal Template through transcation PHAP_CATALOG by right clicking onto the Object and selecting Transport. After creating the transport I have successfully transported it in the QAS. Now, in QAS

  • Photoshop Elements 11 Download Question

    If I buy the Photoshop ELements 11 Download, meaning no hard copy is being sent to me in the mail, can I download it on my two computers? I own both a desktop and a laptop.

  • Converting the layout from OTF format into PDF

    Hi Experts, I am new to SMART FORMS,I don't have a clue about how to convert the layout from OTF format into PDF format and how to store it in Presentation server. Please send me a Model program or step by step approach of the same. Useful inputs wil

  • FaceTime camera low quality, not recognising screen flash.

    Sorry if this has been mentioned previously in another thread. But is anyone else experiencing this from their MacBook Pro? I have an early 2013, Retina MacBook Pro that I purchased at MacMall in March. Since I purchased the laptop, I have noticed th