How to fix the width of sorting column about adf table ?

I develop project with ADF in jdeveloper.
When click on the sorting column header in adf table,it will adjust the width of the sorting column header.It will make page shifting.
How can I do to avoid the adjusting ?
How can I do to fix the width of soting table header?
Any hint will be appreciated.
Thank you!
Message was edited by:
user618145

I have set the column width like this:
in style.css:
/** Column Settings **/
af|column::header-text
background-color:#F0EDE1;
color:#000000;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:bold;
padding-left: 2px;
padding-right: 2px;
padding-top: 3px;
padding-bottom:3px;
border-color: #B5B5B5;
WIDTH: 120px;
af|column::sortable-header-text
background-color:#F0EDE1;
color:#000000;
font-family:Arial,Helvetica,sans-serif;
font-size:12px;
font-weight:bold;
padding-left: 2px;
padding-right: 2px;
padding-top: 3px;
padding-bottom:3px;
border-color: #B5B5B5;
WIDTH: 120px;
and in jsp page,write like this:
<af:panelBox text="test" width="1000" background="dark" >
<af:table emptyText="" value="#{ftOverview.listOfTransefersVect}" var="transfers" width="100%" banding="row" bandingInterval="1">
<af:column sortable="true" sortProperty="transactionId" headerText="#{resources['ft_overview.ref']}" formatType="text" width="39"
noWrap="true">
<af:outputText value="#{transfers.transactionId}" escape="false"/>
</af:column>
</af:table>
</af:panelBox>
but it seems doesn't work well.

