Problem with - "Navigate N rows at a time using DataTags"

I have worked with the example on this link:
http://otn.oracle.com/docs/products/jdev/howtos/jsp/traverse_n.ht
ml
It works fine in case I am using the View Object created in the
Package as the example is using.
However, this sample does not navigate; through record as
expected and keep displaying same records, when I create dynamic
view using CreateViewObject tag like this:
<jbo:CreateViewObject appid="TravelPkgModule" name="test">
     select vc_comp_code,vc_voucher_no from hd_travel_voucher
</jbo:CreateViewObject
Help me in navigating with dynamic view objects.

moreover,
suppose total records in a set are = 100
and range size = 10
on first click on next set, records from 1 to 10 are displayed.
on second click on next set, records from 11 to 20 are displayed.
on third or N'th click on next set, records from 11 to 20 are
displayed and not from 21 onwards are displayed.
Code attached.
<%@ page errorPage="errorpage.jsp"
contentType="text/html;charset=WINDOWS-1252"
import="java.util.*,java.text.*" %>
<%@ page contentType="text/html;charset=WINDOWS-1252"%>
<HTML>
<BODY>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule
configname="TravelPkg.TravelPkgModule.TravelPkgModuleLocal"
id="TravelPkgModule" username="ebiz" password="ebiz" />
<jbo:DataSource id="Qvoucher" appid="TravelPkgModule"
viewobject="HdTravelVoucherView" rangesize="2">
</jbo:DataSource>
<%
%>
Next Set
Previous Set
<table border="1">
<%
oracle.jbo.RowSet rs = Qvoucher.getRowSet(); // see if we have
a navigation command
if(request.getParameter("nav") != null)
     String sNavigation = request.getParameter("nav");
if(sNavigation.equalsIgnoreCase("nextset"))
     %>kiran = <%     
     rs.scrollRange(rs.getRangeSize());
else
     rs.scrollRange(-rs.getRangeSize());
oracle.jbo.Row rows[] = rs.getAllRowsInRange();
for(int i = 0; i < rows.length; i++)
     rs.setCurrentRow(rows);%>
     <tr><td>
     <jbo:ShowValue datasource="Qvoucher"
dataitem="VcEmpCode"></jbo:ShowValue></td>
     <td><jbo:ShowValue datasource="Qvoucher"
dataitem="VcVoucherNo"></jbo:ShowValue></td>
<% }%>
LENGHT = <%=rows.length%>
</table></BODY></HTML>
<jbo:ReleasePageResources releasemode="Reserved" />

