Setting width for af:column

I am using af:table. I want the column width to be fixed. If the data is less than the width, I don't want the width to change. When data is longer it should wrap.
But if I give noWrap=false, the width is not fixed - it changes according to data.
Is there any way to solve this problem?

adf , jsf Wrong forum: this is APEX, not ADF.

Similar Messages

  • Set Width for a column, Merge cells in Excel

    Hi all,
    I am using jacob.dll to open and modify an Excel file. And I am stucking in below trouble:
    Dispatch workbook = Dispatch.invoke(workbooks, "Open",
              Dispatch.Method,
              new Object[]"D:\\02042005.xls",
              new Variant(false), new Variant(false)},
              new int[1] ).toDispatch();
    Dispatch sheet = Dispatch.get(workbook,"ActiveSheet").toDispatch();
    System.out.print(sheet.get(sheet,"Name") + "\n");
    Dispatch a1 = Dispatch.invoke(sheet, "Columns",
              Dispatch.Get,new Object[] {"A:A"},
              new int[1]).toDispatch();     
    Dispatch.put(a1,"Width","8");
    Error message is that I can not set value Width for object RANGE! so strange... Is there any ways to set Width for a certain column?
    Any help is appreciated.
    Regards,
    YukiNguyen

    Hi all,
    :) At last I can work done with Jacob, so great :) take me all yesterday to find more... just hope this post can help someone like me save one day to find how :)
    //Get Range
    Dispatch orange = Dispatch.invoke(osheet,"Range",Dispatch.Get,new Object[]{"A1:I1"},new int[1]).toDispatch();
    //Get Column I & set Width
    ocolumn = Dispatch.invoke(orange,"EntireColumn",Dispatch.Get,new Object[]{"I"},new int[1]).toDispatch();
    Dispatch.put(ocolumn,"ColumnWidth","60");
    //Merge cell
    orange = Dispatch.invoke(osheet,"Range",Dispatch.Get,new Object[]{"C12:D12"},new int[1]).toDispatch();
    orange.call(orange,"Merge");
    Is it exciting, huh? :) I am trying to set HorizontalAlignment... beginner always stuck in somethings :)... but I have learnt so much
    Regards,
    YukiNguyen

  • Setting width for a OAMessageStyledTextBean

    is there any way to set the width for a messagestyletext item inside a table
    at design time or at run time
    thanks

    Set the length property.
    But in case the length of the values are less(and there are more columns to display), OA framework would automatically decrease the width of this column to make space for other columns.

  • Setting sql for a column

    Hi, is there a way to set sql query for a column?
    the query should take value from column in the table.
    in my case, it has come down for a need to have a nested select query inside my query:
    select app.application_id,
    (SELECT LISTAGG(typ.verification_name, ', ') WITHIN GROUP (ORDER BY typ.verification_id) FROM
    typ,chk where
    chk.application_id = app.application_id
    GROUP BY app.application_id ) AS verification_type,
    from tablea,tableb where....
    <note that application_id is coming from the bigger query , aka another column from another table.>
    i've tried
    CAST ( EVALUATE_AGGR('LISTAGG(%1,%2) WITHIN GROUP (ORDER BY %3 DESC)', "typ"."verification_name", ', ', "chk "."application_id ") AS CHARACTER ( 50 ))
    but my query need more than few EVALUATE_AGGR resulting in huge query in the log plus it's hard to put more details from other tables when you do this since everything buble down to the group by in the end of the query.
    pls help if there's something even close to this

    Hi jan ,
    thanx for your interest but let me clear with my requirement. What I want to do is that after executing the view query I want to navigate through records and sets some property or a group of property ( think it as a java object which holds properties ) for that cell and after that when I Navigate through record I don't want to run my logic for calculating properties again and I should be able to get those properties which I set earlier. There can be any number of records and most of time value will remain same then why should I calculate properties every time I navigate.
    Currently I am storing these values in a separate class (with row and column no.)but now I am searching some way so that I can store those values in my view only.
    Is it possible in BC4J view ? I heard that something like this is provided in BC4J view but not able to find out..
    thanx once again
    I welcome some other suggestions on it..

  • Fixing a set width for horizontal menu bar

    I'm using the Spry horizontal menu bar at the top of my page and want to put it as a set width that doesn't zoom or shrink in size when someone uses this function on their screen.  At the moment, when zooming, the menu wraps to the next line.  How can I stop this?  Does anyone know how to do this please?
    Many thanks,

    You can set the width of the menuitems as a percentage, you can also set a minimum width for the menubar container (UL).
    Gramps

  • Setting width for UITableViewCell in a grouped TableView like in Facebook?

    Does anyone have any ideas on how Facebook sets the width for UITableViewCells?
    If you look, they're not always the full width of the screen, but sometimes have an avatar image to the left or right.

    They're probably not changing the width of the cell, just moving the items inside each cell.

  • How to set width for this modal dialog box?

    Hi All,
    How to set width to this modal dialog box:
    <input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: &#39;../Lists/Sports%20Activities%20Voting/NewForm.aspx&#39;, title: &#39;User Survey&#39;}); return false;" type="button" value="Vote"/>
    Thanks in advance!

    set as bellow:
    <input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: &#39;../Lists/Sports%20Activities%20Voting/NewForm.aspx&#39;, title: &#39;User Survey&#39;,width:700,height:350}); return false;" type="button" value="Vote"/>
    yaşamak bir eylemdir

  • How to dynamically set width of SSRS columns in custom code?

    How can I change the width of a table column based on a parameter value using custom code in SSRS?
    If the parameter value is "Excel", I'd like the width to be 2 inches. If the parameter value is "Standard", I'd like the width to be 1 inch.

    Hi mmx_pdx,
    Based on my research, we can only type static values for the width size in report. In Reporting Services, it not supported to set the size of width based on an expression currently. This is by design.
    Personally, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/. If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the
    level of service provided.
    Thanks for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to set format for a column in repository

    Hi all,
    i have some columns for which i would like to set a default format of the data directly into the repository.
    For example, a numeric code is shown as 1.234,00, i want the BM to show by default 1234.
    Or a date shown as 03/03/2013 04:00:00 AM i want it to be shown by default as 2013-03-03.
    Is it possible to make these settings into repository?
    Thanks in advance

    NQsconfig check for
    DATE_TIME_DISPLAY_FORMA
    In Answers you may go for
    Column properties->Data format->
    and then Save button to save that format in webcat side.
    If helps mark :)

  • Zero suppression is set active for rows & columns - but find empty rows

    hi,
    In the query properties i set zero suppression active for all rows and columns, but in the workbook, when i execute the report i still find empty rows. i refreshed the query from the workbook, and have done everything, but still i find empty rows.
    Can anyone help me in this regard?
    thanks,
    rani

    Hi,
    you found empty rows in WorkBook, what about the Query Output ?
    please check the below: 
    Re: Suppressing result rows when KF values are zero?
    Hope this helps you
    Regards
    ReddY A

  • How to set the width of a Column

    Hi friends
    I have problem with setting up the Width for each column. Let us i want to set different column width for each Column.
    That is for first column the Width may be Different and the other column the width may be different.
    So please help me out on this Issue
    Cheers
    Jofin

    How to set the width of a ColumnWhat component are you talking about? Are you talking about the width of a column in a JTextPane?
    Have you read the API for the component in question?
    Have you followed the link titled "How to Use...." to the Swing tutorial?
    Learn to read the API and ask a proper question with all the relevant information.

  • How to modify the width of a column?

    Hi,
    I would like to specify different values in the width for the columns in a custom report, because from Microsoft Excel I would like to print all information in an only page.
    I have tried to modify the values from "Additional formatting options" specifying different values, but when I donwload the report in Excel format, the columns doesn't modify (they have the same with as default).
    How can I do it?
    Thanks and regards.

    Hi Monica
    Craete Narrative report and then throght HTML tags set the width. Hope it helps

  • How can i define the width of report column in report region ?

    Hi,
    I have report region and i want to have a static width for each column ( not based on column name of column data ), how can i do it ?
    Thanks in advance ,
    Yoel

    Can you provide more details pls? I am also trying to change widht of report columns and I do not see anywhere in reports atrributes where it allows me to do that...Thanks so much!

  • Deactivate Tooltips for every column in ALV

    Hi Everybody,
    how can i deactivate the tooltip for every column in a ALV.
    regards,
    Sid

    The logic to set the tooltip goes something like this:
    data l_table type ref to cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      data l_column type ref to cl_salv_wd_column.
    data l_header type ref to cl_salv_wd_column_header.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'CREATED_BY' ).
      l_header = l_column->get_header( ).
      l_header->set_prop_ddic_binding_field(
        property =  if_salv_wd_c_ddic_binding=>bind_prop_tooltip
        value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
      l_header->set_tooltip( ` ` ).
    However this logic just sets it for one column at a time.  If you want to do all of them then you would need to loop through a listing of the columns and repeat this logic for each one. Instead of using if_salv_wd_column_settingsget_column, you could use the method if_salv_wd_column_settingsget_columns to return an internal table of object instances for each column object defined in the ALV.

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

Maybe you are looking for

  • Problem in BDC for VA31

    Hi Experts , I am creating BDC for VA31 transaction. If there are multiple line items then i have to select first line item and then go to forcast delivery schedule button . I have to do this procedure for every line item. Is there any way or functio

  • Songs no longer on iPod; how to safely sync?

    I did an iTunes sync between my iPod Classic 160 Gb and my MacBook Pro as usual. Except that it didn't go as usual. The music is still there on my computer but the iPod has no songs on it. My iTunes is 11.0.4 which it says is the latest version. I'm

  • Stock value in Stock Valuation Report

    Does anyone know how you shouid use the stock cost shown by the Stock Valuation Report? I am looking at a database which uses standard costing, and trying to use the Stock Valuation Report to see what the stock value would be at Moving Average. Some

  • Why is it saying my serial number is not valid

    I entered my serial number for photoshop elements 13 and it is saying that it is not valid but i got it right off the email. 

  • IPhoto 6 or 8

    I have iPhoto 4.03 and have just updated to Tiger. I would like to update iPhoto, which is the better software to use, 6 or 8? Thanks