Trouble with column width

Hi,
I'm having trouble changing the width of a column in my SQL Report. I went into Report Attributes and clicked on Edit for the column I wanted, and entered a value for width in column attributes section, but it didn't work. I also tried an html tag, but that didn't work either.
Is there a different way to change the column width that I haven't tried yet?
Thanks,
Nora

I'll jump on the trail of this thread. I'd like to use a substitution string in the CSS Style setting of the Column Formatting section of a report column. I'm attempting to use the <ampersand><period> syntax, but it doesn't appear to be working. I have succesfully used a substitution string in the "Number/Date Format" which is in the same section. Can someone confirm that this is possible or not? I have not seen any threads stating this to be true or not.

Similar Messages

  • Apache FOP Problem with column width

    We are using Apache FOP to generate simple pdf documents out of reports.
    My problem is that the table in the pdf is as standard filled in with columns of same length.
    Further on the content of some table fields is to large or sometimes there is to much room.
    is there any possiblity to let fop react like html?
    The smallest table field size should be like the content. I don't want to adjust all my reports, cause there are really many reports with pdf printing.
    anyone an idea how to solve this with FOP?
    i have no BI pubisher or other reporting engines for this problem
    thx so far

    Oliver,
    I think what you're looking for is having your column width automatically adjusted based on the content of your column values. That is not possible with the built-in, generic XSL-FO template. What you can do is manually adjusting the column width to appropriate values on the print attributes page.
    Regards,
    Marc

  • Crosstab column width in HTML output

    Hi,
    I have problem with column width in a crosstab report with html ouput.
    I can not find a way to control the column width, and the more I try to control this either with word table properties or with xsl attribute, the more messy it gets!
    Now the columns gets superwide and I dont have clue how to control this...
    Ant ideas of how to set the column width in the rtf template fot html output?
    It looks fine with pdf output...
    Br
    Magnus

    Thanks for your tip, but I did not do the trick exactly.
    Can you get help for this in the User guide? I have read it thru without anything...
    Anyway, I couldnt get it right with the Autofit to Window either, I need to set this for specific columns only, but when I do it on the first columns MS Word rearrange the whole table...
    Do you use it on certain columns or the whole table?
    I have to say, I have a quite complex template with several tables within other tables, and this maight mess things up...
    BR
    Magnus

  • Column widths not saving

    Hello,
    We have recently found an issue with column widths e.g When you are in a sales order and you press tab in the item no. field, the list of items comes up. If you go to form settings and choose to group by one of the fields it then shows the items grouped by whatever you chose. If you then change the column widths in this window, e.g for item no. and item
    description and then come out of that screen and go back in, the column widths have gone back to
    how they were oringinally.
    SAP Support have said they have managed to reproduce this in both versions.  Please can I request this to be fixed in a future patch release as it is very important to one of our customers.
    Many thanks,
    Kate

    Post a link to the site, or alternatively copy and paste the
    code in here.

  • JTable column width

    I am having trouble initializing column widths in my JTable.... after I create the table I use JColumn.setWidth(int) to set the width of every column. It doesn't work! the table sets
    default equal widths. Am trying like this :
         if(e.getSource()==column)
         table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);     
    for(int i=0;i<table.getColumnCount();i++)
    table.getColumnModel().getColumn(i).setPreferredWidth(Integer.parseInt(column.getText()));
    modelTable.fireTableStructureChanged();     
         }

    Instead of setPreferredWidth(..), try setMaxWidth(..)
    table.getColumnModel().getColumn(i).setMaxWidth(Integer.parseInt(column.getText()));
    I does the trick for me.

  • Trouble with DataGrid's last column width

    I have a datagrid with thirty columns.
    When I use the mouse to drag the window and resize its size,the last column width becomes more and more wide,and the previous column width is squeezed small.
    If anybody else came accross the same problem,can you share your solution?
    Thanks,
    April

    If horizontalScrollPolicy=”off” then there is an attempt to fit all columns within the width of the DG while respecting minWidth of the columns.  Make sure the minWidths allow the columns you want to shrink can shrink.
    However, there is still a chance of round-off error.  I think the only solution may be to set the width of each column as you want it on a resize event from the DG.

  • Web Application Designer: Column width on analysis_item with BW 7.0

    Hi,
    I'm new to SAP world and I have found a problem I'm not able to solve. I'm working with the Web Application Designer and I want to modify the cell properties (such as cell width) for aligning different queries. In fact, my question are:
    <b>
    1. Is it possible to hard-code/specify column widths of the analysis_item?
    2. The property width of the analysis_item doesn't work, does it?
    </b>
    Thanks for your time and efforts.
    Message was edited by:
            Daniel Rubio

    Hi,
    I have just discovered the capability of modifying columns widths with css properties.
    So if I add to the head section of the html:
    div.prueba2 .urSTTDBdr1
    div.prueba2 .urSTTDBdr
    div.prueba2 .urSTTDBdr2
    And later I put the AnalysisItem between a div class="prueba2" and /div, the columns widths are changed.
    Do you know where can I find all the style properties (such as urSTTDBdr1) and its functions?
    Thanks

  • Spark DataGrid with Dynamic Column Width

    Lets suppose I have a Spark Datagrid with no explicit typicalItem. When the Datagrid is initialized, the column widths are calcualted correctly based on the contents of the dataprovider. However if I add/remove an item from the dataprovider, or modify the one of the objects in the dataprovider, the column widths never update to reflect the change. Is the the correct behavior for a DataGrid? If so, is there any method I can call to force the DataGrid to recalculate and redraw the column widths?

    When Spark DataGrid doesn't have a typicalItem, it uses the first dataProvider item as the typicalItem.  If you change that, the DataGrid won't pick it up immediately. You can invalidate the current typicalItem using dataGrid.invalidateTypicalItem().

  • Changing dataGrid column width with actionScript

    Having a strange change when trying to change any dataGrid column width with this code:
    dataGrid.columns[ 5 ].width = 200;
    It do changes the width of column number 6 to 200, but strangely it's also changes the width of the preceding columns (0-4). Every preceding column automatically increases a little bit than its' existing width without having me any idea.
    Any idea anyone have!
    Thanks..!
    SK

    Hi,
    See if this thread helps:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1237299
    Cheree

  • Grid with fixed column widths

    Hi Folks,
    I have a grid in which I want to prevent the user to move the set column widths, because this grid has a separate graphik on top of it which would then cease to correspond with the grid columns.
    My question: is there any means of difining a grid with <u><b>non-resizeble columns</b>?</u>
    Thanks & Regards
    Fouad
    Message was edited by: Fouad Sebbane

    Hi
    In the below structure ,set bold field as 'X' for columns u wish to keep fixed.
    Fieldcat
    types: begin of slis_fieldcat_main0,
             row_pos        like sy-curow, " output in row
             col_pos        like sy-cucol, " position of col
             fieldname      type slis_fieldname,
             tabname        type slis_tabname,
             currency(5)    type c,
             cfieldname     type slis_fieldname, " currency
             ctabname       type slis_tabname,   " and table
             ifieldname     type slis_fieldname, " initialcol
             quantity(3)    type c,
             qfieldname     type slis_fieldname, " qty
             qtabname       type slis_tabname,   " and table
             round          type i," round in write statement
             exponent(3)       type c,  " exponent for floats
             key(1)         type c,   " column with key-color
             icon(1)        type c,        " as icon
             symbol(1)      type c,        " as symbol
             checkbox(1)    type c,        " as checkbox
             just(1)        type c,  " (R)ight (L)eft (C)ent.
             lzero(1)       type c,        " leading zero
             no_sign(1)     type c,        " write no-sign
             no_zero(1)     type c,        " write no-zero
             no_convext(1)  type c,
             edit_mask      type slis_edit_mask,            
             emphasize(4)   type c,        " emphasize
       <b>fix_column</b>(1)   type c,       " Spalte fixieren
             do_sum(1)      type c,        " sum up
             no_out(1)      type c,   " (O)blig.(X)no out
             tech(1)        type c,        " technical field
             outputlen      like dd03p-outputlen,
             offset         type dd03p-outputlen,     "offset
             seltext_l      like dd03p-scrtext_l, " long key
             seltext_m      like dd03p-scrtext_m, " middle
             seltext_s      like dd03p-scrtext_s, " short
             ddictxt(1)     type c,        " (S)hort (M)
             rollname       like dd03p-rollname,
             datatype       like dd03p-datatype,
             inttype        like dd03p-inttype,
             intlen         like dd03p-intlen,
             lowercase      like dd03p-lowercase,
           end of slis_fieldcat_main0.
    Regards,
    Raj

  • Column Chart with Columns That Vary in Width

    The subject is Column Chart with Columns That Vary in Width.
    I have been concentrating on the column renderer. Unfortunately,
    the renderer class receives control with access to limited
    information. Mainly, what it gets is pixel counts that measure the
    dimensions of the rectangle that ends up being a column. There is
    no straightforward way to send width information to the renderer. I
    can, however, change the color of the column. I thought of encoding
    the width in the height, but that distorts the actual height,
    potentially causing the chart scale to be computed incorrectly.
    Also, the encoding is hard to reverse once the height in
    transformed by an unknown and varying scale factor so that the
    column fits on the chart. I love the way the column chart looks. I
    only want to alter the width of each individual column. Since I am
    drawing each column, if I knew the widths, I'd be done by now. Do
    you have a better approach? Thanks in advance.

    You need three ColumnSeries. Set the dataProvider of each directly (instead of setting it for the ColumnChart) to something like this:
      var cars:ListCollectionView = new ListCollectionView();
      cars.list = inventory;
      cars.filterFunction = function(item:Object):Boolean {
        return item['category' /* or whatever your category field is */] == 'cars';
    Do something similar for bikes and trucks. You can do something like this if you don't know the number of categories as well, but it's rather trickier (and left as an exercise for the reader).

  • RH 10 issue with Fixed Column width

    Hi,
    Is anybody else having issues with setting a fix width for a column in a table?  In RH v.10 the "fixed widths" are not staying "fixed" as I have them manually set.
    I've recently been upgraded from Robohelp (html) v.8 to v.10. 
    In a "Design" view in v.8.0 when I set a column width from the right click menu (AutoFit > Fixed Column Width), the width of the column would be whatever width I'd set it to.  Now, in v.10, the width is whatever width the Robohelp window is set to!  For example, I have a large monitor and I've got Robohelp open in Full Screen mode, the table (a 1-cell table) gets set to the width of the window rather than the particular width I want to use!  I want the cell to be a particular width (much less than my monitor or the open window's width).  Can someone please tell me what I am doing wrong?
    OS=Windows7.
    Browser=IE9
    Robohelp is installed locally (it is not being run over a network).
    Thanks!
    P.S. So far this is the only issue I've had after upgrading from RH v.8 to RH v.10.

    Hi William,
    In a "Design" view in v.10, the table (which is 1 cell) looks like a big rectangular box.  I've turned off the border (cell or table border), so the border appears in gray. 
    Put mouse focus on this 1-cell table, then grab an edge with the mouse. 
    Move the table inward to make the column narrower in the view.
    Then from the right click menu, choose AutoFit > Fixed Column Width.
    Voilá - the width is back to the width of the display window.
    Did that make sense to you?   Thank you for your help and ideas.
    Cheers,
    Julia

  • Help with JTable column width

    Hi,
    I'm trying to resize my JTable columns with this code, but it's not working. What I am doing wrong?
    for (int i = 0; i < table.getColumnModel().getColumnCount(); i++) {
    TableColumn tc = table.getColumnModel().getColumn(i);
    int width = (i == 0)? 10 : table.getWidth()/2 - 10; // three columns
    tc.setPreferredWidth(width);
    Thanks,
    Andr�

    Now my problem is that using either of these methods
    is they don't carry the user's selected column width
    through updates.It sounds like the change event your table model is firing is causing the entire table to be rebuilt. I would guess that you are firing fireTableStructureChanged() which would cause the entire table to be rebuilt (columns, cell values, etc.) Just fire a change event for the minimum necessary. If you can't identify what data in your table has changed (to fire cell or row change events), but the structure (columns) of the table hasn't changed, just fire fireTableDataChanged(). This will cause the cells to be redrawn with the new values, but shouldn't cause the columns to be rebuilt and resized.

  • Prob with fixed column widths and word wrapping in viewer

    i have a report where each record has a very long paragraph of text in it.
    In desktop and plus, the text column is at a fixed width and the text just wraps nicely according to the column width.
    But in Viewer, the column widths do not stay fixed, the text does not wrap, and the long text is displayed in a single line that completely stretches the column width off the page and requires a horizontal scroll bar.
    is there anyway to fix the column width in viewer, have the text naturally wrap, and prevent the column stretching. All word wrapping settings are on, but seem to have no effect. I can't seem to find any solution to this.
    Thanks...

    Hi Pritam,
    Per my understanding that you can't see the vertical scrollbar of the ReportViewer controls 2012 to scroll for the grid rows, but can see the vertical scrollbar of the web application, you also can't fix the headers while scrolling, right?
    I have tested on my local environment and can't reproduce your issue, but you have an alternative way to add some css  to the web form's source code to display the vertical scrollbar.
    Details information below for your reference:
    Please check below properties setting of the reportviewer which control the visibility of the scrollbar:
    AsyncRendering="true"
    SizeToReportContent="false"
    Please check if this problem also occur on other version of IE and other type of browser.
    Please check if you have done correct setting of the Fix data to freeze the table header as the step of below:
    http://technet.microsoft.com/en-us/library/bb934257(v=sql.100).aspx
    If step1 doesn't work, please click the source of webform.aspx and add below CSS to add the vertical scrollbar manually:
    #ReportViewer1 {
              overflow-y: scroll;
    Run the application you will see it display as below:
    Similar thread for your reference:
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/f96b3b56-e920-411b-82ea-40467c922e66/reportviewer-control-vertical-scroll-bars
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Column-width in SALV with web-dynpro ABAP

    Hi there,
    can anyone help me? I want to set the column width to a fix value e.g. 50px.
    How can i do this in SAP List Viewer for ABAP Web Dynpro? At the moment i use this code:
      lo_value->if_salv_wd_table_settings~set_scrollable_col_count( 6 ).
      lo_value->if_salv_wd_table_settings~set_width( '100%' ).
      lo_value->if_salv_wd_table_settings~set_fixed_table_layout( 'X' ).
    The effect is that there are 6 columns all the same width. Is it possible to fix width for one specific column??
    best regards...
    David Wallner

    Hi David,
    You need to change Table setting Layout. Please check this code:
    * create an instance of ALV component
    DATA: LR_IF_CONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE,
    LR_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE,
    LR_CMDL TYPE REF TO CL_SALV_WD_CONFIG_TABLE,
    LR_TABLE_SETTING TYPE REF TO IF_SALV_WD_TABLE_SETTINGS.
    LR_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).
    IF LR_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
      LR_CMP_USAGE->CREATE_COMPONENT( ).
    ENDIF.
    ** get reference to the ALV model
    LR_IF_CONTROLLER = WD_THIS->WD_CPIFC_ALV( ).
    LR_CMDL = LR_IF_CONTROLLER->GET_MODEL( ).
    LR_TABLE_SETTING ?= LR_CMDL.
    ** Set column width
    DATA LR_COL TYPE REF TO CL_SALV_WD_COLUMN.
    LR_COL = LR_CMDL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'PERNR' ).
    LR_COL->SET_WIDTH( '70' ) .
    LR_COL = LR_CMDL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'ENAME' ).
    LR_COL->SET_WIDTH( '100' ) .
    LR_TABLE_SETTING->SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).
    This is the important thing:
    LR_TABLE_SETTING->SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).
    Regards,
    Uday

Maybe you are looking for

  • Free overnight not overnight??

    I ordered a new phone from Verizon. On their home page, it says free overnight if ordered before 4pm. Guess what? Mine became a 2 day shipping. Why? Verizon doesn't give a **** about old customers, only getting new customers. They reply "sorry" you d

  • Changes in xmp files not recognized n Lightroom

    In my workflow i have setup for changes to be made to the xmp files by a program other than lightroom. In the previous version of Lightroom i had tested this, it worked fine. When i made a change to the xmp file, Lightroom recognized the change and d

  • Prevent same file name from being downloaded -- Don't put (1) or (2), etc before file extension

    Let's say I save a file to a download directory -- for example, "Cat Video.mp4". Then, let's say later on I find another video that I'm not sure if I've already downloaded it yet, so I try again. By default, what happens if that "Cat Video.mp4" alrea

  • Compile flex project to multi swf files !

    Hi all !    I have a flex project include one mxml main application, some mxml component and action script files. Can I compile flex project to multi swf files. My goal is: swf file very large, so I divide it into multi small swf files ! How can I do

  • Monitor a item in portal

    How can l run or attach a built in report from Oracle portal. A report telling me how many time a item as been view? By day and what item Can this be done ? Thanks in advance.