Header in TableView

Hi all.
I've got problem with header in ECC 6.
When we develop the system in ECC 5, the headers in table (tableView element) appeared just fine. But when we upgraded to ECC 6, the header seemed to get trucated. FYI, we always set the width for the htmlb:tableViewColumn tag to zero.
e.g : The header "Transaction No." is truncated to "Tra".
Meanwhile we add a fixed width to every column in ECC6; But I'm actually wondering if we can get things flexible as in ECC 5. Any new setting(s), perhaps?
Any reply will be highly appreciated.

Hi,
We faced the same problem...i think its got something to with the update.
Cheers,
Tatvagna.

Similar Messages

  • Custom view for section header in TableView

    Hello,
    I want to put a custom view, which I created in Interface Builder, as a section header for my TableView. I created a method in the HeaderViewController to set the label in the TableView header but the header doesn't change. I also tried manipulations the header directly in the HeaderViewController and also the other way round by putting a button in the HeaderView, but nothing works.
    Do I have to create the header directly in the TableView?

    That's what I did already.
    I allocated the ViewController for the header inside the tableView:viewForHeaderInSection: in the TableViewController and initialised it with the View and sent a message to the controller to display individual headers for each section.
    Another strange thing is that I can't set and get the label text in the ViewController from the View, but I did everything connected with Interface Builder like on each other normal view.

  • Center Header Data in TableView

    Hi,
    I would like to center the data in my Column Names (Header). The Column Name gets its values from the database, the data is not hardcoded.
    <b>Is it possible to center Column Name (header) Values.</b>
    At present my code centers all the data in the cell
    // CENTERS ALL DATA IN A CELL
    for( int row = 1; row  <= TableViewModel.getRowCount(); row++)                              TableViewModel.getColumnAt(j).setCellHAlignment( row, CellHAlign.CENTER);
    Any advice would be appreciated.
    NAC

    Hi NAC,
    you can center the values using Header Cell Renderer.
    TableView tv = new TableView("tableview");
    tv.setHeaderRenderer(new TableView3HeaderCellRenderer());
    <b>TableView3HeaderCellRenderer.java</b>
    public class TableView3HeaderCellRenderer implements
    IHeaderCellRenderer {
        public void renderHeaderCell(int column, TableView
                  tableView, IPageContext pcontext) {
             if (column == 3) {       
                TextView tv1 = new TextView("Date of 
                                           Inspection");
              <b>// Write your code to center it</b>
                // Set the renderer
                tv1.render(pcontext);
    Hope this helps.
    Thanks,
    Praveen
    PS. Dont forget to reward points if useful/solved

  • TableView - different background color of header cell

    Hello,
    I'd like to render table view with header cell of certain background color.
    I think I can use <i> IHeaderCellRenderer </i> but I can't find out how to set background color from javadoc.
    Best regards,
    Josef Motl

    Try using something like:
    tableView.setStyleForCell(i, column, TableCellStyle.SUBTOTAL);
    Best regards
    Francisco

  • TableView: column header text alignment?

    How can I change the text alignment of a TableView column caption/header? I'd like some of my column headers to be right aligned for example?
    It works for regular table cells when I change f.i. the css of the custom DataFX MoneyTableCell cell:
    .money-cell {
       -fx-alignment: TOP_RIGHT;
    }but it won't work for the ".table-view .column-header" style of the standard TableView:
    .table-view .column-header,
    .table-view .filler,
    .table-view .column-drag-header {
        -fx-alignment: TOP_RIGHT;
    }

    Just after raising this I realised the problem is that the text is a label on top of the header. You can right align by using the following selector:
    .table-view .column-header .label {
        -fx-alignment: TOP_RIGHT;
    }

  • Tableview Header Footer

    Hi,
    I'm trying to figure out why my tableview has been showing up with the column headers in gray color. The spot when you see the column name show me up in gray while in the another application it is came up in blue.
    I've seen in the interator that you can work with individual lines and cells but i did not see nothing about the header and footer color.
    Can anyone give a clue about this?
    thank you in advance,
    Alexandre

    you can modify the color of the header also to different color using the html font option.
    like below mentioned.
    <htmlb:tableViewColumn columnName  = "CARRID"
                         width       = "100%"
    title = "<b><font color='blue'>Airline Code</font><br><font color='orange'>Booking number</font></b>" >
                  </htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName = "CONNID"
    title = "<b><font color='blue'>Flight Connection</font><br><font color='orange'>Customer Number</font></b>" >
               </htmlb:tableViewColumn>

  • TableView auto resize columns based on header text width or cell content

    Is there a method on the tableview or tablecolumn to automatically resize based on the content of the hearder or data?
    If not what approach can used used with JavaFX to calculate the string width based on the current font?

    The table column size is inconsistent, I set the columns in the table view and the items in the initialize method. I execute a service and task from a button action that loads data into the list, if I don't reset the columns in the table view in the succeed method then each column is the same width regardless of the content in the cells. If I do reset the table columns in the succeed method then the columns are resized based on content.
    I don't think it should be a requirement to reset the columns just to get the column widths to set based on the content in the cells. Is there a method on the table column or view that will resize the cells based on the cell content? I would prefer the largest value; column header content or the longest cell content for a column.

  • TableView without header

    Hi,
    My requirement is a tableview without a tableview header.
    Can anybody help me in this case.
    Regards,
    Vaibhav

    use something like below:
    <hbj:tableView
               id="myTableView1"
               model="myTableViewBean.model"
               design="ALTERNATING"
               headerVisible="FALSE"
               footerVisible="true"
               fillUpEmptyRows="true"
               navigationMode="BYLINE"
               selectionMode="MULTISELECT"
               headerText="TableView example 1"
               onNavigate="myOnNavigate"
               visibleFirstRow="1"
               visibleRowCount="5"
               rowCount="16"
               width="500 px"
    />
    note the headerVisible has been set as FALSE here.
    Regards,
    Shubhadip

  • TableView without header. Why ?

    Updated to java8 and now the tableview is hiding the header.
    Run the example in Oracle Tutorial (TableViewSample) and didn´t work too.
    Could anybody give me a help ?

    It's early access software it doesn't always work.
    I found that if you use the latest Java 8b94, the table headers show, but they didn't for the prior couple of builds.

  • Change color of tableView header.

    Hi All,
    How can we change the color of the header in a table view.
    Searched the forum , but could not find a relevant solution.
    My TV code is :
    <htmlb:tableView id            = "errtab"
                               table         = "<%= itab_message %>"
                               width         = "930"
                               footerVisible = "FALSE"
                               design        = "STANDARD" 
                               headerText    = "Please correct the following errors"
                               headerVisible = "TRUE" >
                <htmlb:tableViewColumns>
                  <htmlb:tableViewColumn columnName = "typ"
                                         title      = "Severity"
                                         width      = "20"
                                         type       = "image" >
                  </htmlb:tableViewColumn>
                  <htmlb:tableViewColumn columnName = "msg"
                                         title      = "Message" >
                  </htmlb:tableViewColumn>             
                </htmlb:tableViewColumns>
              </htmlb:tableView>
    Thanks,
    Anubhav.

    Hi Anu,
    several ways to do this. If your requirement is as simple as you state it look at this thread Change the background colour in BSP for an example you can draw from.
    This example modifies a style that is set using the cascading style sheet - CSS. For details on how to use styles look to http://www.w3schools.com
    Cheers
    Graham Robbo

  • SetCellFactory for TableView's header row.

    I was trying to implement a CheckAll Button for the TableView. Previously, I was able to create a column of checkboxes by using setCellFactory but now I needed to do the same with the header but I can't seem to find anything about the TableView's header. I remembered that I was able get the header object from the table itself back when I was using Swing. Does JavaFX 2.0 have any API function to do with the header?

    There is no API in TableColumn yet to support accessing the header rendering, but it is intended for a future release.
    Of course, with a little bit of hackery via the lookup method, you can probably find what you want and manually modify it - but this isn't for the faint of heart.
    -- Jonathan

  • TableView - set header invisible

    Hello,
    I'm trying to set header of java htmlb table invisible. I used:
    <hbj:tableView
      id="timeSheet"
      model="bean.tablemodel"                     
      headerVisible="FALSE"
      footerVisible="FALSE"
      visibleRowCount="<%=bean.getModelRowCount() %>"
      width="">
    .. but header is still visible. Is this some kind of bug?
    Best regards,
    Josef Motl

    Then probably you missed the sharing reference
    check portalaap.xml
        <property name="ServicesReference" value="htmlb"/>
    <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
    also see in your jsp
    <%@ taglib uri= "tagLib" prefix="hbj" %>

  • Getting acess to TableView table header

    Hi,
    How can I get access to the TableView table headers? I want to attach mouse listeners to them so that I can get a call back anytime a user mouse clicks a table header.
    Thanks in advance, best regards,

    You could call:
    tableView.lookupAll(".table-view .column-header .label")after the table has been displayed on a Stage, but the lookup solution seems even uglier than the setGraphic one.

  • Freeze table header in HTMLB Tableview

    Hi
    Does anyone know a way to freeze Table Header ( column names ) in HTMLB ?

    Sure
    <STYLE TYPE ="text/css">
          .tablbroad
          .tabllong
          #tabl
                table {
                        text-align:left;
                        border-collapse: collapse;
                      .tabl table th
                      thead th, thead th.locked    {
                      font-size: 12px;
                      text-align: center;
                      background-color: navy;
                      color: white;
                      border-right: 1px solid silver;
                      position:relative;
                      cursor: default;
                    thead th
                              thead th.locked {z-index: 30;}
                              td.locked,  th.locked{
                              background-color: #ffeaff;
                              font-weight: bold;
                              border-right: 1px solid silver;
                                  left: expression(document.getElementById("tabl").scrollLeft);
                                  position: relative;
                                  z-index: 10;
                              </style>
           <div class="tablbroad" id="tabl">
    Regards
    Bhavana

  • TableView Column Header Clickable

    Hi,
    I have a TableView with 5 columns. I am trying to make the Headers of Column1 and Column5 clickable. I do not want Columns 2,3,4 to be clickable.
    PDK example 1
    myTableView.setOnHeaderClick("onHeaderClick");
    makes all the Column Headers clickable. I would like to make only certain headers clickable.
    Is this possible.
    Any Advice would be appreciated.
    ~NAC

    Hi,
    maybe this could help:
    TableView tv;
    tv.getColumn(1).setOnHeaderSort("EventHandler");
    Regards,
    Marcus

Maybe you are looking for

  • Currency Code of a Legal Entity - R12

    Hi, I need to find out the currency code for a Legal Entity in a R12 instance Based on what I have read and from e-TRM, I have written the following queries: select gsb.currency_code   from hr_operating_units hou,        xle_entity_profiles xep,     

  • Premier Elements 2 Crashing

    I have used Premiere Elements 2 for years without a problem, editing movies of upto 50 minutes.  All of a sudden, with a project that is only 9 minutes long, error messages flash up telling me that Prem Elements is running low on system memory and th

  • Substitute for original Airport card

    I have a DVD Special iMac with a dead ethernet port. I had been using it with a USB ethernet adapter. Going through the junk in the closet, I found the Airport adapter card that came with the Airport card for my iBook and the old graphite base statio

  • Teststand 2013 is losing .seq extension in sequence editor.

    Hi, After I load my *.seq file and perform a couple of editing tasks and run it a few times it loses its extension and saves it as just file name, no extension. Then I am getting all sorts of error messages that my file was edited outside of the envi

  • CS4 Acrobat Key Not Working

    I have a copy of CS4 that installed fine and all the apps like Dreamweaver, Photoshop, etc. are working fine, but Acrobat 9 will not take the software key I was given. When I open a PDF it asks me to first enter my password, then looks like it may be