Dynamic sizing of Column Width

Is there a way that the table columns can be dynamically adjusted widthwise in an RTF template ? I do not want my $Total to wrap around.

Try doing the calcualations in-line. getButtonWidth() is a
function, and thus hard to bind to.
<mx:Button id="submitButton" label="SQL"
width="{15/100*summaryPanel.width}" textAlign="center"/>
Since summaryPanel.width is reference directly in the
binding, the compiler will automatically adjust the button's width
for you whenever summaryPanel's width changes.

Similar Messages

  • Auto re-size column widths?

    Hi-
    is there a way to have the finder window columns always open up to a width that allows the longest file name to display in full? I'm tired of re-sizing my column widths every time I switch folders (which I do a lot) so I can read my file names.
    thanks,
    l

    I have the opposite annoyance: I want my columns to all be the smallest possible width. However, Column view always opens at a default width (which makes neither of us happy, as it is neither wide enough to display all names, nor is it at the smallest size). One thing you can do is hold the option key when you get to a column that has a long name and double click the little lines at the bottom of the column divider. All open columns will then expand to the width necessary to display the longest names. However, subsequent columns revert to the default width--thus if you go back up to the root level and select a new folder, that column is still "fat" as is the second column, but the next column will be default again. If you hold the option key and drag the column width || handle, all columns expand (or contract) and it seems this width remains even when you go back up and down the tree. Of course, once you close the window you are back to square one.... I know of no way to set a default width that you prefer.
    Francine
    Francine
    Schwieder

  • Dynamically setting column width doesn't work all the time

    I wanted to dynamically set the width of a column in a JTable to be half of the width of a another column. This should happen whenever the frame is resized. But somehow I need to tell this twice to Java. If I don't then sometimes the column width isn't set new.
    Is this a Java bug or what?
    public void componentResized(ComponentEvent ce)
         try
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              // Again, or it won't work:
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
         catch(SQLException e)
    }

    Is it possible that your call to
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    is altering the response created by
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    ? Have you tried calling them once but in the other order? Or just calling the "setMaxWidth" call twice and leaving out the second "setMinWidth"?
    Good luck... :)

  • How to set dynamic column width for analysis item

    Dear Experts,
    I have a query view which is added in the web template as an analysis item. The web item properties on width is not working - I tried entering a value in the width but when I execute the template, the query view's width still stays the same.
    Module com.sap.ip.bi.rig.ColumnWidth don't seem correct because I don't want the column width to be static. As my number of columns may change, I wanted the overall width of my query view to stay the same.
    Appreciate any ideas which can solve this issue
    Thanks and Regards,
    huimin
    BW newbie

    Hi Huimin,
    I don't think it is possible to fix the width of the Analysis webitem since it dynamically adjusts its width based on the text maxlength within its cells. Unless you use com.sap.ip.bi.rig.ColumnWidth where the cols are static, you cannot achieve this.
    Even if you do override the css settings using a cell padding or something, the portal settings would override the same. How about using a Report webitem to insert tables/charts & check if the width can be adjusted here - just a thought.
    --Priya

  • Dynamic Column width for a report

    Will the width property of a column be able to be set at run-time (i.e. ability to set the width of a column to an expression) in SQL Reporting Services 2008? One problem I have seen is the inability to set the width of columns in a report when you you have several columns whose order is determined based on parameters.
    Lets say I have 2 columns in a report and two fields from the database which will populate those columns: 1 field that is varchar(5) and one which is varchar(50). If I do not know which column each field will go to until runtime how am I supposed to adjust the column width? Letting the column width be set by an expression would solve everything as I could pass the width in to the report. As it stands now, I would have to set each column's width to accomodate a field of type varchar(50) in order to avoid wrapping of data.
    You could say just create 2 reports, one for each case, but what if I had 15 fields? 20?
    Has anyone figured out how to dynamically set the width of a column? Will the width of a column be able to be set at run-time in SQL Server Reporting Services 2008 via expression or some other means?
    Questions, questions, questions.
    Chuck

    Ok slight update
    RDL xml files are used during deisgn of reports but when you deply they go into the Content column of a table called Catalog:
    SELECT [Name],
    CAST(CAST([Content] AS VARBINARY(MAX)) AS XML) AS reportXML
    FROM [Catalog]
    WHERE type = 2
    So I think this can be edited programmatically.  Widths can be found like this:
            <TableColumns>
              <TableColumn>
                <Width>9cm</Width>
              </TableColumn>
              <TableColumn>
                <Width>3.02646cm</Width>
              </TableColumn>
              <TableColumn>
                <Width>3.25cm</Width>
              </TableColumn>
              <TableColumn>
                <Width>3.5cm</Width>
              </TableColumn>
              <TableColumn>
                <Width>3.5cm</Width>
              </TableColumn>
            </TableColumns>
     

  • Unable to change column width dynamically in cross tab report.

    Hi,
    We have developed cross tab layout using template builder v.10.1.3.2.1 in EBS.I am trying to increase column width dynamically and the width is coming xml.
    i looked at document and found one command <?split-column-width:name?> for the same.i tried but it is not increasing the size of one column.
    Output
    column1 column2 column3 .......
    Row text1 10 20 30
    Row text2 40 50 60
    I want to inrease the size of column for row text1 and row text2.
    Need help in this.
    Thanks,
    Mahesh

    Is the field that holds your width value called "name"?
    Can you send me the xml and RTF template to [email protected] and I can take a look.
    Thanks,
    Bipuser

  • Adding dynamic split column width to my report

    I'm trying to add a dynamic split-column-width to my report in BI Publisher. I do not have a need for a column header. I tried to add this line to my existing line of code for the cell.
    *<?split-column-width:COLUMN_DATA?>*
    C *<?split-column-width:COLUMN_DATA?>* <?for-each-group@cell:current-group();COLUMN_ORDER?> COLUMN_DATAEC
    I do not under stand the user's guide. What should be placed where to accomplish the dynamic column width and keep my current cell group?
    thank you for your time.

    In the Discoverer Plus (web version but not vieweer), go to Sheet -> Format. For each column click on Format Data and make sure Word Wrap in unchecked. Then click on Format Heading and check on Word Wrap. This will word wrap the column heading but stretch the column to maximum length of the data in the column.
    I think be default word wrap in unchecked unless otherwise specified when the workbook was created.

  • Suggestion for Next Release - Dynamic Column Widths

    Is it possible for the next release of xcelsius to allow the developer to dynamically set column widths?
    Appearance > Layout > Custom Column Widths - let the developer bind the values dynamically to a range.
    Thanks.

    The XScorecard (part of the XComponents @ www.antivia.com which are free to download and free to use) does exactly this. In fact it does a little more because the column widths bind in both directions, which is useful to sync two tables together. If they are bound to the same column width cells then even if the end-user drags the columns in one table the second on changes as well. If there are things that the XScorecard does not do which you need it to then leave a comment and I will see how difficult it would be to add.

  • Can i change the column width in a table row dynamically

    Hi,
    There are two columns in one of the row of the table, can i change the width of the cells dynamically.
    Sometimes one of them will be blank and the other cell has to print the entire string .
    Left cell is left aligned and the right cell is right aligned.
    I tried to change the width using field.W but it didnot work.
    Regards,
    Sobhan

    Hi,
    We can change the column width of a column dynamically. Try the javascript code in the appropriate event.
    Table.columnWidths = "2in 3in 4in 5in";
    Thanks & Regards,
    Sanoosh

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

  • Dynamically Hiding a Column in a CFGRID

    Here's the situation: I've got a flash form with a cfgrid.
    That grid has 4 columns. Is it possible to click a separate button
    in the form and hide/show one of the grid columns, similar to
    altering the "display" attribute of the <cfgridcolumn> tag? I
    know it's possible to click a button and hide the entire grid...
    Any help or comments would be most appreciated!

    Just FYI: I think I solved this by adjusting the column
    widths dynamically via Actionscript. There was something odd about
    how the grid handled the widths, though. I had to move the column
    all the way to the right in the grid and then set it's width to a
    negative value to "hide" it, which actually just pushed it off the
    screen.
    Let me know if you're still having trouble and I can dig up
    the code, but it probably won't be that useful if you have to hide
    multiple columns.

  • How to set initial column widths for a table

    What I'd like to do is to control the initial column widths for a table.
    I'm building the table by using a class which extends AbstractTableModel. This class takes care of setting the headers and reading the data for the table.
    If I do the following:
    VarTableModel vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    I will see a table in my window. The widths of the columns are equal and are a function of the horizontal dimension of the window.
    I have tried to set the width of a column by doing the following:
    TableColumn aColumn;
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    But this has no effect on what gets displayed. I can force the widths that I want by using 'setMaxWidth' but this has the unfortunate side effect of not allowing the user to make the column wider if they want.
    What I'd like is a way to specify the widths of the columns when initially displayed and then let the user adjust to their liking.
    I'm sure that there is a way to do this, but I don't seem to understand where to intervene in the process to produce the effect that I want.
    Any help or suggestions will be greatly appreciated!

    Table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    add this line and try ur codeThanks for the suggestion! Unfortunately, it doesn't seem to do the trick. Here is an abbreviated segment of my code:
    vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    // we want a horizontal scrollbar, so turn resizing off
    // and we want to control column widths
    jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    . // same kind of thing for each column
    aColumn = jt.getColumn(vtm.getColumnName(4));
    aColumn.setWidth(400);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    If I do the above, the table gets displayed with each of the five columns the exact same width. So, the sizing of the columns is happening somewhere else despite turning auto resizing off.
    Where is that occurring and how can I intervene so that I can control the widths of the columns on initial display and still allow the user to adjust the widths if they so choose?

  • How can I reduce the column width in a spreadsheet according to the text?

    Hi,
    I added a spreadsheet to a pages document and now I want to reduce the column width so that it fits the content (text).
    I tried it the other way around: I added very small columns and then chose the adjust-automatically-option in informations. This worked, the columns became broader and matched the text.
    Now I got a lot of spreadsheets which columns are too broad. When choosing adjust-automatically just nothing happens. What can I do?
    Sorry if this sounds a little weird, I'm using English seldom at time and don't know which words to choose to describe my problem properly. Hope someone can help me nevertheless?
    Sarah

    Hi Sarah,
    In Pages, the table Autosize feature pertains to Row Height, not Column Width. Numbers has more Table sizing options than Pages does, so you might want to consider looking into doing your work in Numbers.
    In Pages, there are slight differences in how tables behave depending on whether they are Inline or Floating. You might want to experiment with that. Long tables, however, must be Inline.
    Jerry

  • How can i Auto Size the Column width in RDLC Report

    Hi Friend's,
    I have created Windows application with RDLC Report. I am binding(Generating) dynamic columns and data's in RDLC Report Using Matrix control, I need to make Auto size of Column width for each Column in
    Matrix of RDLC report. So Can any one suggest me to make the Auto Size of Column Width in RDLC.
    Thanks in Advance,
    Mohan G

    Hi Mohan,
    In Reporting Services, the column width/height is hard-coded, hence, we cannot set the column width/height dynamically or based on an expression. So is the report size.
    In addition, since it is a RDLC report, we need a ReportViewer control to display this report within a custom application. If you need to change the size of the whole report, we can set the AsyncRendering property of the ReportViewer control to false, and
    set the SizeToReportContent property to true.
    Regards,
    Mike Yin
    TechNet Community Support

  • Column width in output table cannot be changed

    Hi All,
    I have a visual composer model with an input form used to display variables to call a BW query. The query result is displayed in an output table.
    Multiple fields are displayed in the output table.
    On the layout tab of the visual composer model, I have changed the column width of the different output fields.
    After initial execution, the column widths of the different columns correspond to the settings in the layout tab. When I submit the query, example after entering the selection variables in the input screen and pressing submit, all columns widths change to 1 width. All columns now have the same width.
    We installed the latest VC version and hotpackages but this does not help.
    How can I change the column width of an output table?
    Best Regards,
    Filip

    Hi All,
    this column problem I know really good and there is a solution:
    Click on the Output-Port of your Query and then click on Configure. You will see on the right side the property "Dynamic Port". Uncheck that and you will see that the column width is like in the layout tab.
    This is only in Queries. In Function Modules you dont have to do this.
    Best Regards,
    Murat Yurtoglu

Maybe you are looking for

  • Error 66 : TCP Read

    Hello to everyone, I need to communicate with an automat to send it a stop information. This stop information is provide by various sensors that are communicating with Labview. My problem is when I launch my VI, it stopped after 30 seconds with the e

  • How to connect ORACLE8i and xml

    this is sethu involving in the effort to do a project in xml and oracle 8i in the environment of weblogic. i need how to connect oracle8i using xml which enable me to start my project. with regards sethu email:[email protected] null

  • How to load html web in flash?

    How to load html web inside flash as2/as3?

  • Search Layout Set

    Hi all, We are trying to implement 2 search layout sets such that one layout renders the search result to end users without the 'Details' link and the other renders the results to Content administrators with the Details link. If it would be considera

  • How do i delete account?

    I have created new apple account as i have lost my access to my old email account that i have used to create an apple account. So i was wondering is there any way for me to delete that account. If there is may i know how do i go about doing it. I hav