Urgent - displaying maximum of 5 items per page

I have 10 items in the session and i want to display a maximum of 5 items on a page. The page will also contain next and previous buttons.
In my JSP I iterate through the items as its returning a collection to display them but i am still unable to display 5 on one page and 5 on the other, it seems to just display all 10 on the one page. Can anyone help who may have done something similar to this .

Thanks for that. I''ve managed to display the 5 items but it doesnt seem to recognise that there are more than 5 items so to display the next and previous buttons. I've pasted the code below to check the faultcount and to display the 5 items ....
<%-- The code below is to display only 5 faults per page --%>
<%!int i = 0; %>
<%!int pageSize = 5; %>
<%!int pageCount; %>
<%!int faultCount; %>
<%!int startNo; %>
<%!int endNo; %>
<%!int pageNo; %>
<%
//get the faultcount
Collection lFaults = (Collection)session.getAttribute(RequestParametersConstants.SessionAttributeConstants.FAULTS_LIST);
Iterator allFaults = null;      
FaultDetail faultdet = null;
pageCount = faultCount/pageSize;
if (faultCount%pageSize != 0) {
pageCount++;
//retrieve the page to be displayed
if (request.getParameter("Page") == null || request.getParameter("Page")== "")
pageNo = 1;
else
pageNo = Integer.parseInt(request.getParameter("Page"));
//setting the starting record and end record to which is to be displayed
startNo = ((pageNo-1) * pageSize) + 1;
endNo = (pageNo==pageCount) ? faultCount : (pageNo * pageSize);
%>
allFaults = lFaults.iterator();     
while ((allFaults.hasNext()) &&(startNo <= endNo))
startNo++;
faultdet = (FaultDetail)allFaults.next();          
session.setAttribute(RequestParametersConstants.SessionAttributeConstants.FAULTS_DETAIL, faultdet);
%>
<tr onClick="rowClicked();" >
<td><p><h4 ALIGN="LEFT"><%=DateConstants.DATE_FORMAT.format(faultdet.getReceivedDate())%></h4><p></td>
<td WIDTH="15%"><p><h4 ALIGN="LEFT"><%=faultdet.getDescription()%></h4></p></td>
<td WIDTH="20%"><p><h4 ALIGN="LEFT"><%=faultdet.getLocation()%></h4></p></td>     
<tr>
<%
%>

Similar Messages

  • IBE: Items Per Page for Display profile at Responsibility level

    Hi,
    we would like to have different number of items per page for different sites. We thought we would achieve it by setting profile "IBE: Items Per Page for Display" at the responsibility level and have unique responsibilities to access different sites.
    However, I saw that by default profile "IBE: Items Per Page for Display" is not visible at the responsibility level. Can I alter it to be visible at responsibility level in the profile definition and then set it at the responsibility level?
    Kindly help.
    Regards
    Harsha.

    I tried to change at SERV level and still the profile never gets updated. Kindly help.

  • One line item per page --- Urgent

    Hello,
    I am printing an order. But while printing an order I have
    a header
    main
    a footer.
    In main I have to print line items. Now while printing line items ,  my requirement is print ONLY ONE LINE ITEM PER PAGE.
    For every page header and footer should repeat.
    I am trying with AT NEW command but it is giving error. I am using table to loop on item data table.
    Please tell me urgently how to do it.
    Thanks,
    Madhura

    Hi,
    If you want to continue using the table this is what you can do.
    Im assuming u only use the table for printing line items
    So
    Create a loop above the table
    Place the table inside the loop.
    Uncheck the internal table check box inside the tables Data tab
    and copy that looping information into the loop.
    After the table, and inside the loop ..place the command node.
    Also place whatever data in ther main section of the Table now in the header of the table
    Edited by: Nehal Fonseca on Apr 23, 2008 6:35 PM
    Edited by: Nehal Fonseca on Apr 23, 2008 6:36 PM

  • Restrict Number of Display Items Per Page

    Dear all,
    Can you guys please kindly advise me on how to restrict the number of items(eg. 10 items per page) being display in a JSP page, and leave the remaining items that is not being display to other pages, maybe page 2 or page 3 depending on the number of items from the search result?
    Thanks alot.
    Warmest regards,
    Keng Yiam

    Word of advice ... don't post your messages multiple times because noone will answer you.
    roughly;
    number of results / 10 = number of pages to view all results
    then loop 10 times over the result set. use the cursor of ResultSet

  • How to submit a bug report for OSB? - restore fails if number of items per page is changed from the default of 30

    In the OSB web gui, one of my users found that if the number of items per page is changed from the default of 30, the restore of the file will fail.  He tested this using recent versions of Firefox and IE.  We have verified this to also be the case using Chrome.
    In a directory containing over 100,000 files, moving 30 at a time to find the one to be restored is a very frustrating user experience.
    How do I file a bug report for this issue?  Is there a workaround for this bug to enable my users to more easily find the file to restore without being restricted to the default of 30 items per page?

    Yes there is a bug in the webtool in the current release. You can use the commandline obtool to do the restore, that is much faster and works fine.
    Thanks
    Rich

  • How to avoid the hard limit of 100 column and items per page?

    I have created a Form on a Table with Report. I need to create/edit approximately 175 items. The items on the Form have a limit of 100 column and items per page. What is the best way to carry the remaining items to another Form and doing an insert or update? or is the 100 column limit on the insert/update per table as well?
    Thank You.

    Hi Rick,
    The 100 item limit is on a page, not a table, so you shouldn't have any trouble with your insert or update processes.
    Here's a thought:
    Report currently has a column that links to the first page of items (page 14) with the retrieved row. Presumably you also have a Add New button on the report page that links to page 14 for a new row.
    Define a Next button on page 14 that branches to the second page of items (page 16). Also define a Previous button on page 16 to return to page 14. But page 16 would be the only page with a Save button.
    Now, if user clicks Add New, user will get a blank page 14. Once user enters the info and passes validation they click Next and will be sent to page 16 to enter the remaining info and Save.
    If user clicks one of the column links, they will be brought to page 14 with the clicked row - they can change whatever info there and click Next, or just click Next, to get to page 16. After any changes are made, they click Save.
    I'm assuming you've been thru the tutorials and realize that you'd really have two Save buttons defined for page 16 - one conditional on your primary key item having a value (existing record) and one conditional on it being null (new record) - check out the tutorials for more info, but this is how the application would know whether to run an insert process or an update process.
    Hope this all makes sense and can help,
    John

  • Item "Start/stop table":  Counts towards 100 item per page limit?

    One of my form pages has many items and aligning them all just right is quite a chore.
    I found myself using lots of those handy "start/stop table" items instead of fighting with the colspan, rowspan, New Line/New Field attributes.
    Question: Do these "start/stop table" items count toward the 100 item per page limit?
    [I hope the answer is No]
    Thanks

    Vikas - The answer is no. It's only when the counter gets incremented, e.g., between p_t01 and p_t02, ... You can see that the stop-and-start (not star/stop) items do not generate html items with such a sequence component.
    Scott

  • Maximum Number of record Per page using XML Publisher with RTF template

    Hi
    I am creating customer statement and want to show only 20 records per page. How we can set maximum number of repord per page in rtf template.
    Thanks
    Ravi

    Ravi,
    I hope you are already done with this. In the invoice there is a nice example you can use on the xml blogs.
    You limit the number of lines per page when you use the xsl commands like this in your template:
    <xsl:variable name="lpp" select="number(13)"/>
    <?for-each@section:LIST_G_INVOICE?>
    <xsl:variable xdofo:ctx="incontext" name="invLines" select=".//G_LINES[LINE_TYPE='LINE']"/>
    <?for-each:$invLines?> <?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    and then you have the table where you have the data
    <?for-each:$invLines?><?if:position()>=$start and position()<$start+$lpp?>
    and all your lines
    and then
    <?end if?><?end for-each?>

  • Can we change [maximum number of records per page] property at run time

    can we change [maximum number of records per page] property at run time in report 6i

    Ravi,
    I hope you are already done with this. In the invoice there is a nice example you can use on the xml blogs.
    You limit the number of lines per page when you use the xsl commands like this in your template:
    <xsl:variable name="lpp" select="number(13)"/>
    <?for-each@section:LIST_G_INVOICE?>
    <xsl:variable xdofo:ctx="incontext" name="invLines" select=".//G_LINES[LINE_TYPE='LINE']"/>
    <?for-each:$invLines?> <?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    and then you have the table where you have the data
    <?for-each:$invLines?><?if:position()>=$start and position()<$start+$lpp?>
    and all your lines
    and then
    <?end if?><?end for-each?>

  • Changing Maximum Number of Rows Per Page to Include

    I am trying to change the "Maximum Number of Rows Per Page to Include" using Enterprise Manager > Coreapplication > Capacity Management > Performance.
    It was default to 75. I need to change it to around 5,000. I have a report which generates 5,000 records and I use Agent to send it to our user at a scheduled time.
    I change 75 to 5000, activate the changes and restart the BI. After restarting it automatically reverts back to 75.
    Has anyone experienced this?
    My instanceconfig has contains this:
    <Views>
    <Pivot>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control-->
    <DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control-->
    <DefaultRowsDisplayedInDownload>5000000</DefaultRowsDisplayedInDownload>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control-->
    <DisableAutoPreview>false</DisableAutoPreview>
    <MaxCells>1920000</MaxCells>
    <MaxVisiblePages>2500</MaxVisiblePages>
    <MaxVisibleRows>1000000</MaxVisibleRows>
    <MaxVisibleSections>5000</MaxVisibleSections>
    </Pivot>
    <Table>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control-->
    <DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Enterprise Manager Fusion Middleware Control-->
    <DefaultRowsDisplayedInDownload>5000000</DefaultRowsDisplayedInDownload>
    <MaxCells>1920000</MaxCells>
    <MaxVisiblePages>2500</MaxVisiblePages>
    <MaxVisibleRows>1000000</MaxVisibleRows>
    <MaxVisibleSections>2000000</MaxVisibleSections>
    </Table>
    </Views>
    Any help would be greatly appreciated.
    Thanks!

    Hi,
    Editing in EM should change the settings. Stop all the services and restart
    In the individual reports for tables and pivot tables >> Edit the table properties and add the number of 'Rows Per Page'
    Hope this helped/ answered
    Regards
    MuRam

  • Display column titles only once per page

    Hello,
    I am a newbie to BIP (R12.1.3). Below is how the output data shows up in my custom template:
    Vendor type lookup : Expense
    Vendor no: A12345 Vendor Name: Test Vendor1 Vendor Category: Expense - Construction
    VENDOR SITE INVOICE# INVOICE DATE DUE DATE INVCT AMT REM AMT PAYMENT METHOD
    ======== ====== ========= ====== ====== ====== ============
    Kannapolis A#12345 03-MAR-12 15-MAR-12 1000.00 1000.00 Check
    Vendor no: B12345 Vendor Name: Test Vendor2 Vendor Category: Expense - Rents
    VENDOR SITE INVOICE# INVOICE DATE DUE DATE INVCT AMT REM AMT PAYMENT METHOD
    ======== ====== ========= ====== ====== ====== ============
    Test Site B#12345 03-MAR-12 15-MAR-12 1500.00 1500.00 EFT
    The column titles repeat for each vendor since the titles are in the for-each loop under the vendor grouping. However, is there a way to restrict the titles to show up only once per page on all the pages? I tried putting the titles outside the vendor grouping but with in the vendor type lookup grouping. It is displaying the titles only on page1.
    Thanks,
    Monkey

    Hi, could you try Inserting the code <?if:position()=1?> before the header of your template and the code <?end if?> after the header of your template.
    See the a sample code below:
    <?if:position()=1?>
    VENDOR SITE INVOICE# INVOICE DATE DUE DATE INVCT AMT REM AMT PAYMENT METHOD
    <?end if?>
    Thanks,
    mr_bip_learner

  • Setting maximum number of records per page

    Hi All,
    Can anyone tell me how can i set the maximum number of records that should be printed per page in a XML REPORT. How can i write the XML tag for this.
    thanks in advance,
    siddam

    Hi ,
    Please check bi publisher blog from TIM.
    http://blogs.oracle.com/xmlpublisher/2007/03/27
    it will help you out.
    Regards
    Ratnesh

  • How to make a table to display perticular number of rows per page??

    Hi,
    Can anybody tell how to ristrict the number of rows per page in SSRS?
    I have a table in my report.I know we have to use" =Int(RowNumber(Nothing)/25)" in group expression.But I already have 3 group expression in my table.Where to write??
    Thanks.

    Hi Tony ,
    Just wanted to know will this solution work ;
    I am having a report and its using a grouping expression on “Group on 
    (=Field!Salelocation)” when it add another group on the details and have the page calculation such as (=Ceiling(RowNumber(Nothing)/20)) 
    and assign the page break at to the point of saving its ok , when trying to upload the report then it throws the following error .
    I have tried your solution trying to give the page calculation the upper group but still the following error comes back
    “A group expression for the grouping ‘table2_Group1’ uses the RowNumber function with a scope parameter that is not valid. When used in a group expression, the
    value of the scope parameter of RowNumber must equal the name of the group directly containing the current group. (rsInvalidGroupExpressionScope)
    Get Online Help
    A group expression for the grouping ‘table2_Group2’ uses the RowNumber   function with a scope parameter that is not valid. When
    used in a group   expression, the value of the scope parameter of RowNumber must equal the name   of the group directly containing the current group.   (rsInvalidGroupExpressionScope)
    Get Online Help
    Will you able to assist me on this.

  • Can you display 4 addresses from database per page from Excel?

    ok, to be more specific...
    I have a 4.25 x 5.5 postcard that I want to print 4 to a page.  I also have an Excel database with mailing address.  Im well aware how to have addresses print into my document doing a mail merge but Im only aware of this working with one address per page.  What Im doing is 4 different addresses per page.  Is this possible?

    Thanks, this will be VERY handy in the future!  Mail merge programs are such a ******* pain but ID makes it a heck of a lot easier!
    One more question, I tried a test with a 5.5 x 4.25 card with address fields in the middle.  I dropped it on the top left of an 8.5 x 11 layout and told it in the options to not resize anything.  I ran the merge and it did put 4 different address for each page on about 5 pages.  That is exactly what I wanted.  It was giving me a message when I did it this way or when I was practicing and doing it wrong that I didnt understand what it meant, "No overset text was generated when merging records".  Everything seemed to work properly so what does this mean?

  • How to print one line item per page?

    Hi,
    I have to develop a smartform for printing tags (labels) and i am stuck. My problem is:
    If more than one materials are available in one document, one material will be printed per one page. So if three line items are there, three pages of print are there.
    Can someone please tell me how to go about it?

    Hello Richa,
    it all depends if you are printing the Header data or not.
    In your case I can recommend a Loop over the items in the Form processing and in each loop step you craete an entire page print out, this should be possible.
    If you need to print the header, this could be done prior to entering the loop.
    I hope this helps you in finding a solution
    Regards
    Isabelle

Maybe you are looking for