Similar Messages

  • Fixing the width of a column in a pivot table.

    Hi,
    I have a report with a pivot table view.
    In that pivot table i have a column called category and a measure called Amount.
    My issue is, i need to fix the length of the the measured column to particular extent like $111,111,111,111.11 (Bold) for all the columns.
    I went to Format Values for that column and add width=50 in the additional charting options.
    But it's not reflecting for all the columns.
    Is there any other way to resolve this one.
    Thanks,
    chinna.

    Hi,
    Thanks for the quick response.
    I tried to fix the width of a column by putting 20% ,30% ....suggested by you.But it's not reflecting in the report.
    is there any other way?
    thanks,
    chinna

  • How to fix the first field or column in classical report while scrolling

    i want to know, how to fix the first field or column in classical report while scrolling
    horizontally. the first  should be constant when i scroll the report horizontally .
    please help me.
    it's urgent.

    Hi,
    Suppose your first field is itab-matnr.
    WRITE :/ itab-matnr.
    SET LEFT SCROLL-BOUNDARY.
    WRITE :/......."Remianing fields

  • How to show the filter and sort capabilities in adf dynamic table

    hi
    how to show the filter and sort capabilities in adf dynamic table..
    Pls help me

    Hi
    Click on a colum in your table and go to the properties pallet
    make true the sortable property then you can sort the table according to that column
    Thanx
    Padma

  • Re: Getting the current selected Row & column in adf table

    Hi,
    Our requirement is we have to retrieve both the current row and column in adf table.
    We can retrieve the current row in the backing bean like
    ViewObject view = getViewObject();
    view.getCurrentRow();
    Is it possible to retrieve selected column id or column header text as we are getting for row?
    please give some sample.
    Thanks,
    Vijay.
    Edited by: Vijayakumar Palanisamy on Jun 23, 2011 2:23 AM

    Hi John
    My exact requirement,
    1.     We have collection of records in adf table
    2.     Each cell in the row has commandImageLink (Like adding approver, edit approver, delete etc)
    Currently it’s working fine for me in the commandImageLink listener, but the problem is table is refreshed 2 time,
    while selecting a record and commandImageLink is clicked, I have to avoid 2 times refreshing,
    If it’s possible to identify a particular cell in the row selection, I can avoid the image link listener.
    we are using Jdeveloper11.1.1.4.0
    Please suggest.
    Thanks,
    Vijay

  • Need to fix the width of a column in interactive report

    Hi,
    I have a column named 'Comment'. Its have a huge data due to which the lenght of that column in interactive report get increased. I need to fix the length to a desired value.
    I used following code in Region Footer:
    <style>
    table.apexir_WORKSHEET_DATA td[headers=COMMENTS] {
      _width: 300px;
      min-width: 50px;
      max-width: 300px }
    </style>
    Its solved the problem by fixing the width of the column but the column is not showing the full data now. It is hiding most of its part to fit it in that column.
    Please give some idea.
    Thanks,
    Chandru

    Hi,
    I believe you will want to add a height specification to allow for multiple lines.  And you may want/need to specifiy how you want lines to wrap.
    Add (for example):
      height: 60px; 
      white-space: nowrap; 
      word-wrap: break-word;
    There are defaults and several options for white-space and word-wrap.  You may want to look them up and give them a try for comparison.
    Howard

  • How to decrease the width of left column in the "2 column layout"?

    Hi all,
    I create two webdynpro based iViews in the EP, then I create a page use the "2 column layout(Narrow:Wide)".I put one iview in the left column and another iview in the right column. When I preview my page, I found the left column still too wide. So how to decrease the width of my page's left column?
    Thanks and Best regards
    Deyang

    Hi Deyang,
    You have to create your own layout:
    - Navigate to System Administration->Support
    - Choose Portal Runtime -> Browse Deployment
    - Navigate under pcd or under temp, and download the layouts par (com.sap.portal.layouts.default.par.bak if I recall correctly)
    - Import that par as a project to Developer Studio
    - Make your changes (create a new jsp acording to the existing examples, and update the portalapp.xml accordingly)
    - Export to par (in a different name!) and deploy
    - In the portal content: new from par -> Layout (don't forget to mark it as a template).
    - Your new layout template will now be available when you create new pages.
    good luck!

  • How to change the width of a column in the web templete

    hai
       can anyone pl help me to solve the issue
    here is the issue
        " how to change the width of the column in web templete?" is there any chance  to change
    thanx in advance
    syam

    First use the Active Cell property and set the row value to -2 to change an entire column. The attached image shows how to set the background color of column 3 to green. I don't understand your comment about column size. It doesn't matter how wide or narrow a column is. Using the Cell Background Color property, the entire cell is colored. If you are having difficulty keeping track of the number of columns, thats a different issue.
    Attachments:
    Background_Color_of_Table.jpg ‏5 KB

  • 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 fix the width of the column when using alv table

    Hi ,
    I am displaying the contents in a table. Of course using alv component i displayed the content. Now the problem is the column width is not fixed with value of the table entries( based on the domain length level). As  length  of field increases or decreses as the length of the content increases or decreases. I wanted to fix the column width whatever be the length of the contents.
    Can any one help in this regard ?
    Thanks Pons.

    Hi,
    Please find the code related to your problem.
    METHOD configure_alv .
    data declaration for column settings
      DATA  : lr_column_settings   TYPE REF TO if_salv_wd_column_settings,
              lr_col_header        TYPE REF TO cl_salv_wd_column_header,
              lt_columns           TYPE salv_wd_t_column_ref,
              ls_column            TYPE salv_wd_s_column_ref.
    data declaration for table settings
      DATA : lr_salv_wd_table_ctr  TYPE REF TO iwci_salv_wd_table,
             lr_table_settings_ctr TYPE REF TO if_salv_wd_table_settings,
             lr_header_ctr         TYPE REF TO cl_salv_wd_header.
    Variables for drop-down and inpufield reference
      DATA : lr_drdn_by_key        TYPE REF TO cl_salv_wd_uie_dropdown_by_key,
             lr_input_field        TYPE REF TO cl_salv_wd_uie_input_field,
             l_header              TYPE string.
    get ALV Component <CONTRACT_DETAILS>
      lr_salv_wd_table_ctr = wd_this->wd_cpifc_payment_detail( ).
      wd_this->alv_config_table = lr_salv_wd_table_ctr->get_model( ).
    set visible row count
      lr_table_settings_ctr ?= wd_this->alv_config_table.
      lr_table_settings_ctr->set_visible_row_count( '5' ).
      lr_table_settings_ctr->set_read_only( abap_false ).
      lr_table_settings_ctr->set_grid_mode( ).
      lr_table_settings_ctr->set_width(
        EXPORTING
          value = '980PX' ).
      wd_this->alv_config_table->if_salv_wd_table_settings~set_data_check( if_salv_wd_c_table_settings=>data_check_on_cell_event ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_false ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_edit_delete_row_allowed( abap_true ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_export_allowed( abap_false ).
      wd_this->alv_config_table->if_salv_wd_std_functions~set_edit_check_available( abap_false ).
      CLEAR: l_header.
      l_header = wd_assist->if_wd_component_assistance~get_text( '030' ).
      lr_header_ctr = lr_table_settings_ctr->get_header( ).
      lr_header_ctr->set_text( l_header ).
    set text header for Columns.
      CLEAR: l_header,lt_columns.
      lr_column_settings ?= wd_this->alv_config_table.
      lt_columns = lr_column_settings->get_columns( ).
      LOOP AT lt_columns INTO ls_column.
        CASE ls_column-id.
          WHEN 'PAYMENT_METHOD'.
    get header details
            lr_col_header = ls_column-r_column->get_header( ).
    disable DDIC field label
            CALL METHOD lr_col_header->set_prop_ddic_binding_field
              EXPORTING
                property = if_salv_wd_c_ddic_binding=>bind_prop_text
                value    = if_salv_wd_c_ddic_binding=>ddic_bind_none.
    set user defined column header
            l_header = wd_assist->if_wd_component_assistance~get_text( key = '020' ).
            lr_col_header->set_text( l_header ).
            CREATE OBJECT lr_drdn_by_key
              EXPORTING
                selected_key_fieldname = ls_column-id.
            ls_column-r_column->set_cell_editor( lr_drdn_by_key ).
            ls_column-r_column->se_width( '100PX' ).
            lr_drdn_by_key->set_key_visible(
              EXPORTING
                value = abap_true ).
          WHEN OTHERS.
        ENDCASE.
        CLEAR: l_header,ls_column.
      ENDLOOP.
    ENDMETHOD.
    Regards
    Manoj Kumar

  • How to fix the value of first column in the JTable in java swing for every

    Hi ,
    I have a swing page that have table panel in which there is a table of size 7x4 now when I click on the perticulat row then that row data will displayin the table like that the selected row become the second column in the new table and the fist column of this table will remain constant for all the entry but the second column update according to the roe which is selected .How it is possible .
    Thanks in Advace,
    anu

    One thing you can do is to prevent the user from editing that column and programatically supply the values of that column yourself.
    JTable table = new JTable() {
       public boolean isCellEditable(int row, int col) {
           if(col == 0) {
              return false;
           return super.isCellEditable(row, col);
    };This allows you to prevent the user from editing the column information so you can supply some sort of a default value for the column always
    ICE

  • 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 to fix the width of ADF Table

    Hi,
    I am developing an application in ADF using ADF Faces Components . I am using Oracle Jdev 10.1.3.1.0
    I am dropping the Transient View object as ADF Table on UI. I have set the width property of table to 100%, I have also changed the inlinestyle width also to 100%. These two did not work for me.
    The issue is if a column has a value of bigger length the table size is extending and if the column has a value of smaller length the table size is reducing.
    Is this the expected behaviour of the width property of the table ?? . Is there any way to fix the table size. Please provide me some pointers to fix the issue.
    Thank You.

    Hi vijay,
    Setting the width to 100% did not work for me.
    Table Script: Create table sample (name varchar2(1000), num number);
    Insert the below Data:
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,1234
    aaaaaaaaaaaaaaaaaaaaa,12
    aaa,3444
    aaassssssssssssss,1234
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,123423
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,123123
    With this info in the table drop it is as view object on the UI.
    Set the RangeSize to 2 in the PageDef.xml file
    The issue is: For the first 4 rows the table size is showing perfectly but when it showing 5 and 6 row on the UI the table is stretching.
    Please provide me some more pointers to fix this issue.
    Thank You.

  • How to resolve the error message "JBO-25009" in ADF table?

    Hi all,
    There is a master detail form in jsff page using adf application. Detail is represented as ADF table. In the adf Table we have 4 primary key, two foreign key from master table.
    Type of primary key in master are Big Decimal and String. When I input value in field of detail, we get error message :
    "JBO-25009: Cannot create an object of type:java.math.BigDecimal from type:java.lang.String with value:AC".
    How to make if I input value in detail table don't show the error message?
    Please let me know if you have any solution for this.
    Thanks.

    Hi Rakesh.
    I don't try insert String into Big Decimal variable. I have adf table with 5 column and 4 primary key. The type of primary key are: 1Big Decimal and 3 String.
    Now, I want to insert data to the table. when I input data to first column (primary key : Big Decimal) is work well and then I want to insert data to second column (primary key : String) with value "AC"
    but when I insert, the error message is show "JBO-25009: Cannot create an object of type:java.math.BigDecimal from type:java.lang.String with value:AC".
    Why the error message is show when I insert data to second column with type String and I have been input data with String value?
    Are the second column is remember of type first column is Big Decimal ?
    Thanks.

  • How to Add/Edit validation rule for Column in ADf table(Jdeveloper11g)

    I am working on Jdevloper11g with ADF table. There i have one column where user can enter numeric value in range 1-1000 .So i have to add validation as such he/she can't enter value apart from 1-1000 range also not any other charcters.
    I know on form, if i select attribute from binding and right click i will find one option "Edit Vlaidation rule..." and from there i can change validation rule for perticular field.
    But how i can achive same on Column's filed??
    Thanks for all help.
    Jaydeep

    Hi Barnislav,
    I tried the way you mentioned but i am getting below exception.
    Could not complete Edit validation Rule... Because it would result in an invalid document
    oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Element RangeValidationBean not expected [ node = RangeValidationBean ]
    <tree IterBinding="searchConfigurationDataIterator" id="searchConfigurationData" ApplyValidation="true">
    <nodeDefinition DefName="com.oraclecnm.util.search.SearchAttributeBean">
    <AttrNames>
    <Item Value="searchAttributeName" />
    <Item Value="searchAttributeId" />
    <Item Value="weightage" />
    <Item Value="isAttributeSearchable" />
    </AttrNames>
    </nodeDefinition>
    <RangeValidationBean OnAttribute="weightage" ResId="pages.SearchConfigurationPageDef.searchConfigurationData_Rule_1" Inverse="false" Severity="Error" Name="searchConfigurationData_Rule_0" OperandType="LITERAL" MinValue="1" MaxValue="1000" />
    </tree>
         at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:3669)
         at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:3577)
         at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2825)
         at oracle.bali.xml.model.XmlContext.precommitTransaction(XmlContext.java:1166)
         at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1653)
         at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1684)
         at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2898)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:586)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:556)
         at oracle.bali.xml.model.task.StandardTransactionTask.__commitWrapperTransaction(StandardTransactionTask.java:469)
         at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:208)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
         at oracle.adfdtinternal.model.ide.validation.RuleEditAction.actionPerformed(RuleEditAction.java:35)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
         at java.awt.Component.processMouseEvent(Component.java:6041)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Maybe you are looking for

  • How can I see the PC on my local network

    How can I see the PC on my local network. With Leopard installed I see the others Mac on the network but ot the PC. But the PC see me. What happen and How I can resolve that.

  • PL/SQL To Replcate Data

    I'm working on a project where I need to transfer records between two Oracle 9i databases running on separate servers in response to a user clicking a button on a Windows form. My intial thoughts were to create a table one one database which I could

  • Error: Module Exception

    Hello I created a File to File interface, to pick the file from FTP and again put the file to FTP.This is a simple interface for my learning. The channel is scheduled to run every 1 minute. Every minute I see below error in the Adapter monitor "Last

  • Create Gradient From Color Group

    I think it would be good to add a feature that allows you to drag a 'Color Group' to the Fill box or to the gradient window which then creates a gradient, evenly spacing each color in the group. This features is mainly for convenience and time-saving

  • Cant "save as stationery" using Mail in Snow Leopard.

    I would like to create a custom version of one of the existing stationary templates in Mail. After making the modifications I find that "Save as Stationery" is grayed. I was able to accomplish this once, but have no idea what I did to make it work. A