Paging in a rowset

I have a database driven search page,which searchs
rowsets by a variable from a textField.
I have in the tableLayout paging enabled with for
rows.
If a search a new rowset and iI get 6 rows, in the starting page I have 4 rows, thats ok. But .If a click now the next button the page shows always the first
four rows.Why ?
Thanks
Peter

Hi Peter,
First make sure you have a message list component to show any validation/converter error msgs...
Assuming that is not the problem, I'm thinking you might not want to re-execute the model every time the page is rendered (including "callbacks" like when you click the 'next' button). See how this is done in the App Model (using properties stored in the essentially).
So see the app model for how it handles this - but essentially it store something in the session which indicates each time you first navigate to the the page.
Then wrap is all ithe data table model methods in your constructor in an if statement so that if the session property is set (indicating the constructor was called during navigation) you call the data table model methods... otherwise you assume it's a callback and the dataTableModel is already setup so you skip it..
hope that makes sense... if not please see the appmodel :)
v

Similar Messages

  • Fill Last Page of Rows when Paging through Rowset

    Hi,
    In the Tunning part of the view object, there is a option called 'Fill Last Page of Rows
    when Paging through Rowset'. I cannot clearly undertand what it means by looking
    at the help. Then I try to uncheck that option and then drop and drag the View to
    the jsp to see what the difference is.
    It seems that there is no differnece by looking at the before and after vesion.
    Anyone can help to explain it.. Many thanks in advance.
    Ivan

    Hi,
    I am reading the section of 'Improving the Web User Experience' but I still do not have a
    good grasp of it.
    It said that 'When you test the browse page, you'll notice that the first page shows rows
    1 through 10 as expected but that the second page shows rows 5 through 14 instead of
    rows 11 through 14'
    For my program, I set it showing 15 records each time. Originally it is showing '1-15'
    records. When I select '16-30 of 68' of the comobox, the second page is really
    showing what it means. It didnt happen that it is showing the previous records.
    Ivan

  • ADF BC: range paging on dynamic view object

    hi!
    i have a dynamically generated sql query and i want to get the results one page at a time. for this to work i create at runtime a view object and try to use range paging:
    String sql = "SELECT ...";
    ViewObject vo = appModule.createViewObjectFromQueryStmt("tmpVO"+System.currentTimeMillis(), sql);
    vo.setRangeSize(pageSize);
    vo.setAccessMode(RowSet.RANGE_PAGING);
    vo.scrollToRangePage(pageNo);
    vo.getEstimatedRowCount();
    Row[] rows = vo.getAllRowsInRange();
    vo.remove();
    but when i run this it was pretty slow. so i traced the database session and saw that the executed query was the sql string, not the range paging select (SELECT * FROM (SELECT /*+ FIRST_ROWS */ IQ.*, ROWNUM AS Z_R_N FROM (...).
    i use range paging on other view objects that are not dynamically generated and it works fine. please tell me what can i do to get only the specified page from the data base.
    thank you
    Edited:
    here is the select i run:
    SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
    UnitTypeEO.USER_UNIT_TYPE,
    UnitEO.UNIT_NR UNIT_NUMBER,
    UnitEO.NUMBER_PLATE_ID,
    AreaEO.AREA_NAME,
    UnitEO.SERIAL_NR
    FROM NW_UNIT UnitEO,
    NW_UNIT_DETAILS NwUnitDetailsEO,
    NW_UNIT_TYPE UnitTypeEO,
    NW_AREA AreaEO,
    NW_COMMUNICATION_COMPUTER ComputerEO
    WHERE
    UnitEO.deleted IS NULL
    AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
    AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
    AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
    AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
    AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
    here is the jbo.debugoutput that was generated; it includes the creation of the app module, the execution of SearchEntityPkVO (a predefined vo, not paged), then the execution of the code above:
    08/07/22 13:56:52 [436] Connected to Oracle JBO Server - Version: 10.1.3.36.73
    08/07/22 13:56:52 [437] mPCollUsePMgr is false
    08/07/22 13:56:52 [438] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
    08/07/22 13:56:52 [439] ViewObjectImpl.mDefaultMaxActiveNodes is 30
    08/07/22 13:56:52 [440] Created root application module: 'enermet.aim.search.model.SearchAppModule'
    08/07/22 13:56:52 [441] Locale is: 'en_US'
    08/07/22 13:56:52 [442] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
    08/07/22 13:56:52 [443] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    08/07/22 13:56:52 [444] Creating a new pool resource
    08/07/22 13:56:52 [445] Trying connection/2: url='jdbc:oracle:thin:@AIMTEST:1521:AIM' ...
    08/07/22 13:56:53 [446] Successfully logged in
    08/07/22 13:56:53 [447] JDBCDriverVersion: 10.1.0.5.0
    08/07/22 13:56:53 [448] DatabaseProductName: Oracle
    08/07/22 13:56:53 [449] DatabaseProductVersion: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production With the Partitioning, OLAP and Data Mining options
    08/07/22 13:56:53 [450] <AM MomVer="0">
    <cd/>
    <CONN/>
    </AM>
    08/07/22 14:00:21 [985] SearchEntityPkVO>#q old SQLStmtBufLen: 234, actual=163, storing=223
    08/07/22 14:00:21 [986] select sep.pk_name, sep.position
    from MD_SEARCH_ENTITY_PK sep
    inner join MD_SEARCH_ENTITIES se
    on se.entity_id = sep.entity_id
    where se.name = :VarEntityName
    08/07/22 14:00:21 [987] ViewObject: SearchEntityPkVO Estimated Row Count Query Statement:
    08/07/22 14:00:21 [988] "SELECT count(1) FROM (select sep.pk_name, sep.position
    from MD_SEARCH_ENTITY_PK sep
    inner join MD_SEARCH_ENTITIES se
    on se.entity_id = sep.entity_id
    where se.name = :VarEntityName) "
    08/07/22 14:00:21 [989] Bind params for ViewObject.getQueryHitCount: SearchEntityPkVO
    08/07/22 14:00:21 [990] Binding param "VarEntityName": Unit
    08/07/22 14:00:21 [991] ViewObject: SearchEntityPkVO Estimated Row Count: 2
    08/07/22 14:00:21 [992] Clear QueryCollection in cache for VO tmpVO1216724421562
    08/07/22 14:00:21 [993] ViewObject: tmpVO1216724421562 close prepared statements...
    08/07/22 14:00:21 [994] tmpVO1216724421562>#q computed SQLStmtBufLen: 641, actual=601, storing=631
    08/07/22 14:00:21 [995] SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
    UnitTypeEO.USER_UNIT_TYPE,
    UnitEO.UNIT_NR UNIT_NUMBER,
    UnitEO.NUMBER_PLATE_ID,
    AreaEO.AREA_NAME,
    UnitEO.SERIAL_NR
    FROM NW_UNIT UnitEO,
    NW_UNIT_DETAILS NwUnitDetailsEO,
    NW_UNIT_TYPE UnitTypeEO,
    NW_AREA AreaEO,
    NW_COMMUNICATION_COMPUTER ComputerEO
    WHERE
    UnitEO.deleted IS NULL
    AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
    AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
    AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
    AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
    AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
    08/07/22 14:00:21 [996] *** createViewAttributeDefImpls: oracle.jdbc.driver.T4CPreparedStatement@4e6
    08/07/22 14:00:21 [997] Bind params for ViewObject: tmpVO1216724421562
    08/07/22 14:00:21 [998] Clear QueryCollection in cache for VO tmpVO1216724421562
    08/07/22 14:00:21 [999] ViewObject: tmpVO1216724421562 close prepared statements...
    08/07/22 14:00:21 [1000] Column count: 7
    08/07/22 14:00:21 [1001] tmpVO1216724421562>#q computed SQLStmtBufLen: 641, actual=601, storing=661
    08/07/22 14:00:21 [1002] SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
    UnitTypeEO.USER_UNIT_TYPE,
    UnitEO.UNIT_NR UNIT_NUMBER,
    UnitEO.NUMBER_PLATE_ID,
    AreaEO.AREA_NAME,
    UnitEO.SERIAL_NR
    FROM NW_UNIT UnitEO,
    NW_UNIT_DETAILS NwUnitDetailsEO,
    NW_UNIT_TYPE UnitTypeEO,
    NW_AREA AreaEO,
    NW_COMMUNICATION_COMPUTER ComputerEO
    WHERE
    UnitEO.deleted IS NULL
    AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
    AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
    AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
    AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
    AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
    08/07/22 14:00:21 [1003] ViewObject: tmpVO1216724421562 Estimated Row Count Query Statement:
    08/07/22 14:00:21 [1004] "SELECT count(1) FROM (SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
    UnitTypeEO.USER_UNIT_TYPE,
    UnitEO.UNIT_NR UNIT_NUMBER,
    UnitEO.NUMBER_PLATE_ID,
    AreaEO.AREA_NAME,
    UnitEO.SERIAL_NR
    FROM NW_UNIT UnitEO,
    NW_UNIT_DETAILS NwUnitDetailsEO,
    NW_UNIT_TYPE UnitTypeEO,
    NW_AREA AreaEO,
    NW_COMMUNICATION_COMPUTER ComputerEO
    WHERE
    UnitEO.deleted IS NULL
    AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
    AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
    AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
    AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
    AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
    08/07/22 14:00:21 [1005] Bind params for ViewObject.getQueryHitCount: tmpVO1216724421562
    08/07/22 14:00:26 [1006] ViewObject: tmpVO1216724421562 Estimated Row Count: 32732
    08/07/22 14:00:26 [1007] Column count: 7
    08/07/22 14:00:26 [1008] ViewObject: tmpVO1216724421562 Created new QUERY statement
    08/07/22 14:00:26 [1009] tmpVO1216724421562>#q old SQLStmtBufLen: 661, actual=601, storing=631
    08/07/22 14:00:26 [1010] SELECT * FROM (SELECT /*+ FIRST_ROWS */ IQ.*, ROWNUM AS Z_R_N FROM (SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
    UnitTypeEO.USER_UNIT_TYPE,
    UnitEO.UNIT_NR UNIT_NUMBER,
    UnitEO.NUMBER_PLATE_ID,
    AreaEO.AREA_NAME,
    UnitEO.SERIAL_NR
    FROM NW_UNIT UnitEO,
    NW_UNIT_DETAILS NwUnitDetailsEO,
    NW_UNIT_TYPE UnitTypeEO,
    NW_AREA AreaEO,
    NW_COMMUNICATION_COMPUTER ComputerEO
    WHERE
    UnitEO.deleted IS NULL
    AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
    AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
    AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
    AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
    AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
    ) IQ WHERE ROWNUM < :0) WHERE Z_R_N > :1
    08/07/22 14:00:26 [1011] Bind params for ViewObject: tmpVO1216724421562
    08/07/22 14:00:26 [1012] setting rownum query between (0, 23)
    08/07/22 14:00:26 [1013] ViewObject: tmpVO1216724421562 close prepared statements...
    PS: I am using JDev 10.1.3.36.73

    You have a couple of choices. You could create one view object with a bind variable parameter(s) and in the application module you have 10 instances of that VO with appropriate values set for the bind variable in each instance.
    Or if you are using the LOV feature of a VO then you can set an attribute to point to one VO and then using a view cirteria applied to that specific LOV you can then "filter" the data that would appear in that LOV.
    Does that help?
    Grant Ronald

  • Problems using writeXML on Range Paging ViewObject

    We have a ViewObject configured to work with Range Page feature (it has up to 150 thousand rows), it works very nicely, fast and fine.
    But the problem appears when we try to use the writeXML functionality on this Range Paging ViewObject, and exception is thrown, seems that writeXML calls any other rowset method than next().
    Any suggestion about how to solve this problem? (without disabling range paging feature on the ViewObject).
    Thanks in advanced.
    The thrown exception is:
    oracle.jbo.InvalidOperException: JBO-25011: El juego de filas <ViewObjectName> sólo permite desplazarse hacia delante.
         at oracle.jbo.server.ViewRowSetImpl.createViewRowSetIterator(ViewRowSetImpl.java:811)
         at oracle.jbo.server.ViewRowSetImpl.createRowSetIterator(ViewRowSetImpl.java:794)
         at oracle.jbo.server.RowSetImpl$1$RSIEnumeration.<init>(RowSetImpl.java:247)
         at oracle.jbo.server.RowSetImpl.getRowsEnumerator(RowSetImpl.java:259)
         at oracle.jbo.server.RowSetImpl.getXMLElementNode(RowSetImpl.java:147)
         at oracle.jbo.server.ViewObjectImpl.appendXMLElementNodes(ViewObjectImpl.java:9805)
         at oracle.jbo.server.ViewObjectImpl.writeXML(ViewObjectImpl.java:9707)

    Eliseu -
    Unfortunately with the forum software not escaping any XML content, I'm having a real hard time figuring out what kind of problem you are having with detail disclosure. I did post a response to your message in the UIX forum:
    Problems with details disclosure
    You might want to check out my response and post any follow-ups there...
    Andy

  • Range Paging rownum question

    I am using JDeveloper 11.1.1.3.0 and I have a question about the range paging access mode and I went through some docs but couldn't get myself to answer all the questions I have.
    1. In the VO's I set the Access Mode to Range Paging and set the Range Size to 25 but I only have (at this time) 19 rows. But in the logs, I notice:
    "<OracleSQLBuilderImpl><bindRangePagingParams> [2540] setting rownum query between (0, 28)"
    which doesn't make sense. Firstly, 0-28 is not a 25 row range and secondly, why is the SQL even accessing anything outside the range of 25 when there are only 19 rows for the VO?
    2. Also, I have two buttons on the page (page fragment #1) which performs operations (add a new row, version an existing row) by having the user go to a different page fragment (page fragment #2). After the user submits the info and returns to the original page (page fragment #1), I see this message in a pop-up:
    "Cannot navigate with unposted rows in a RangePaging RowSet"
    which, although not an error, doesn't make sense because the info was saved in the DB.
    Hope my questions make sense.

    I don't have the url reference handy for the "official" word, but I recall that jdev overfetches 3 records in range paging mode.
    It's not known that there are only 19 records until the first batch is fetched, which is why you see 0-28.
    Just noticed the second question - no comment on that one, unfortunately ;)
    John

  • FindByViewCriteria and paging

    I'm working with JDeveloper 10.1.3.3 and oracle.BC4J Version 10.1.3.41.57. In our web application I have used findByViewCriteria several times and it worked perfectly. Recently I had to change one of the view objects where I used this method to paging because the number of records became too large to show them in a web page.
    I changed my statement from
    rs = (RowSet)vo.findByViewCriteria(vc, -1,
    ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
    to
    rs = (RowSet)vo.findByViewCriteria(vc, -1,
    ViewObject.QUERY_MODE_SCAN_DATABASE_TABLES);
    in the meaning that this would query all records instead of only the fetched ones.
    But this is not the case. If I search within a rowset that is not paged or when I search within the rows that are already fetched it works. But if I want to find rows that are not yet fetched than I get back null.
    Did I misunderstand QUERY_MODE_SCAN_DATABASE_TABLES?
    Does findByViewCriteria make always an in memory search which means that it is pretty useless with paging?
    Or is this a bug?
    Silvia Rothen

    1) that would really depend on you goals. for performance only, stored procedures are precompiled so should be faster.
    2) definitely you should only select what you want and limiting the number of rows you return will speed up your query.
    3) what do you mean by that? a recordset represents the collection of rows returned from the query so should help you.
    4) it depends on your database. for instance, MySQL has a function to return the number of rows returned. however, some database has an unbuffered mode so that the first few rows will be returned very quickly without knowing how many rows are there, in which case, you won't know the number of rows until all the rows have been retrieved.
    5 and 6 are database-dependent, while most rdbms only lock the selected rows by default, some lock the entire table.
    Java 2 MVP
    http://www.brainbench.com

  • Problem with sun.jdbc.rowset.CachedRowSet.

    Hi All,
    I cannot not able to import the package 'sun.jdbc.rowset.CachedRowSet'.
    while writing the path in the jsp:useBean or import to java class it shows at the compilation time that
    Error JavaCompile: sun.jdbc.rowset cannot be resolved.
    Is there any jar file needed and if then where i can find it.
    actually i need to import this for implementing the large row in paging system in jsp page.
    Thanks in advance.
    Regards
    ukbasak

    hi,
    Another link which to point over the rowset.jar file
    http://forums.systeminetwork.com/isnetforums/archive/index.php?t-36523.html

  • Strange caching on a paging enabled data table when sql-command changes

    Got some strange results when changing the command property of a JdbcRowSetXImpl. To reproduce:
    - create new jsp page
    - drag a table from Data Sources onto the page design grid
    - put a DataTable on the page design grid
    - bind DataTable to the RowSet for the table from step 2
    - enable paging on the DataTable; make sure the page is smaller than the number of items in the table. Also add the page navigation buttons
    - add a read-write property 'query' to SessionBean1
    - add a button to the page design grid
    - double click button and add
    getSessionBean1().setQuery("SELECT * FROM <table> ORDER BY <someColumnName>"); // replace <> strings with appropriate names
    - change the command property / query string for the table in the page backing bean to getSessionBean1().getQuery();
    - run application
    - click on button with query change code 'behind it'
    - click on '->' next page button
    - click on '<-' previous page button
    Notice that one page is sorted, the other not. All pages that have been displayed before the 'query change' button was pressed remain in the 'old' sort order.
    I have tried to call xxxRowSet.execute(), dataTable1Model.getDataCache().reset() on several places, to no avail.
    The only hack I found to be working was adding a private static int hackCounter, and changing the ctor to dataTable1Model.setDataCacheKey("com.sun.datacache.bug.xxxRowSet" + hackCounter++);
    Clearly there must be a better solution.

    did u try dataTable1Model.execute();
    you didn't mention that you did.
    I have had datatables that didn't update only to find I didn't do dataTable1Model.execute();
    Regards
    Jonathan

  • [JDev 9.0.3.3] oracle.jbo.RowSet.setAccessMode()

    Browsing through the JavaDocs I noticed a method I had not spotted before: setAccessMode(). The documentation mentions that this method allows me to specify one of the following states for RowSets: SCROLLABLE, FORWARD_ONLY, RANGE_PAGING.
    I also noticed that specifying the value FORWARD_ONLY changes the return value for RowSet.isForwardOnly() to true. Calling setForwardOnly(false) puts getAccessMode() back to SCROLLABLE.
    Now I'm wondering. Is the method setForwardOnly() now deprecated? The documention doesn't mention this.
    I know, nothing of importance in here, just curiosity. :)

    Arno:
    setAccessMode() has to do with the range-paging feature. For details, please take a look at:
    http://radio.weblogs.com/0118231/stories/2003/03/26/viewObjectTuningTipsForBestPerformance.html
    and
    http://radio.weblogs.com/0118231/stories/2003/01/26/quickOverviewOfNewBc4j904RangePagingFeature.html
    Thanks.
    Sung

  • Range Paging Feature

    anyone tried the new Range Paging Feature in 9.0.5 preview version? it works well?
    i try to fecth rows in sets of 10 and when i need more i make a scrollRange(),setRangeStart(),...
    in SCROLLABLE mode this works well but in RANGE_PAGING mode this only returns 2 pages, i can't go to the third page (the range size is 10 and i have 20000 rows in database).
    how can i count the rows? now this.getRowSet().getRowCount(); don�t work because rows are not in the RowSet
    any help?
    thanks

    scrollRange (+/- rowCount) should scroll the 'rowCount' number of rows. You may also use scrollToRangePage method and pass in index of which page to jump to.
    getRowCOunt() will return the count of rows in the cache and in case of range paging that should be range size + some buffered rows. You may use getEStimatedRowCOunt() to get the valid row count.

  • Paging using JSF

    Hi All,
    OK, I would like to know the better idea for paging in JSF
    Now current Idea what Creator team has implemented seems to be not the right way. It is just my perception. I don't know if I am right or wrong. Please clarify me on this.
    Why I am not interested on Current Implemetation of Paging by Creator team is because, considering the below codes generated by creator,
    <h:dataTable binding="#{Page5.myDataTable}" headerClass="list-header" id="myDataTable" rowClasses="list-row-even,list-row-odd" rows="15"
                            style="left: 216px; top: 144px; position: absolute" value="#{Page5.myDataTableModel}" var="currentRow">
    </h:dataTable>                       
    Here basically Some tag lib is handling the paging of entire dataTable. So when ever the page is rendered, rowset will be traversed totally and on conditional basis it grabs and holds the required data in the dataTable
        jiya_userRowSet.setCommand("SELECT ALL JIYA_USER.USER_ID, JIYA_USER.LOGIN_ID, JIYA_USER.USER_FNAME, JIYA_USER.USER_LNAME  FROM JIYA_USER");
                myDataTableModel.setDataCacheKey("com.sun.datacache.Page5.jiya_userRowSet");
                myDataTableModel.setRowSet(jiya_userRowSet);
                myDataTableModel.setSchemaName("");
                myDataTableModel.setTableName("JIYA_USER");
    Now considering above code , although RowSetDataModel supports caching, it is not compulsory that a developer should depend on RowSetDataModel class implementation and bind this to dataTable. There is a chance where developer can use array of beans and bind this to dataTable. So caching may not be possible in this scenario. So obviously whenever page is rendered , it should access the managed bean class and execute the rowset .
    So assuming the rowset holds the 10000 records for an example, the idea what Creator team has implemented is very poor. beacuse for page size of 10, application has to fetch the records 1000 times means (1000 X 10000) . 100 lacs of records need to be fetched from the database. So, we are just increasing the burden on database server and application server.
       public String myDataTable_firstPageAction() {
            myDataTable.setFirst(0);
            return null;
        public String myDataTable_previousPageAction() {
            int first = myDataTable.getFirst() - myDataTable.getRows();
            if (first < 0) {
                first = 0;
            myDataTable.setFirst(first);
            return null;
        public String myDataTable_nextPageAction() {
            int first = myDataTable.getFirst() + myDataTable.getRows();
            myDataTable.setRowIndex(first);
            if (myDataTable.isRowAvailable()) {
                myDataTable.setFirst(first);
            return null;
        public String myDataTable_lastPageAction() {
            int first = myDataTable.getFirst();
            while (true) {
                myDataTable.setRowIndex(first + 1);
                if (myDataTable.isRowAvailable()) {
                    first++;
                } else {
                    break;
            myDataTable.setFirst(first - (first % myDataTable.getRows()));
            return null;
        }That is the reason I am looking for an alternate idea for paging in JSF
    Hope you understand my query,doubts , concerns regarding Creator team's implementation of paging the data
    Best Regards
    Sudhakar

    Hi Sudhakar,
    You can definitely restrict the number of rows fetched by a rowset. Here is how you do it:
    1. Drag and drop a table onto the design view
    2. in the properties sheet, under General there is a property named maxRows.
    3. Enter the max rows you want to retrieve from the database table, for example 5
    This will fetch only 5 rows and display them in the datatable.
    I hope this was what you were looking for
    Cheers
    Giri :-)
    Creator Team

  • Netui: Reapter with Paging function

    Very grateful to Gerald Nunn who came out with the solution I had been looking for.
    (Paging and Sorting using the netui:repeater tag
    Gerald Nunn
    February 7, 2005)
    However, does anyone has any idea to use RowSet to perform paging and sortingn instead of object serialization ??
    Pls share with u other version / method to perform paging in NetuiRepeater using RowSet.
    Though I'm not sure whether is it possible to do.
    Many THanks
    Jennifer

    I realised the sorting function actually re-fetch from the database instead of sorting according to the resultRecords initally fetched!!
    Was it meant to be like that ???

  • Duplicate iterators on range paging VOs

    Hi all,
    For performance reasons we want to use range paging VOs for our application. We have logic where we need to create duplicate iterators on VOs to compute some values. But when access mode of VOs is not scrollable we are getting exceptions that duplicate iterators and rowsets cannot be created. Any suggestions on how to overcome this problem, both in managed beans and in BC code ?
    -Ramku

    Thanks Dimitris for your reply.
    Yes. createRowSetIterator("") throws JBO-25083: Cannot create a secondary iterator on row set {0} because the access mode is forward-only or range-paging.
    Is there a way to change access mode of VO programatically or some trick to work around this problem ?
    -Ramku

  • BC4J Range Paging

    Hi all,
    I am trying to figure out a way of paging through a large set of rows in a view object without loading all the rows into the cache. In BC4J 9.0.4 there seems to be a new API (as described in http://radio.weblogs.com/0118231/stories/2003/01/26/quickOverviewOfNewBc4j904RangePagingFeature.html). However, we are using 9.0.3. Is there any way to have this functionality without implementing it manually (e.g. by setting ROWNUM in the query)?
    Thanks for any hint!
    Markus.

    Hi,
    I have a UIX page which shows 10 members per page. As we are getting "Out of memory" error for one of our clients because of large data, I have enabled RANGE_PAGING feature for that page, followed all the procedures like:
    1. All Rows in Batches of : 13
    2. Checked Passivate State
    3. In the Application module, overridden the method - "PrepareSession"
    with the following code:
    ViewObjectImpl vo = getMemInfoViewMemSearchPage1();
    vo.setAccessMode(RowSet.RANGE_PAGING);
    When I first go to the page, it is showing 10 members out of the entrie count with 1-10 of 30000. But when I click "Next", it is just showing 3.
    By this I believe it is not executing the query for the second set and if I explicitly call the execute Query on View Object, I believe paging may not work.
    I would really appreciate anyone's help in this regard.
    Thanks
    Venkat

  • Windows no longer boots up, paging file error

    I just reinstalled windows on my mac last week because until now I had been running the old beta version of boot camp.
    Just a few days ago I started getting blue screens every so often and it happened again (twice to be exact) yesterday, however one of the times it booted up and informed me I might want to change my paging file size. Not quite sure what this was I went and found the paging file option in settings and found it was clicked on a set size...so I figured I'd set it on the option that lets windows decide for me hoping this would fix the blue screen problem.
    I shut down my computer later that night and now windows won't get to the desktop.
    When I start it up normally it runs the system check (which I cannot skip for some reason) which gets to 84% and then says \windows\Dump3865.tmp is cross-linked on allocation unit 1731772
    Above it it mentions there is an invalid size for my page file.
    I tried booting it up the in safe mode multiple times and every time it generates a list in dos and stops on windows\system32\Drivers\mup.sys
    I really don't want to have to reload windows again. Is there anyway to skip the system check (it says press anykey, but that has never worked for me) or any other way to get my paging files back to the way they were?
    Thank you.
    Oh I'm running leopard with windows XP professional on a macbook pro (last years model) if that helps in anyway.
    Message was edited by: Tommmmm

    A. run chkdsk
    B. What happens if you boot from XP CD and Repair System
    C. system file checker - from command "sfc /scannow"
    http://www.informationweek.com/news/windows/showArticle.jhtml?articleID=18530125 1
    http://windowshelp.microsoft.com/Windows/en-US/Help/f768809f-ed90-415f-a83f-89b4 2108b3551033.mspx

Maybe you are looking for

  • Clearing vendor open items - URGENT !

    Hi all, We are facing an issue when clearing the vendor account F-44. When we compare FBL1N and F-44, there are 8 line items appearing in FBL1N but in F-44 there are only 6 line items appearing. Please guide me as to how to proceed on this and let me

  • Magic Mouse Click Pressure

    I Just recently bought a Magic Mouse and noticed, I was clicking too hard on the LEFT side of the mouse, So, now I see a little more space on the RIGHT SIDE you know what I mean?, this action could be Broke or damage my Magic Mouse through the years?

  • Best Practice Exception Handling.

    Hi, Please consider two scenarios: Scenario 1: DECLARE   l_emp   scott.emp.ename%TYPE;   l_dname scott.dept.dname%TYPE; BEGIN   BEGIN     SELECT ename INTO l_emp FROM emp WHERE empno = 7934;   EXCEPTION     WHEN no_data_found THEN       dbms_output.p

  • Error message: incompatib​le image size when using IMAQ in image processing

    I want to do low pass filter and convolution on an acquired image. When I connect the image to the VI, the message: incompatible image size appears. I have tried to set the border to 3 in IMAQ create, but it does not help. Anyone know how to solve th

  • Troubles with 8.1.6.3 on Solaris 8 Intel

    I can't use java after installing 8.1.6.3 on Solaris 8 Intel. Now, when I execute dbms_java.set_output(1000) I get this: ERROR at line 1: ORA-29532: Java call terminated by uncaught Java exception: java.lang.NegativeArraySizeException ORA-06512: at "