Setting the Vissible Row count Dynamicaly

Hi,
    I need to set the Vissible row count dynamically in Webdynpro Java, depending upon the number of rows in the internal table.

Hi Delphi,
This is Webdynpro ABAP Forum, Try to post in Webdynpro Java. I dont know WD Java.
Create one attribute of type i  ex : COUNT TYPE I, and bind to visible row count property of table.
In code Describe table and get total no of records to one variable.
Finally use Set_attribute - Pass COUNT Value. Now Based on Count Value you get no of table rows.
Hope it Helps.
Cheers,
Kris.

Similar Messages

  • Need to set the Vissible row count Dynamically

    Hi,
       I have requirement where i am supposed to set the Vissible row count for a table dynmaically, depending upon the number of rows in a table.

    Or use a calculated attribute.
    Create an attribute in the context called calcVisibleRowCount of type integer and make it read only and calculated. Then bind that attribute to the visibleRowCount attribute of your table.
    The method for the attribute looks something like this:
    (this displays 10 rows per page if more than 10 records in the node, otherwise it displays the same number of rows in the table as in the context)
      public int getCalcVisibleRowCount(IPrivateStartsida.ILayoutElement element)
        //@@begin getCalcVisibleRowCount(IPrivateStartsida.ILayoutElement)
              if (wdContext.nodeXXXX().size() > 10) {
                   return 10;
              } else {
                   return wdContext.nodeXXXX().size();
        //@@end
    Note that this attribute is not created in the node that you want to count number of elements in.
    Edited by: Richard Linnander on Apr 1, 2011 3:41 PM

  • How to set the Selected row and Column in JTable

    Hi,
    i have a problem like the JTable having one Method getSelectedRow() and getSelectedColumn to know the Selected row and Column but if i want to explicitly set the Selected Row and Column,then there is no such type of Methods.If anybody has any solution then i will be thankful to him/her.
    Praveen K Saxena

    Is that what you're looking for? :myTable.getSelectionModel().setSelectionInterval(row, row);
    myTable.getColumnModel().getSelectionModel().setSelectionInterval(column, column);

  • The last row count

    how can i make it when i after insert the data in a table ,it let me know the new total row number or the last row number.
    example.
    -now got 12 row datas
    -after i insert a new entry
    -it tell me now is row 13
    thanks

    Re: the last row count
    jesperdj Registered: Jun 10, 2003 1:00 AM      Nov 10, 2005 2:05 AM
    Let's get this straight first: You are talking about inserting a row into a database and counting the number of rows in a database table, right?
    Or are you talking about a table in a GUI?
    inserting row into a database is not a problem..and then..where after i insert the data into the database..i will retrieve the whole database and display it in my TAble in GUI...my problem now is..how i make it to highlight the new insert data in my table?or other way to say,how i highlight my newly insert datarow in my table?

  • How to set the current row in table automatically when tabout from one row to next row

    Hi
    I'm using jdev 11.1.2.0.0
    How can we set the  row(in which row focus is)  as current row in the table?
    If we create a table with single row selection, then whichever row we select, that row becomes current row because of the selection listener(#{bindings.xxvo.collectionModel.makeCurrent}).
    Then if we do tabout from one component to another component in table and moved to next row, then the focus would be on another row .
    when focus is shifted from one row to another row, then how can we make the focused row as current row or selected row.
    Any suggestion would we appreciated
    Thanks.

    Add clientListener inside table component and set client listener type to dblClick with method as a JavaScript method name.
    <af:clientListener method="dblclk" type="dblClick"/>

  • How can you set the max row for a 'open cursor' in a stored proc?

    I would like to know how can you set the maximum amount of row returned in a resultset coming from a stored proc?
    You can do it via JDBC with cStatement.setMaxRows(10); but it works only for select that you do via JDBC...
    I would like the same functionality using open cursor inside a stored proc...
    Thanks...

    is "where ROWNUM <= 10" the equivalent of "cStatement.setMaxRows(10);" because the ROWNUM as problem with the ORDER BY clause and the setMaxRows() as no problem...

  • Setting the default row prefetch

    Hello!
    Setting batch sizes for writing is easy but how do you set the read prefetch? I want the driver to prefetch e.g. 100 rows for every round trip. Usually you set the default read prefetch on the oracle driver object but how do you access that?
    Erik

    No not with a cursored stream. I want the results to return e.g. a Vector, but all reads should be prefetched. Maybe toplink sets a really high prefetch so you do not have to worry about the prefetch? Or maybe you have to use a cursored stream to use read prefetch? Does anybody know?

  • Setting the Previous row with New row value

    Dear All,
    I have a af:showDetailItem in which i have a af:table where i can add the Warranty details of Products in which i have:
    eg:
    Product | WEF | ValidUntil
    ================================================
    Prod1 | 01-05-11 | 01-06-11
    Prod2 | 02-06-11 |
    Here i want to enter the "Valid Until" only when i create an entry for new Warrenty details and enter the WEF.ie Valid Until will be WEF-1 of the next row.
    so any idea of how to solve this problem.?
    Regards,
    Soya.

    Hi,
    Aren't effective-dated entities used to create a new column based on some existing column in the same row.
    But my need is to set the value of the previous row when the new row is inserted.
    Product | WEF | ValidUntil
    ================================================
    Prod1 | 01-05-11 | *01-06-11*
    Prod2 | *02-06-11* |
    rgds
    Soya

  • Any way to set the starting hit counter value

    I am moving some static pages to a blog template and would like to retain the hit counter values on the new pages. Is there a way to set the starting number other then reloading the page 25,000 times
    thanks

    Welcome to the Apple Discussions. Not with the Apple counter. However, if you use a 3rd party counter like StatCounter you can set it to any number you want. You can also set it so it will not count your visits. To install see Old Toad's Tutorial #13 - Adding a StatCounter as an HTML Snippet.
    OT

  • Setting the Current Row

    I've put together a simple Spry Repeat List navigation w/ a
    detail region for content, and defined .hover and .selected classes
    so that when each row is clicked it highlights.
    My question is this: how can I make the default row highlight
    when the page is first loaded?
    Thanks.

    Marcel,
    You should be able to add a <set> in a compund event handler like this:
    <set property="currentRowIndexInRange" target="${data.yourPageUIModel.yourViewNameIterator}" value="${theValueYouWantToSetItTo}"/>
    Regards,
    Dan Schiff

  • How to set the first row as selected in single selection of table

    when the page renders how do we make the first row as selected for single selection in a table.
    Thansk a lot for your help

    set the selection Attribute's value to 'Y' for the first row. Thats enough.
    eg;
    Row row=vo.first();
    row.setAttribute("SelectionAttribute", "Y");
    --Prasanna                                                                                                                                                                                                                                                                                                                                           

  • How does Photoshop Elements set the histogram pixel count (Y value)?

    I use histograms a lot to evaluate the quality of an image. But I've noticed that some histograms have "flat peaks". I don't think that indicates real clipping is taking place, but it does raise the question as to what the maximum count is set to. I can find nothing that discusses this issue.

    Hallo,
    vielen Dank für die kurze Antwort. Eigentlich schade, für so ein mächtiges Programm...
    Was also tun, zurück zum Mitbewerber...?
    Nein, erst mal die harte Tour versuchen.
    Win 8.1, Notepad mit Administratorrechten.
    C:\Program Files (x86)\Adobe\Elements 12 Organizer\Assets\locale\de_DE\fontmap.txt
    geöffnet.
    Originalinhalt auf meinem System:
    Myriad Web Pro
    9
    12
    Myriad Web Pro
    7
    10
    Angepasst in
    Myriad Web Pro
    15
    18
    Myriad Web Pro
    13
    16
    und schon sind die Schriften im Organizer größer... ;-)
    Allerdings fehlen jetzt auch Teile des Texts auf diversen Schaltflächen :-(
    Muss man also noch ein wenig optimieren.
    Achtung Nachahmer: Ich übernehme keine Verantwortung für eure Änderungen an euren Systemen und mögliche Fehler.
    Grüße
    JPFe

  • Groovy expression to set the current row

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had GlJrnlHd in which i have the following attributes
    GjhYear , GjhPeriod
    year - Transient Attribute with the following querry
    SELECT fp_year FROM fin_periods WHERE fp_bu = :p_bu AND TRUNC(GJH_JRNL_DATE) BETWEEN fp_from_date AND fp_end_date
    period - Transient Attribute with the following querry
    SELECT fp_period FROM fin_periods WHERE fp_bu = :p_bu AND TRUNC(GJH_JRNL_DATE) BETWEEN fp_from_date AND fp_end_date
    Now i need to set
    GjhYear = year
    GjhPeriod = period
    How can i perform this

    Your question is not clear.
    What is GlJrnlHd ? VO?
    From where attributes GjhYear , GjhPeriod coming from? Query?
    Now i need to set
    GjhYear = year
    GjhPeriod = periodWhat do you want to set them as? Default value? Fill all the rows with these values?
    You will get an answer sooner when you provide some example data , queries along with your question.
    -Arun

  • Can't View All Records if Max Row Count is null

    Hi,
    There are over 2500 records in a table and if Max Row Count is set to nothing in report attributes, the user is restricted to view only 500 records. And If Max Row Count is set more than 2500 then user is able to view all records but taking more time to display report.
    What to do to minimise process time and allow user to view all the records. ?
    Pagination Scheme : Row Ranges X to Y of Z (with pagination)
    Number of Rows : 100
    Number of Rows (Item) :     <empty>
    Max Row Count :           <empty>
    Thanks,
    Ven.

    Hi Ven,
    Apex restricts the number of rows returned by a report to 500 by default. You can change this by setting the Max Row Count. Apex does this so that the amount of data returned over the network to the browser is kept to a reasonable amount. The reason it is done this way is because a user in apex does not maintain a stateful connection to the database and as a result, rows returned from a query can not be cached in the database and fetched as required.
    From a usability point of view, I'm not sure why a user would want 2500+ rows returned to a screen. They would have to scroll and paginate to find anything of use and network bandwidth would get chewed up in the process. Why not provide the users with query options so that the number rows returned to the browser is restricted to a more manageable amount? If the users require a full hardcopy of the data then you can handle this with csv and pdf options.
    Regards
    Andre

  • OVS display row counts

    Hi,
    When i search for records via OVS and display, i want to set the display row count to 5 rows. I donot find an option within OVS auto generated code to set it. Is there any way to do that ?
    Thanks in advance,
    Gaurav.

    Hi,
    Under phase indicator,
    In Case if_wd_ovs=>co_phase_0,
          ovs_callback_object->set_configuration(
                    window_title = lv_group_header
                    col_count    = 3
                    row_count    = lv_line ). Hre u can mention the no. of rows to be displayed.
    Thanks,
    Divya.S

Maybe you are looking for

  • I backed up my ipod. I then updated it but all of my data is still gone. How do I get my data back??

    I backed up my ipod. I then updated it but all of my data is still gone. How do I get my data back??

  • Pdf files now have a firefox icon

    WIN XP. Have checked file association settings and pdf files are directed towards using Adobe reader. Completed uninstall of FFox31 and icons changed back to Adobe. Cleaned computer and carried out clean install. Icons remained as pdf for two restart

  • Opening Excel 2007

    Please help me.. I am getting this warning message when opening Excel file which is created by Coldfusion on office 2007 - The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the

  • Best upgrades for smooth HD video editing?

    I love video editing and plan on making the jump to HD. I intended on upgrading to a Quad Core... but I read somewhere that processors for Late 2008 Unibodies are not upgradeable, bummer! So, will an upgrade to 240GB SSD and 8GB RAM suffice? All I wa

  • Help with Integration Processes (ccBPM)

    Please help me to understand Process Container variables and "instance of process". I don't quite have a handle on the concepts. Thanks. When a message is sent to an Integration Process and it is a reciever/start message, is a new process instance in