Reinitializing paged table to show first page

hello All,
i am a newbie in JSF. sorry if i am asking something really stupid...
In my application i am showing records with the help of paged table.
My problem is --
say initially i am viewing page 4 (of 10) records on screen 1 and then visit screen2. now when i come back to screen 1 again it still shows page 4.
wheras i want it to be set to page 1.
any help will be greately appreciated.
Thanks a lot.
Amol Chaudhari.

hello All,
i am a newbie in JSF. sorry if i am asking something really stupid...
In my application i am showing records with the help of paged table.
My problem is --
say initially i am viewing page 4 (of 10) records on screen 1 and then visit screen2. now when i come back to screen 1 again it still shows page 4.
wheras i want it to be set to page 1.
any help will be greately appreciated.
Thanks a lot.
Amol Chaudhari.

Similar Messages

  • How do I put static text in a table on the first page only?

    I need to include a small static table on the first page of a report only. A table expects to be tied to a dataset. 
    Is there a way to include a small static table on the first page without linking it to a dataset? Or a workaround?
    Thanks.
    bill ross

    Hi Billrosspaxedi,
    Thanks for your posting.
    It will be benefit for whom have similar issue to resolve it.
    Regards,
    Heidi Duan
    If you have any feedback on our support, please click
    here.
    Heidi Duan
    TechNet Community Support

  • Google images only showing first page. Any solutions yet?

    Hi
    I've recently come across this problem of Google images only showing the first page of images with the rest being blank grey boxes.
    After trawling the web for days it seems this has been an ongoing problem for many for several months now but I haven't seen any solutions that have worked for me.
    I've cleared the cache and temp files, I've un-checked 'disable or replace context menus' on firefox etc.
    It seems to run ok on ie8 but I prefer to use Firefox if at all possible.
    Is there a solution out there?
    I am on XP Pro sp3 using FF 3.6.11

    This was happening to me (only getting one page of images after a search.) I disabled the AdBlock Plus ad-on and the problem was solved.

  • FF4 only shows first page of PDF when linking to document.

    I upgraded to FF4. When I link to a PDF document it only shows the first page.

    I forgot to add that the first page of the PDF document shown on the email is actually an image. I don't know why the mail client does that.

  • Email shows first page of PDF document but won't let me launch iBooks

    Hello, I've been trying to launch iBooks from an email with a PDF attachment. The email shows the first page of the PDF document but there's nothing I can do from there. I can launch iBooks from safari to read the PDF but I need to do it via email.
    Thanks,

    I forgot to add that the first page of the PDF document shown on the email is actually an image. I don't know why the mail client does that.

  • Preview only shows first page of TIF files

    Hello,
    I am having problems with Preview version 3.0.9 (409). When opening a multi-page TIF file, only the first page is displayed. The "page down" button does allow to jump to the following pages. (I am able to view the whole document with other programs). Is this a bug in the program or am I doing something wrong?
    Thanks!

    HI Fidelio,
    I'm not sure if this is a corrupted Preview preference file or not but it can't hurt a thing to try.
    Locate this file: com.apple.preview.plist It's here: /Home/Library/Preferences. Open the Preferences folder, locate that file and drag it to the Trash, empty the Trash and reboot. Your Mac will create a new pref file for you.
    Carolyn

  • Only shows first page after interactive sort.

    We've developed a number of reports on Reporting Services 2005. These are going to be displayed to the users via a browser embedded in an application using the standard ReportServer URLs, with the toolbar and parameters hidden. Parameters are passed via
    the URL.
    As there is no toolbar, for multi-page reports pages are displayed below each other, with a gap and the header row (column names) repeated. This is how we want it to be. The problem comes if you add an interactive sort to a column. It displays fine initially
    with the pages below one another as before, but when you click the interactive sort only the first page is displayed and there is no way to access the subsequent pages as the toolbar is hidden and they're not displayed below as we want them to be. Is there
    any way around this?

    Hi Andy_Cap,
    Thanks for your question.
    According to your description, it seems like for different pages of one specified report, you using one WebBrowser control in your application,
    the WebBrowser’s URL is one report’s standard URL in ReportServer, you had hidden the toolbar and parameters of the report, so you passed the parameters via URL. Although you had added interactive sort to the report, when clicked on the column,
    just the first page changed, the other pages have no effect, right? If I misunderstand your question, please let me know.
    Based on previous understanding, I had tried to reproduce the scenario on my local computer, it works fine. My approach is
    setting the report’s InteractiveSize is 0, thus all of the data will being displayed in one webpage and the Interactive sort has effect.
    1. Double-click the report in the Solution Explore, select Report in the Properties window.
    2. Locate to the property of InteractiveSize, expand it, set the Width’s value is 0cm.
    Hope it help you. If there is anything unclear, please feel free let me know.
    Thanks,
    Sharp Wang
    Please remember to mark the replies as answers if they help you and unmark them if they provide no help.

  • PDF ATTACHMENTS ONLY SHOWING FIRST PAGE in email since upgrading..

    to iPhone 4 and iOS 4.
    Anyone else experiencing this?
    Any ideas?
    HELP!
    Message was edited by: adream8

    i finally got it to work. i went through all my apps and tried to think of anything that could interfere, including iBooks, and removed them using iTunes. I then hard reset my phone and checked to see if i could at least view them as i used to (iBooks) and i was. i then put iBooks back on my phone, checked a PDF in mail and was able to quicklook it or open in iBooks. i was able to then add the other apps back with out losing the functionality.
    apps i removed to get it working:
    Stanza
    AirSharing
    EasyTask
    Bump
    Photoshop Mobile
    hope this helps

  • How to show the first page and then rest will be created in background

    Dear Friends,
    I am suffering from some seriouse issue of slow opening of report....
    I am using vs2005 and asp.net 2.0 and crXI R2 sp4,
    using oledb for getting data from ms sql server 2005.
    Now my one report called accounts ledger
    when i execute the report query it takes 1.03 mins for 515000 records..no issue with it ,
    when i execute the report from report desginer for 515000 records its taking 26 mins . It is generating all
    32000 pages.
    Now same report i run from my web based erp application it takes 30mins to execute 32000 pages now
    this is too much time it is taking and now our client is fedup of ussss..
    So is there any way that we can show First page at the earliest and rest of the pages willl be getting created in background? is it possible ?
    We have to give them the solution as sson as possible...
    can anyone suggest the diff ways to get out of this problem .......
    Please ur co operation will be appriciated....
    thansk

    Hi Mithun,
    Here are a few points related to performance issue. These might be helpful.
    The performance of a report is related to:
    External factors:
    1. The amount of time the database server takes to process the SQL query.
    ( Crystal Reports send the SQL query to the database, the database process it, and returns the data set to Crystal Reports. )
    2. Network traffics.
    3. Local computer processor speed.
    ( When Crystal Reports receives the data set, it generates a temp file to further filter the data when necessary, as well as to group, sort, process formulas, ... )
    4. The number of records returned
    ( If a SQL query returns a large number of records, it will take longer to format and display than if was returning a smaller data set.)
    Report design:
    1. Where is the Record Selection evaluated?
    Ensure your Record Selection Formula can be translated in SQL, so the data can be filter down on the server, otherwise the filtering will be done in a temp file on the local machine which will be much slower.
    They have many functions that cannot be translated in SQL because they may not have a standard SQL for it.
    For example, control structure like IF THEN ELSE cannot be translated into SQL. It will always be evaluated
    in Crystal Reports. But if you use an IF THEN ELSE on a parameter, it will convert the result of the condition to
    SQL, but as soon as uses database fileds in the conditions it will not be translated in SQL.
    2. How many subreports the report contains and in section section they are located.
    Minimise the number of subreports used, or avoid using subreports if possible because
    subreports are reports within a report, and if you have a subreport in a details section, and the report returns 100
    records, the subreport will be evaluated 100 times, so it will query the database 100 times. It is often the biggest
    factor why a report takes a long time to preview.
    3. How many records will be returned to the report.
    Large number of records will slow down the preview of the reports. Ensure you only returns the necessary data on the report, by creating a Record Selection Formula, or basing your report off a Stored Procedure, or a Command Object that only returns the desired data set.
    4. Do you use the special field "Page N of M", or "TotalPageCount"
    When the special field "Page N of M" or "TotalPageCount" is used on a report, it will have to generate each page
    of the report before it displays the first page, therfore it will take more time to display the first page of the report.
    If you want to improve the speed of a report, remove the special field "Page N of M" or "Total Page Count" or formula that uses the function "TotalPageCount". If those aren't use when you view a report it only format the page requested. It won't format the whole report.
    5. Link tables on indexed fields whenever possible.
    6. Remove unused tables, unused formulas, unused running totals from the report.
    7. Suppress unnecessary sections.
    8. For summaries, use conditional formulas instead of running totals when possible.
    9. Whenever possible, limit records through selection, not suppression.
    10. Use SQL expressions to convert fields to be used in record selection instead of using formula functions.
    For example, if you need to concatenate 2 fields together, instead of doing it in a formula, you can create a SQL Expression Field. It will concatenate the fields on the database server, instead of doing in Crystal Reports.
    SQL Expression Fields are added to the SELECT clause of the SQL Query send to the database.
    11. Using one command as the datasource can be faster if you returns only the desired data set. It can be faster if the SQL query written only return the desired data.
    12. Perform grouping on server
    This is only relevant if you only need to return the summary to your report but not the details. It will be faster as less data will be returned to the reports.
    Regards,
    Shweta

  • How to insert values in table using ADF Task flow? I am not able to bind CreateInsert on my first page fragement

    Hi,
    In Jdeveloper 12c I am trying to create a task flow where I have taken 3 pages to insert values in a table. On first page when I put data control of 2 columns as input with label, then on bindings tab I created an action as CreateInsert.
    Now when I am trying to create invoke action in executables then this option is not available.
    How can I create this task flow where values can be inserted in the table on the 3rd page fragment on commit button???
    All 3 pages have data control input boxes to insert values in the table.

    Hi,
    Right click on the task flow page activity, click create page def and add there. If your activity is a page, then you can select the page and generate the pagedef as well.
    Then you can add the executables.
    Thanks.

  • Same table content in two page...

    Hi frends in Adobe forms i have two body page..i want to display same table in two page....while iam trying this issue...
    i got table content displayed in one page but in the second page table content is not displaying..i think i have some problem in binding...help me out......

    Hi Dinesh,
    If u r binding the data to the table in the first page, u can not bind that data again to the other table. Because u can bind the data only once. Next time it ll be empty.
    For this u should hv two table in ur context.. eg: *table1* (1:n)  and *table2* (1:n) with same attributes.
    Then in the code *fetch the data -> set attributes -> bind with table1 node*..
    then, set_attrubutes for table2 -> bind table2
    Regards,
    *Surya*
    Edited by: Surya PK on Oct 2, 2009 4:21 AM

  • Show new page table record based on parameter value in first page in ADF

    I have to show a selected record on a new page whose input query value is in first page. For example I choose to edit an order id  by selecting order id and then pressing Edit Record button then in new page selected order record should show. I am working in ADF JSF pages. I can pass parameter from one page to another by pageFlowScope. but how to display selected record on next page.

    any one to help. I want to use an input parameter on first page to edit the table on new page

  • Paging - Rows in first page also showing in second page: listitemcollectionposition

    Hi,
    I am trying to use the listitemcollectionposition to achieve paging. The pagination is shown, but some of the records in first page are getting displayed in second page as well.
    I have totally 13 records in the list, and paging is applied for 10 items to show. I have set the rowcount to 10.
    private void FillData(string pagingInfo)
    int currentPage = Convert.ToInt32(ViewState["CurrentPage"]);
    uint rowCount = 10; // Default of 10 items per page
    string columnValue = string.Empty;
    string nextPageString = "Paged=TRUE&p_ID={0}&p_";
    string PreviousPageString = "Paged=TRUE&PagedPrev=TRUE&p_ID={0}&p_";
    SPListItemCollection collection;
    collection = GetTestItems(pagingInfo, rowCount);
    public SPListItemCollection GetTestItems(string pagingInfo, uint rowLimit)
    using (SPSite oSite = new SPSite(Sitename))
    using (SPWeb oWeb = oSite.OpenWeb())
    SPList lstPages = oWeb.Lists["Pages"];
    SPQuery sQuery = new SPQuery();
    SPListItemCollection collection;
    sQuery.RowLimit = rowLimit;
    sQuery.Query = "<Where>" +
    "<And>" +
    "<And>" +
    "<Contains><FieldRef Name='PublishingPageLayout'/><Value Type='URL'>TC_NtestPageLayout.aspx</Value></Contains>" +
    "<Eq><FieldRef Name='_ModerationStatus'/><Value Type='ModStat'>0</Value></Eq>" +
    "</And>" +
    "<Eq><FieldRef Name='_Level'/><Value Type='Integer'>1</Value></Eq>" +
    "</And>" +
    "</Where><OrderBy><FieldRef Name='TestLayoutDate' Ascending='FALSE' /></OrderBy>";
    sQuery.ViewFields = string.Concat(
    "<FieldRef Name='PublishingPageLayout' />",
    "<FieldRef Name='Title' />",
    "<FieldRef Name='EncodedAbsUrl' />",
    "<FieldRef Name='TestLayoutDate' />");
    sQuery.ViewFieldsOnly = true;
    if (!string.IsNullOrEmpty(pagingInfo))
    SPListItemCollectionPosition position = new SPListItemCollectionPosition(pagingInfo);
    sQuery.ListItemCollectionPosition = position;
    collection = lstPages.GetItems(sQuery);
    return collection;
    How to get the Paging properly?
    Thanks

    Hi,
    According to your post, my understanding is that you want to display list data using a
    SPGridView with Paging in a visual web part .
    The following code snippet for your reference:
    VisualWebPart1.ascx:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VisualWebPart1.ascx.cs" Inherits="VisualWebPartProject3.VisualWebPart1.VisualWebPart1" %>
    <SharePoint:SPGridView ID="sgvPagersample" runat="server" AutoGenerateColumns="false" DataSourceID="objSample" AllowPaging="True" PageSize="3">
    <Columns>
    <asp:BoundField HeaderText="Title" DataField="Title" />
    <asp:BoundField HeaderText="Test1" DataField="Test1" />
    <asp:BoundField HeaderText="Test2" DataField="Test2" />
    </Columns>
    </SharePoint:SPGridView>
    <asp:ObjectDataSource ID="objSample" runat="server" SelectMethod="BindGridView"></asp:ObjectDataSource>
    <center>
    <SharePoint:SPGridViewPager id="sgvPager" runat="Server" GridViewId="sgvPagersample"></SharePoint:SPGridViewPager>
    </center>
    VisualWebPart1.ascx.cs:
    using System;
    using System.ComponentModel;
    using System.Web.UI.WebControls.WebParts;
    using System.Data;
    using Microsoft.SharePoint;
    namespace VisualWebPartProject3.VisualWebPart1
    [ToolboxItemAttribute(false)]
    public partial class VisualWebPart1 : WebPart
    // Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
    // the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
    // for production. Because the SecurityPermission attribute bypasses the security check for callers of
    // your constructor, it's not recommended for production purposes.
    // [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
    public VisualWebPart1()
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    protected void Page_Load(object sender, EventArgs e)
    objSample.TypeName = this.GetType().AssemblyQualifiedName;
    public DataTable BindGridView()
    SPWeb currentWeb = SPContext.Current.Web;
    SPList lstEmployee = currentWeb.Lists["CustomList4"];
    SPQuery sQuery = new SPQuery();
    sQuery.Query = "<OrderBy><FieldRef Name='ID' Ascending='False' /></OrderBy>";
    SPListItemCollection myColl = lstEmployee.GetItems(sQuery);
    return myColl.GetDataTable();
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Dennis Guo
    TechNet Community Support

  • Why do PDF links in email open in Safari but only the first page shows and paging down is unavailable?

    PDF files in emails open in Quick time in safari gut only show the first page and scrolling to later pages is not availaable

    Try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.

  • In two page view preview shows the first page on its own

    In two page view preview shows the first page on its own. I have recently downloaded an ebook which has image based tutorials and the pages are in such a way that pages 3 and 4 should be seen next to each other. Preview seems to want to have pages 1 on its own therefore making this rather difficult. Any help on resolving this issue would be appreciated.

    Try selecting the first page, and then from the "Edit" menu select "insert blank page". This should put a blank page at the beginning of the document, shifting all pages down one and putting them in the order you want for your display.

Maybe you are looking for

  • Yosemite won't allow me to install Logic Pro 9?

    Just finished a clean install and upgraded to Yosemite but now getting 'failed' when trying to install Logic Pro 9. I know i need to upgrade Logic but how can i get the upgrade if i can't install from my Logic Pro 9 CD's?

  • Error while uploading the smartforms

    Hi Experts, I have uploaded the smartforms for CRM create sales order but when i upload the smartform and activate it gives error message that "A serious error has occurred The transaction had to be terminated' Press the "Yes" button to download the

  • GRIR question

    Hi Guru, Could you please advise the system entry when we clear the GRIR balances via MR11? I believe, clearing will force the GRIR to balance, but I can't see any entry posted. Is there a debit entry to GRIR account upon clearing? What would be the

  • Program forced to close and video source vanished help

    Help, i completed a wedding film then had to make a few adjustments to finalize the project then when i made the changes something happened and i had to force down the project, had a cup of tea after reloading and all footage was red and offline. I g

  • Forwarding documents to Record Centre

    I've created a record centre and defined a CT within it. Added the CT to Drop and Record library. So when a document is added to the drop box, fill in the metadata and submitted the document automatically is routed to the correct record library. grea