ALV fixed row possible, scroll or resizel event present?

Hi, I'm afraid the answer will be a clear no to all:
1. we can give 'key' characteristic to a column, that prevents it to be scrolled out of sight. Can we do the same for the first, or any specific rows?
2. Can we catch the event of horizontal and/or vertical scrolling?
3. Can we catch a container resize event? I have a docking container that docks at bottom and extends dynamically to just below the selection-screen fields. If the user resizes the sapgui window, I would like to resize my container dynamically.
Thanks for input.
Regards,
Clemens

even nobody has nerve to say: No. No. No.
Regards,
Clemens

Similar Messages

  • Data Table Fixed rows and Scroll Bar

    Hi
    I have data table which displays the data dynamically, but when there is no data , the table is shrinking and moving the other elements of the page. Is there any way i can keep to fixed number of rows irrespective of data presence?
    Like i need to display only 10 rows at a time, if there are 7 rows in DB, i have t o display 7 rows containing data and rest as blank .
    If my data increases more than 10 rows how can i enable Scroll Bar Automatically on this?
    Thanks in advance.

    Then add empty row objects to the collection or datamodel which is been passed to the datatable value.

  • JTable fixed Row and Column in the same window

    Hi
    Could anyone tip me how to make fixed row and column in the same table(s).
    I know how to make column fixed and row, tried to combine them but it didnt look pretty.
    Can anyone give me a tip?
    Thanks! :)

    Got it to work!
    heres the kod.. nothing beautiful, didnt clean it up.
    * NewClass.java
    * Created on den 29 november 2007, 12:51
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package tablevectortest;
    * @author Sockan
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    public class FixedRowCol extends JFrame {
      Object[][] data;
      Object[] column;
      JTable fixedTable,table,fixedColTable,fixedTopmodelTable;
      private int FIXED_NUM = 16;
      public FixedRowCol() {
        super( "Fixed Row Example" );
        data =  new Object[][]{
            {      "","A","A","A","",""},
            {      "a","b","","","",""},
            {      "a","","c","","",""},
            {      "","","","d","",""},
            {      "","","","","e",""},
            {      "","","","","","f"},
            {      "","b","","","",""},
            {      "","","c","","",""},
            {      "","","","d","",""},
            {      "","","","","e",""},
            {      "","b","","","",""},
            {      "","","c","","",""},
            {      "","","","d","",""},
            {      "","","","","e",""},
            {      "","","","","","f"},
            {      "I","","W","G","A",""}};
        column = new Object[]{"A","B","C","D","E","F"};
        AbstractTableModel fixedColModel = new AbstractTableModel() {
          public int getColumnCount() {
            return 1;
          public int getRowCount() {
            return data.length;
          public String getColumnName(int col) {
            return (String) column[col];
          public Object getValueAt(int row, int col) {
            return data[row][col];
          public boolean CellEditable(int row, int col) {
            return true;
        AbstractTableModel    model = new AbstractTableModel() {
          public int getColumnCount() { return column.length-2; }
          public int getRowCount() { return data.length - FIXED_NUM; }
          public String getColumnName(int col) {
           return (String)column[col+1];
          public Object getValueAt(int row, int col) {
            return data[row][col+1];
          public void setValueAt(Object obj, int row, int col) {
            data[row][col+1] = obj;
          public boolean CellEditable(int row, int col) {
            return true;
        AbstractTableModel fixedTopModel = new AbstractTableModel() {
          public int getColumnCount() { return 1; }
          public int getRowCount() { return data.length - FIXED_NUM; }
          public String getColumnName(int col) {
           return (String)column[col];
          public Object getValueAt(int row, int col) {
            return data[row][col];
          public void setValueAt(Object obj, int row, int col) {
            data[row][col] = obj;
          public boolean CellEditable(int row, int col) {
            return true;
        AbstractTableModel fixedModel = new AbstractTableModel() {     
          public int getColumnCount() { return column.length-2; }
          public int getRowCount() { return FIXED_NUM; }
          public Object getValueAt(int row, int col) {
            return data[row + (data.length - FIXED_NUM)][col+1];
        table = new JTable( model );
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        fixedTable = new JTable( fixedModel );
        fixedTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        fixedTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        fixedColTable= new JTable(fixedColModel);
        fixedColTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        fixedColTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        fixedTopmodelTable = new JTable(fixedTopModel);
        fixedTopmodelTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        fixedTopmodelTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);   
        JScrollPane scroll      = new JScrollPane( table );
         scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
         scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        JScrollPane fixedScroll = new JScrollPane( fixedTable ) {
          public void setColumnHeaderView(Component view) {}
        fixedScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        fixedScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
        JScrollBar bar = scroll.getVerticalScrollBar();
        JScrollBar dummyBar = new JScrollBar() {
          public void paint(Graphics g) {}
        dummyBar.setPreferredSize(bar.getPreferredSize());
        scroll.setVerticalScrollBar(dummyBar);
        final JScrollBar bar1 = scroll.getHorizontalScrollBar();
        JScrollBar bar2 = fixedScroll.getHorizontalScrollBar();
        bar2.addAdjustmentListener(new AdjustmentListener() {
          public void adjustmentValueChanged(AdjustmentEvent e) {
            bar1.setValue(e.getValue());
        JViewport viewport = new JViewport();
        viewport.setView(fixedColTable);
        viewport.setPreferredSize(fixedColTable.getPreferredSize());
        fixedScroll.setRowHeaderView(viewport);
        fixedScroll.setCorner(JScrollPane.UPPER_LEFT_CORNER, fixedColTable
            .getTableHeader());   
        JViewport viewport2 = new JViewport();
        viewport2.setView(fixedTopmodelTable);
        viewport2.setPreferredSize(fixedTopmodelTable.getPreferredSize());
        scroll.setRowHeaderView(viewport2);
        scroll.setCorner(JScrollPane.UPPER_LEFT_CORNER, fixedTopmodelTable
            .getTableHeader()); 
        scroll.setPreferredSize(new Dimension(600, 19));
        fixedScroll.setPreferredSize(new Dimension(600, 100)); 
        getContentPane().add(     scroll, BorderLayout.NORTH);
        getContentPane().add(fixedScroll, BorderLayout.CENTER);   
      public static void main(String[] args) {
        FixedRowCol frame = new FixedRowCol();
        frame.addWindowListener( new WindowAdapter() {
          public void windowClosing( WindowEvent e ) {
            System.exit(0);
        frame.pack();
        frame.setVisible(true);
    }

  • Fixed row in JTable

    Dear All
    Does anyone know how to fix a row in a JTable, for example, to fix the bottom row in a JTable, so that users can scroll through the rest of the rows in the table without affecting this row. But when if a column size is changed, it will resize its cell simultaneously.
    if you know the answer, please provide sample code as well.
    Thanks in advance
    Ken

    Hi,
    to do that, you need an own DataModel in the table, I guess. What is displayed in a cell is asked from the JTable by the getValueAt(...)-method of the datamodel. If you want to fix a row that way, you have to answer this "question" with the right response - that will be not the original cell there but another one while scrolling during a row is fixed.
    You also must keep track of the messages that are to be fired to synchronize the display of the table with the answers you return on the getValueAt(...)-method. The "fixing" is a kind of shifting the fixed row in the table, that must be reflected by the messages you have to fire. fireTableDataChanged() would be an idea but that cause rerendering of all the visible cells of the table - other messages are more precise, but you need to do more and have to worry about more things while programming this.
    In the case of the bottom line it is possible to use a second JTable in the south of the panel which has only one row - the fixed row - in it - if you discard the header of it, it would look like the row is fixed in the original table, but by using this possibility you must synchronize the changing of the column-width and ofcourse the reordering of columns too done in the original table with the second table. I guess the method in the above paragraph would be the better approach to it.
    I have no code for it, but I have tried, to give you a guideline how this can be done.
    greetings Marsian

  • To create a fixed row in the bottom of table and to merge three columns

    Hi,
    I have a table displaying some values but is there any way to get a fixed row at the bottom which will sum the values above.
    ie
    service   business  jan       feb       mar      april
    table       cut          900       100      100      200
    chair       blade       100        200      300     400
    sum                       1000      300      400    600
    so the final row i need it to be constant even if i scroll down the table, this row should be always fixed and visible. and the table data are filled dynamically.. so i dont know the no of rows available as well.
    How can I do it. Any insight on it will be helpful.
    Thanks and Regards
    Tenzin

    Hi,
    CL_WD_TABLE - >SET_FOOTER_VISIBLE where you can provide that summation in the footer.
    As you are calculating the sum there will be the Name for that field to hold summation value right.
    Based on the name of that field you can set it to the footer by passing the necessary paramters to that
    method.
    How are you filling the table.
    Regards,
    Lekha.

  • Photos, is it possible to browse by "EVENTS" like in iPhoto 08

    Hello,
    the question is in the title :
    *For the pictures in the iPod Touch, is it possible to browse by "EVENTS" like in iPhoto 08*
    Thanks à lot.

    I presume iPhoto 08 Events haven't been implemented on the new iPods because the majority of iPod owners don't own a Mac, and so can't run iPhoto. This is a real shame as being able to sync, say, your 6 most recent Events, or all Events from the last 12 months, would be very useful indeed.
    Front Row in Leopard now supports iPhoto 08 Events, enabling you to enjoy your photos without manually having to create Albums. If only Apple would next implement this on the iPod Touch and iPhone.

  • In alv report can i use control break events? if no .whay?

    Hi all,
    in alv report can i use control break events? if no .whay?

    hi,
    you can use control break statements in ALV report.
    for example: if one PO is having more than one line item, that time you need to display PO only once.

  • Is it possible to create one event in Ical, but put it into two Google calendar accounts?

    In my Ical i have multiple google calendars, from multiple accounts. I've got one calendar for my girlfriend (a Home account), so she can see my schedule and where i am. That brings a minor problem. In my Ical i have the same event now multiple times (one for my "home" account and one for my other account). So a lot of duplicate events. Is it possible to have one event, but put it into multipleaccounts? Anyone some tips or tricks?

    wayne,
    Sales order has one credit control area, check VBAK-KKBER
    Therefore order should be checked against this CCA.
    TW

  • Fixed headers while scrolling works fine in bids but not when deployed to reportserver

    Hi, I am using SQL Server 2008 R2 & deploying a report to reportserver with fixed headers while scrolling, this works fine in bids but not when deployed to reportserver. We are IE 9.
    Thanks in advance...............
    Ione

    Hi ione721,
    Since you have identified the 2 xml files are identical, according to my knowledge, there maybe a compatibility issue with IE 9 and SSRS 2008 R2, so I suggest that you could run the report in compatibility mode. Please make sure you have turned on Compatibility
    View in Internet Explorer 9 by following steps:
    When Internet Explorer recognizes that a webpage is not compatible, you will see the Compatibility View button on the Address bar. Try clicking it.
    When Compatibility View is turned on, the button changes from an outline to a solid color when you view the page.
    The following screenshots are for your reference:
    If you have any questions, please feel free to let me know.
    Best Regards,
    Wendy Fu

  • ALV set row and column position

    Hi Experts,
    I have editable ALV, after edit I refresh ALV, but problem is, that position is set to position 1.1. I need to keep cursor at edited position.
    I use ALV through function module REUSE_ALV_GRID_DISPLAY.
    Thansk&regards,
    Jirka

    In order to refresh the ALV and keep the scroll position, you have to read the scroll posiition before refresh and set the scroll position after the refresh..
    Below code will help,.. Whenever you want to refresh the alv use these in your coding...
    FORM refresh_alv_display.
    DATA: li_rows    TYPE lvc_s_roid,
             li_col     TYPE lvc_s_col,
             lws_row_id TYPE lvc_s_roid,
             lws_col_id TYPE lvc_s_col,
             ls_col     TYPE lvc_s_col,
             ls_num     TYPE lvc_s_roid.
       CALL METHOD c_grid->get_current_cell
         IMPORTING
           es_col_id = li_col
           es_row_no = li_rows.
       CALL METHOD c_grid->get_scroll_info_via_id
         IMPORTING
           es_col_info = ls_col
           es_row_no   = ls_num.
       CALL METHOD c_grid->refresh_table_display.
       CALL METHOD c_grid->set_scroll_info_via_id
         EXPORTING
           is_col_info = ls_col
           is_row_no   = ls_num.
       lws_row_id-row_id    = li_rows-row_id.
       lws_col_id-fieldname = li_col-fieldname.
       CALL METHOD c_grid->set_current_cell_via_id
         EXPORTING
           is_column_id = lws_col_id
           is_row_no    = lws_row_id.
    ENDFORM.

  • Autonumber for several fixed rows

    I have often used the autonumber for dynamic row instances with no problem, but now have a problem where my table starts with 3 rows with different content, and the user needs to be able to add and delete rows, at the same time maintaining the autonumbering.
    I created the table with three rows, and each row has the same name (Table1.Row) - I set the Binding to Repeat row with Initial Count set to 1 - no Minimum count
    On a text field in that row, I use the Calculate event with
    var vIndex = ["(a)", "(b)", "(c)"];
    var i = this.parent.index;
    this.rawValue = vIndex[i];
    This produces rows with (a), (b) and (c)
    I have a delete button for each row - Click event 
    Table1.Row.instanceManager.setInstances(0)
    - this deletes the row I click on
    All good so far, but the autonumbering does not recalculate the remaining rows when I delete one.
    Does anyone have an idea of how I can get the remaining rows to recalculate? I tried putting
      xfa.form.recalculate();
    in various events, but no joy

    Oh well - found my own solution. Same as the above, but
    "On a text field in that row, I use the Layout:Ready event with
    var vIndex = ["(a)", "(b)", "(c)"];
    var i = this.parent.index;
    this.rawValue = vIndex[i];
    This produces rows with (a), (b) and (c)  - and the deletion works to remove the row and renumber the remaining ones.

  • Freeze columns and rows for scrolling in HTML ouput

    Hi everyone!
    I have an BIP report with a crosstab generating a HTML output and the table tends to get very big in the ouput, both vertical and horizatal wise, and I am looking for a way to freeze the first column when scrolling horizontally and the header row when scrolling vertically.
    Is there a way to accomplish this? It would help me a lot!
    Thanks,
    Magnus

    I saw in another tread (Freeze column headers in a table and enable vertical scroll bar on the rows that this user have seen a demo of what I want to accomplish. Nothing that you are aware of?
    Or, can it be done with Excel output?
    /Magnus

  • Is it possible to trigger an event when clicking context menu trigger icon?

    When opening a context menu on a UI element, is it possible to trigger an event to handle, eg. set the lead selection for this context element to which the UI element is bound, when clicking the menu trigger icon ?

    First, these NW04s menus are not really context menus. They are static menus that are rendered within the view layout. Real context menus will come later.
    There is no "onMenuOpen" event for an application.
    Armin

  • Is it possible to trigger FIPP event (and how?) when parking an FI document

    Hello
    I wander is it possible to trigger FIPP event (and how?) when parking an FI document with transaction fbv1(and not fv60)
    Thx in advance

    Hi,
    In Financial Accounting --> Accounts Receivable and Accounts payable >  Business Transaction> Incoming Invoices/Credit Memos  --> Make and check settings for Document Parking -->  Create Workflow Variant for Parking Documents (Click  this)
    There you have to assign your workflow.
    Regards,
    Surjith

  • [svn:osmf:] 12656: Fix bug FM-257: Rename durationReached event type to complete.

    Revision: 12656
    Revision: 12656
    Author:   [email protected]
    Date:     2009-12-08 09:45:59 -0800 (Tue, 08 Dec 2009)
    Log Message:
    Fix bug FM-257: Rename durationReached event type to complete.  Also, updated unit tests to be in sync with latest changes (including loc work).
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-257
    Modified Paths:
        osmf/branches/flex4/framework/MediaFramework/org/osmf/composition/CompositeTemporalTrait. as
        osmf/branches/flex4/framework/MediaFramework/org/osmf/events/TimeEvent.as
        osmf/branches/flex4/framework/MediaFramework/org/osmf/media/MediaPlayer.as
        osmf/branches/flex4/framework/MediaFramework/org/osmf/proxies/ListenerProxyElement.as
        osmf/branches/flex4/framework/MediaFramework/org/osmf/proxies/TemporalProxyElement.as
        osmf/branches/flex4/framework/MediaFramework/org/osmf/traits/ITemporal.as
        osmf/branches/flex4/framework/MediaFramework/org/osmf/traits/TemporalTrait.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/audio/TestAudioTemporalTrai t.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/composition/TestCompositeMe tadata.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/composition/TestParallelEle ment.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/composition/TestParallelSwi tchableTrait.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/composition/TestSerialEleme nt.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/content/TestContentLoader.a s
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/image/TestImageLoader.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/media/TestMediaPlayer.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestMetadata.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/metadata/TestMetadataUtils. as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/net/dynamicstreaming/TestDy namicStreamingResource.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/plugin/TestDynamicPluginLoa der.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/swf/TestSWFLoader.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/traits/TestLoaderBase.as
        osmf/branches/flex4/framework/MediaFrameworkFlexTest/org/osmf/traits/TestTemporalTrait.as
        osmf/branches/flex4/libs/VAST/org/osmf/vast/media/VASTImpressionProxyElement.as
        osmf/branches/flex4/libs/VAST/org/osmf/vast/media/VASTTrackingProxyElement.as

Maybe you are looking for

  • Upload data from excel file -URGENT

    Hi All, Advanced thanks to ur reply How to upload data from excel sheet to itab what are the functional modules we are using for that Please help me i look forward to ur reply Regards Raja Sekhar.T

  • How can i execute that sub menu through Acrobat javascript

    Hi, I want to open multiple .pdf files in Acrobat Professional 9 enable the menu item which is in Advanced -> Extend Features in Adobe reader. "Extend Features in Adobe reader." is a sub menu in "Advance"  menu item. How can i execute that sub menu t

  • A Newbie trying to format a micro sd card....

    Hi, I just purchased a 8220 blackberry pearl flip phone on the weekend so far I love it, just have to get used to some of the features but should have the figured out shortly. My problem is that I am trying to format a micro1G San disk memory card, i

  • PHE 6.0 get error when I try to search my computer for pics to put in the program.

    I go to file and click get photos and videos by searching. It finds all the files then an error comes up saying import failed. I really need help with this. thanks.

  • Why can't cron run one of my scripts [SOLVED]

    I'm confused why cron can't run one of my scripts which runs just fine interactively.  I see no errors in messages.log or crond.log. My crontab: $ crontab -l # * * * * command to be executed #| | | | | #| | | | +----- day of week (0 - 6) (Sunday=0) #