Similar Messages

  • With dynamic CreateViewObject How To "Navigate N rows at a time using DataTags" fails

    I have worked with the example on this link:
    http://otn.oracle.com/docs/products/jdev/howtos/jsp/traverse_n.ht
    ml
    It works fine in case I am using the View Object created in the
    Package as the example is using.
    However, this sample does not navigate; through record as
    expected and keep displaying same records, when I create dynamic
    view using CreateViewObject tag like this:
    <jbo:CreateViewObject appid="TravelPkgModule" name="test">
    select vc_comp_code,vc_voucher_no from hd_travel_voucher
    </jbo:CreateViewObject
    Help me in navigating with dynamic view objects.

    moreover,
    suppose total records in a set are = 100
    and range size = 10
    on first click on next set, records from 1 to 10 are displayed.
    on second click on next set, records from 11 to 20 are displayed.
    on third or N'th click on next set, records from 11 to 20 are
    displayed and not from 21 onwards are displayed.
    Code attached.
    <%@ page errorPage="errorpage.jsp"
    contentType="text/html;charset=WINDOWS-1252"
    import="java.util.*,java.text.*" %>
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <HTML>
    <BODY>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule
    configname="TravelPkg.TravelPkgModule.TravelPkgModuleLocal"
    id="TravelPkgModule" username="ebiz" password="ebiz" />
    <jbo:DataSource id="Qvoucher" appid="TravelPkgModule"
    viewobject="HdTravelVoucherView" rangesize="2">
    </jbo:DataSource>
    <%
    %>
    Next Set
    Previous Set
    <table border="1">
    <%
    oracle.jbo.RowSet rs = Qvoucher.getRowSet(); // see if we have
    a navigation command
    if(request.getParameter("nav") != null)
         String sNavigation = request.getParameter("nav");
    if(sNavigation.equalsIgnoreCase("nextset"))
         %>kiran = <%     
         rs.scrollRange(rs.getRangeSize());
    else
         rs.scrollRange(-rs.getRangeSize());
    oracle.jbo.Row rows[] = rs.getAllRowsInRange();
    for(int i = 0; i < rows.length; i++)
         rs.setCurrentRow(rows);%>
         <tr><td>
         <jbo:ShowValue datasource="Qvoucher"
    dataitem="VcEmpCode"></jbo:ShowValue></td>
         <td><jbo:ShowValue datasource="Qvoucher"
    dataitem="VcVoucherNo"></jbo:ShowValue></td>
    <% }%>
    LENGHT = <%=rows.length%>
    </table></BODY></HTML>
    <jbo:ReleasePageResources releasemode="Reserved" />

  • Problems with Click a row in the Table

    Dear All,
    I am new to Java GUI. I got some problems with clicking the row in a table.
    My table allows the user to delete some rows fromt the table. When the user click a row or some rows in my table, the delete button should be enabled. It does work in most of the time. But sometimes, even the row being hight lighted, the button is still not enabled.
    Do you have any idea for what can cause this problem?
    What I did is :
    1. add a mouse listener to the table
    _userTable.addMouseListener(new java.awt.event.MouseAdapter()
    public void mouseClicked(MouseEvent e)
    userList_mouseClicked(e);
    2. then, if the row being selected is > 0, I will enable my delete button.
    Can anybody help?
    Thanks!

    Dear All,
    I am getting problems with single selection in a table. Although I have set the selection model to single, if I select a row int the table and then depress Ctrl/Shift multiple rows are selected.
    The code for set single selection is :
    ListSelectionModel seleModel = myTable.getSelectionModel();
    seleModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    Any idea about this? Is this a bug in JAVA?
    Thanks!

  • I have problem with adobe bridge cs6. Every time I open it Bridge tells me to Purge Cache. I have CS

    I have problem with adobe bridge cs6. Every time I open it Bridge tells me to Purge Cache. I have CS6 on two computers and it works fine on one of them. I have tried to reinstall it without succeeding to fix the problem. Does anyone have the same problem and a solution to it?
    "Bridge encountered a problem and is unable to read the cache. Please try purging the central cache in Cache Preferences to correct the situation."

    You must have a Mac.  Try this.
    Quit Bridge, from user library (NOT system and root library) preferences folder find and delete the com.adobe.bridge5.plist file manual. Do this also in same user library caches folder (Caches/Adobe/Bridge CS6) and inhere find and the folder called 'cache' and drag it to the trash.
    restart Bridge holding down option key and choose reset preferences, then try again.

  • I am having some huge problems with my colorspace settings. Every time I upload my raw files from my Canon 5D mark II or 6D the pics are perfect in color. That includes the back of my camera, the pic viewer on my macbook pro, and previews. They even look

    I am having some huge problems with my colorspace settings. Every time I upload my raw files from my Canon 5D mark II or 6D the pics are perfect in color. That includes the back of my camera, the pic viewer on my macbook pro, and previews. They even look normal when I first open them in photoshop. I will edit, save, and then realize once i've sent it to myself to test the color is WAY off. This only happens in photoshop. I've read some forums and have tried different things, but it seems to be making it worse. PLEASE HELP! Even viewing the saved image on the mac's pic viewer is way off once i've edited in photoshop. I am having to adjust all my colors by emailing myself to test. Its just getting ridiculous.

    Check the color space in camera raw, the options are in the link at the bottom of the dialog box. Then when saving make sure you save it to the srgb color space when sending to others. Not all programs understand color space and or will default to srgb. That won't necessarily mean it will be accurate, but it will put it in the ballpark. Using save for web will use the srgb color space.

  • Was there a problem with the last update? Every time I try to watch a video on the net it goes back to the home screen

    Was there a problem with the last update? Every time I try to watch videos it goes back to the home screen

    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • HT1338 I have a problem with the calendar and notifications, every time I dismiss or snooze locks up and hangs, just reboot goes.

    I have a problem with the calendar and notifications, every time I dismiss or snooze locks up and hangs, just reboot goes.

    Have you run Disk Utility/Repair Permissions and/or deleted the .plist from your user library To see the user library, hold down the option key while using the Finder Go to Folder command.

  • I have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

  • Problem with Thunderbird email: When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others rece

    Problem with Thunderbird email:
    When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others receive it but it does not come to my email Inbox. The same problem occurs when I send the email to the mailing list addresses individually. When I send a simple test message to myself, I do receive it in my Inbox. Can you help me??
    Bob Greenman

    Are you using either cc or bcc? Is googlemail involved? Some email providers suppress cc's and bcc's to oneself since you will have a copy in your Sent folder.

  • There appear to be big problems with Mavericks Mail, particularly if it's used for Gmail. Have other users noticed that it slows to a crawl and can't reload the contents of a folder instantly....Is there a fix coming?

    There appear to be big problems with Mavericks Mail, particularly if it's used for Gmail. Have other users noticed that it slows to a crawl and can't reload the contents of a folder instantly....Is there a fix coming?

    There is a large thread relating to Gmail, but nothing that sounds like that.
    Nobody here knows what Apple is going to do.
    You might try removing the Gmail account and then add it back in.

  • Problems with Zen Vision M Series Media Explorer using 32-bit Vista Home Prem

    I'm currently experiences problems with Zen Vision M Series Media Explorer using 32-bit Vista Home Premium. When i'm trying?to burn CD's onto my Zen after?I burn the first one then click to burn another it freezes. Is there any patches i should be downloading to solve this problem??Can anyone help? Please!!!!!!!!
    ?Message Edited by studandydon on 07-29-20070:38 AM

    I have the same problem. It all started yesterday when I was installing the cd drivers in my new computer. I have searched numerous forums and some people had to return the product. Please admins help on this issue as I understand it is very serious.

  • I have a problem with my iphone 5s. recording a vid using back lens and no sound but on the rear lens there is a clear voice.. anyone with any answers???

    I have a problem with my iphone 5s. recording a vid using back lens and no sound but on the rear lens there is a clear voice.. anyone with any answers???

    Hi, Nurlynn.  
    Thank you for visiting Apple Support Communities.  
    I would need clarification on this issue to provide a better answer.  However, here are a couple articles that I would go through when experiencing issues with the Mic and Camera.  
    If your voice is too faint or sounds unclear using iPhone, or iPod touch
    http://support.apple.com/kb/ts5183
    Get help with the camera on your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT6350
    Cheers, 
    Jason H.  

  • Hi, i have a problem with my credit card so want to use a card from another country but cannot change my country settings

    hi, i have a problem with my credit card so want to use a card froma different country but cannot change my country settings

    Hi balalbas,
    If you are having issues changing the country associated with your iTunes Store account, you may find the following article helpful:
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Regards,
    - Brenden

  • Problem with one table taking a long time to query.

    We have one table with around 6000 rows and 30 columns. It has 1 primary key, 5 indexes, 2 foreign Keys
    select primarykeycolumn from table
    it takes 0.003 seconds.
    If we add a where clause on an indexed column it takes 0.003 seconds approx.
    If we add a simple where clause on ANY column that is not indexed then it takes around 7 seconds!
    I have done a create table test as (select * from table) recreated all constraints and this again take milliseconds!
    The only thing i noticed was that the table had a long RAW in it and the phyical size of it via dba_segments was 777mb. I dropped this column but the speed has not improved. But then again the dba_segment size has not changed?
    Is there anything i can check or anything i can do to see where the problem could be?
    Hope i have made myself clear.
    Thanks in advance

    Is this what is required?
    PLAN_TABLE_OUTPUT
    Plan hash value: 3474698526
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 10 | 21582 (1)| 00:04:19 |
    |* 1 | TABLE ACCESS FULL| SFJR | 1 | 10 | 21582 (1)| 00:04:19 |
    recursive calls     1
    db block gets     0
    consistent gets     98098
    physical reads     95014
    redo size     0
    bytes sent via SQL*Net to client     725
    bytes received via SQL*Net from client     606
    SQL*Net roundtrips to/from client     2
    sorts (memory)     1
    sorts (disk)     0

  • Problem with a long row for printing

    hi,
    I have a problem with long row in the JTable.
    I want to span the long row into 2 rows so that I can take the print of the table.

    Would it not be easier to wrap the data in the row; you can easilly modify the height of the row in the JTable - setRowHeight().
    Also, if it only affects printing, you could take care of this when you are formatting each line ready for output.

Maybe you are looking for

  • Using PDF Printer TO Print Multiple Word Docs At Once.

    I Have Just upgraded from acrobat to acrobat 3d. In Acrobat 5 i was able to select a batch of word document (150+ usually) and use the send to command to send them to the acrobat distiller and each document would open one at a time print and then clo

  • ITunes will not start up, FAQ did not work

    Hi, I have a problem with starting up iTunes. I first double clicked on the icon on my desktop and then it comes out with an error message, "iTunes has encountered a problem and needs to close." When I click on the error report it says, "AppName: itu

  • Is telnet use local tnsnames.ora?

    I was suprise that when the local tnsnames.ora of client was not correct,sqlplus at telnet can't connect to server,and when the file was modify,I can use sqlplus connect to oracle through telnet. is telnet use local tnsnames.ora?

  • Table For OBYU and OBYG transactions

    Hi all, I need to create a report in HR, where i need entries maintained through transaction OBYU and OBYG. Could anyone tell me the table names to get the contents of those transactions. Thanks in Advance. Regards Ravi

  • Prin to go

    for all you people with windows 7 and avg virus control it is very easy to fix problem with print to go. Just desactivate avg temporarily when you want to use print to go.It works great but remember to turn it back on afterwards....I hope this helps.