Issue in pagination

Hi,
We have a table which is showing 10 records at a time. We have a single selection associated with this table. On page load, 10 records will be displayed and the first record will be selected.
When i click on say 4th record, we are doing firePartialAction(RuleSelect) and capturing that event. This selection of 4th records works fine i.e. when i select 4th record, page starts loading and once the page loads 4th record is selected.
Now suppose if i Click on NEXT(10-20) records. Next 10 records(11-20) are displayed and 11th record which will be the first record of the second page will get selected once that event(GOTO) ends. We are capturing this event as well.
Now if on the second page i try to select some other record, say 15th record i.e 5th record of the second page,the page starts loading and it navigates to the last set of record of the table ie. If total number of records are 35 in that table, on selection of 15th record, it will display me records from 30-35 instead of displaying 15th record as selected.
My ques is when the firePartialAction(RuleSelect) works fine on the First page of the table i.e. for records(1-10), then why on selection of 15th record after pagination, its showing me the last set of records.
Please let me, how i can fix this issue.
I tried putting vo.reset() in some of the places, but its showing me some absurd output.
Thanks in advance
Saurabh

hi,
The table associated with RuleHeaderDetails is causing the Issue. PFB the code which gets fired on selection of RadioButton on the table.
Controller Code
===============
if ("RuleSelect".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
numRuleID = (Number)am.invokeMethod("getSelectedRule");
if("N".equals(ChangesCheck))
ChangesCheck = (String)am.invokeMethod("CheckPriorityChanges");
numRuleID = (Number)am.invokeMethod("getSelectHeaderRowEvent");
if (!(numRuleID.intValue() == 0))
Serializable[] parameters = { numRuleID.toString() };
String strCount = (String)am.invokeMethod("initHeaderDetails", parameters);
AM Code
=======
public String CheckPriorityChanges()
OAViewObject vo = (OAViewObject)findViewObject("RuleHdrDetailsVO1");
if(!vo.isPreparedForExecution())
return "N";
Row rowHdr1 = vo.first();
int iTest = 0;
String returnStatus = "N";
Number numPriorityValue = new Number(0);
Number numRuleId = null;
while(rowHdr1 != null)
numPriorityValue = (Number)rowHdr1.getAttribute("RulePriority");
numRuleId = (Number)rowHdr1.getAttribute("RuleId");
if(numPriorityValue == null)
numPriorityValue = new Number(0);
OADBTransaction txn = (OADBTransaction)getDBTransaction();
CallableStatement cs = txn.createCallableStatement("Test", 1);
String procCall = "begin utilities_pkg.check_rule_priority_p("+
"p_out_v_return_status => :1,"+
"p_in_n_rule_id => :2,"+
"p_in_n_rule_priority => :3); end;";
cs = txn.createCallableStatement(procCall, 1);
try
cs.registerOutParameter(1,Types.VARCHAR);
cs.setInt(2,numRuleId.intValue());
cs.setInt(3,numPriorityValue.intValue());
cs.execute();
returnStatus = cs.getString(1);
catch(Exception excp)
System.out.println("Exception - "+excp.getMessage());
if("Y".equals(returnStatus))
break;
vo.setCurrentRow(rowHdr1);
rowHdr1 = vo.next();
vo.reset();
return returnStatus;
public Number getSelectHeaderRowEvent()
Number ReturnValue = new Number(0);
OAViewObject vo = (OAViewObject)findViewObject("RuleHdrDetailsVO1");
OARow row = (OARow)vo.getFirstFilteredRow("Select","Y");
if (row == null)
RuleDefnDetailsVOImpl vo2 = getRuleDefnDetailsVO1();
vo2.setWhereClauseParams(null);
vo2.setWhereClauseParam(0,"0");
vo2.setMaxFetchSize(-1);
vo2.executeQuery();
return ReturnValue;
if (row != null)
System.out.println("In here");
vo.setCurrentRow(row);
return ReturnValue;
} // getSelectHeaderRowEvent()
public String initHeaderDetails(String RuleID)
String strRuleStatus = "";
RuleHdrPopUpVOImpl Hdrvo = getRuleHdrPopUpVO1();
Hdrvo.setWhereClauseParams(null);
Hdrvo.setWhereClauseParam(0,RuleID);
Hdrvo.setMaxFetchSize(-1);
Hdrvo.executeQuery();
OARow hdrRow = (OARow)Hdrvo.first();
gstrRuleName = (String)hdrRow.getAttribute("RuleName");
OAViewObject voRulHdr = (OAViewObject)findViewObject("RuleHdrDetailsVO1");
OARow rowRulHdr = (OARow)voRulHdr.first();
int iCount = 1;
while (!(rowRulHdr.getAttribute("RuleId").equals(RuleID)))
iCount++;
rowRulHdr = (OARow)voRulHdr.next();
voRulHdr.setCurrentRow(rowRulHdr);
voRulHdr.reset();
return strCount;
Thanks
Saurabh

Similar Messages

  • Issue in pagination of pivotal view (10 rows per page)???

    Hi All,
    I’m implementing pagination in pivotal view, report has to show 10 records per page.
    Report has to show for 8 weeks data per employee and 10 employees information per page, however report is displaying data for more than 10 employees and for a week single week, in second page its showing for 2 week and so on ….
    I used all the following functions however issue persists.
    1. FLOOR(RCOUNT(1) /10)
    2. CEILING((RCOUNT(1))/10.0)
    3. TRUNCATE((RCOUNT(1)-1)/10, 0) +1
    4. CASE when rcount(1)<11 then '1-10' when rcount(1)<21 then '11-20' when rcount(1)<31 then '21-30' else '30+' end
    Any suggestions
    Thanks,
    SMA

    Look in criteria add one more column
    in FX write this formula
    Go to the formula window of this column and enter the formula shown below
    CASE WHEN RCOUNT(1) < 11 THEN ‘1-10′
    WHEN RCOUNT(1) < 21 THEN ‘11-20′
    WHEN RCOUNT(1) < 31 THEN ‘21-30′
    ELSE ‘30+’ END
    Once this is done, drag and drop this column into the Pages section of your pivot table. Now you can paginate through your pivot table report.
    let us know if its solve your problem
    Thanks

  • Issues with pagination when using Adobe table with Web dynpro for ABAP

    Hi All,
    I am facing strange issue with table text.
    I have three cols in table, one is of type Char255 and other two cols are of type string.
    The text in the col 1 is displayed perfectly but in other two cols of type string whenever we have pagination the text in table is getting truncated and in next page new row starts.
    Could you please tell me the settings that will enable flowing of text in the row of table to next page.
    Thanks,
    Arti.

    Check the properties of the text field you use for those columns (if you want to control it on this level) or check the same attribute for the row subform (one level up control): "allow page break within content".
    Regards Otto
    p.s.: we all have deadlines... and manage to pay something back. Think about it.

  • Ssrs pagination issue

    This issue is related to pagination in ssrs.I want to handle pagination using stored procedure. I have created below sp and would like to know that how can i set  value for parameter @pageNum. so that every time i change page in report viewer value
    get increase with +1(like 1,2,3,4,5.....).
    create proc [dbo].[Test_paging]
     @pageNum int, --page no
     @pageSize int---how many rows
    as
    ; with test 
    as
    SELECT DISTINCT row_number() over(order by column name),
    List of the columns 
    from table name
    select * from TBL_CMBLY
    WHERE RowNum BETWEEN (@pageNum - 1) * @pageSize + 1
      AND @pageNum * @pageSize
    order by rownum

    Hi Tejaskumar,
    As you may know, per the RDL specification, accessing the current page number from within the report body is not supported in Reporting Services. Using custom code to work around this limitation is also not supported, because it would rely on intrinsic expression
    evaluation order and pagination/rendering order which is not documented.
    One possible workaround is calculating the page number by yourself to display the page number in the report body. Suppose the report has 100 records, and one page has 10 row, then we can refer to the steps below:
    Add another column with the expression like below in the tablix, then hide the column:
    =ceiling(Rownumber("DataSet1") / 10)
    Drag a table right of the current tablix, and delete the tablix header, second and third columns.
    Right-right the Details group to add Page Breaks with the “Between each instance of a group” option.
    Insert the expression below in the textbox:
    =ceiling(Rownumber("DataSet1") / 1)
    Then use the expression below to control the row visibility:
    =iif(ceiling (Rownumber("DataSet1")  / 1)>reportitems!Textbox6.Value,true,false)
    Note that the Textbox6 is the name of the textbox which contains the value: =ceiling(Rownumber("DataSet1") / 10)
    Besides, we can use the expression below to manually add page break with 10 rows for each page in the tablix:
    =ceiling(Rownumber("DataSet1") / 10)
    The following similar thread is for your reference:
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/ab9c18bc-ee37-45a2-a52d-628c12d08b33/ssrspagination-on-report-body
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Does Acrobat Pro 9 support "page-break-before" CSS tag? ie Pagination issues

    Hey there
    Converting a whole stack of html files to PDF and having some pagination issues.  Titles not staying with images and tables getting chopped in half by page breaks etc.
    Thought i could solve it by using carefully placed "page-break-before:always" tags where i wanted the page break.  Works as expected in Safari when i go to print but not when i "File:Create PDF: From File" in Acrobat Pro.  They get ignored.
    Here's how they should work:
    http://www.w3.org/TR/CSS21/page.html#x3
    This is a major hassle. I've got over 600 webpages to convert to PDF's and manually entering <br> to force items onto the next page is getting old.
    Here's some sample html, paste it into a file, save, open it in Safari and then go to print.  It should print 7 pages.  Open it in Acrobat Pro 9.1.0 and you get one page.
    <body>
    test0
    <p style="page-break-before: always">
    test
    <p style="page-break-before: always">
    test1
    <p style="page-break-before: always">
    test2
    <p style="page-break-before: always">
    test3
    <p style="page-break-before: always">
    test4
    <p style="page-break-before: always">
    </body>
    The really nice thing is this would be so useful.  You can attach the tag (page-break-before:avoid)  to a Caption style and always be assured that it will stay with a following graphic when you print the webpage. Or use it to make sure a table doesn't get cut in half.
    http://reference.sitepoint.com/css/page-break-after
    http://reference.sitepoint.com/css/page-break-before
    Any hints would be great
    tia
    Jeremy

    Nope.  Did the </br> thing. 
    Cost me some serious cash.  Very annoying.
    I haven't tried it with Safari 5. Acrobat allowed me set page margins, something that Safari 4 didn't allow (didn't support margin css tags).  But acrobat didn't support the pagination and Safari 4 did.
    Like i said annoying
    I'll see if Safari 5 supports the print margins css tags.
    I'll prob get asked to do this again so would like to sort it out
    Jeremy

  • Pagination issues in Word output from RoboHelp HTML 8

    Hi All,
    We're generating a Word document from our online help (RoboHelp HTML 8) with MS Word 2003 installed. The page numbers inserted automatically are wrong in that it's skipping numbers. For example, in scrolling down through the document, the page number after 95 is 97. Sections of the doc are paginated correctly, but then we come to a few pages where it skips a number in assigning page numbers. Some of our users have MS Word 2003 and others have 2007, but the pagination issue is occurring in both versions of Word. (BTW, I'm developing WebHelp Pro on Windows XP.)
    Today when I clicked in the Word TOC and pressed F9 to regenerate, it corrected some of the pagination problems but not all (go figure).
    Is there a patch I need to download or anything?
    Thank you!
    Mendonite

    Do the unnumbered pages have any content? This is ringing a vague bell and it was a Word issue related to blank pages.
    Have you actually printed the document?
    See www.grainge.org for RoboHelp and Authoring tips
    Follow me @petergrainge

  • Another Pagination issue

    Maybe this has been previously addressed, but if so I couldn't find it doing a search.
    Anyway, here's the problem I'm having. I have a search form with 4 regions.
    Region 1 has three search fields, defined as "Select List with Submit". The other three regions are conditionally displayed reports, depending on how much data the user selects from the select lists, i.e, in region1 I have country, state, and county. Once the user selects a country, then a report shows the entries for that country. If they also specify a state, then a different (but identical) report runs for that country/state combination. (I did it this way since I was having a devil of a time getting my query to work if the user only supplied a country, and the state and county fields were null, but that's another issue).
    Anyway, say a user is just using at first to see whats out there. They pick a country with 250 entries for it, and then use the pagination "Row Ranges 1-15 16-30 in select list (with pagination)", and go to say record 201. They then decide to look at a different country, say one with only 8 entries. The page is re-submitted, the correct region/SQL Query runs, but the report shows no entries and the pagination says "1-8 of 8" because somehow, somewhere, the pagination is trying to look at record 201 still.
    I finally discovered this after running the above scenario sevaerl times myself, and then finally selecting a country with more entries than the one with the wrong page number, and for that country I was still at the same record number.
    I think I've worded this correctly. Is there some simple fix to this I can do? I'm sure I'm missing absurdly simple once again.
    Thanks,
    Bill Ferguson

    Nevermind...
    I thought about it some more and decided to do a search for "reset pagination" (as opposed to just pagination) and came across a couple other threads that said to create a reset pagination process, and that seems to work for me on this page.

  • Issue While executing the Query for Pagination using ROWNUM with like

    Issue While executing the Query for Pagination using ROWNUM with like.
    Database is Oracle11G.
    Oracle Database Table contains 8-9 lakh records
    1) SQL equal (=)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE = 'KMF22600920'
    Execution Time:- 0.00869245 seconds
    Returns 2 resultsets
    2) SQL like (one %)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE = 'KMF22600920%'
    Execution Time:- 0.01094301 seconds
    Returns 2 resultsets
    3) SQL like (two%)
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE A.REFERENCE like '%KMF22600920%'
    Execution Time:- 6.43989658 seconds
    Returns 2 resultsets
    In Pagination, we are using Modified version of SQL Query 3) with ROWNUM as mentioned below :-
    4) SELECT * FROM (
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) WHERE RNUM > 0
    Execution Time:- Infinite
    ResultSets:- No as execution time is infinite
    a) Instead of like if we use = in the above query it is returning the 2 resultsets (execution time 0.02699282 seconds)
    b) Instead of two % in the above query, if use one example REFERENCE like 'KMF22600920%' it is returning the 2 resultsets (execution time 0.03313019 seconds)
    Issue:- When using two % in like in the above query i.e. REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) , it is going to infinite.
    Could you please let us know what is the issue with two % used in like and rownum
    5) Modified version of Option1 query (move out the RNUM condition AND RNUM <= 20)
    SELECT * FROM (
    SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
    WHERE REFERENCE like '%KMF22600920%' ) WHERE RNUM > 0 AND RNUM <= 20
    Execution Time:- 7.41368914 seconds
    Returns 2 resultsets
    Is the above query is best optimized query which should be used for the Pagination or still can improve on this ?

    This would be easier to diagnose if there was an explain plan posted for the 'good' and 'bad' queries. Generally speaking using '%' on both sides precludes the use of any indexes.

  • Pagination and visited links issue

    I am creating reports on two tables which are structurally same but hold different set of data. I created one report page using SQL Query using PL/SQL function body returning SQL Query. The trick is to set a request value based on the link clicked by the user to run the query on the correct table. I am using following pagination scheme.
    "Search Engine 1,2,3,4(set based pagination)”
    The issue is with the “visited link” behavior of the links to the record sets in the pagination navigation bar (shown on the bottom right corner of the report region for each result set). Say the user has visits link 3 in pagination navigation bar on the report number one on table A. The browser correctly shows this link in visited link color. Now, if user opens report number 2 on table B, they see the link 3 again in visited color even if they are there for the very first time. This is sounds like a cosmetic nuisance, but this is sort of confusing for the users.
    I guess, since I am using the same page definition for both reports, the pagination object and associated links for the result sets in the pagination have same values. From browser perspective it is the same link and hence the links are shown visited.
    Is there a way that I can force a new pagination object based on which table I am accessing still using only one report page defined in HTMLDB. I do not want to create separate page for each report on each table.
    Thanks
    Salman

    I guess it was too wordy or it was not clear enough.
    In short, is it possible to clear out the visited link status (color changed) of the links to pagination resultset of a report within same session. The pagination type is "Search Engine 1,2,3,4(set based pagination)." I am using patched version 1.5.
    Thanks
    Salman

  • Pagination issue with Command Link

    Hi
    I have a HtmlDatatable in which I am I am using pagination. Pagination is working fine the issue is one colum has been used with commnadlink.
    Whne I use the pagination(Say when I click next or last) i am not getting the hyper link in that column.
    Any idea?
    Thanks in advance
    Best Regards
    Sathish

    Hi,
    hard to say. Looks as if the browser blocks the command link when the note window launches as modal dialogs would do.  There are two reasons for this IMO
    1. The hover code also executes when you want to click the link, which means that you don#t get to executing your action. Work around is to detect whether the note window is open and if don't try and re-launch the note window
    2. If you use showPopupBehavior to launch the note window, then this actually kills all action listener methods (which then may be a second reason). So my suggestion is to try and launch the hover popup from JavaScript using an af:clientListener
       Sample code: Sameh Nassar: JavaScript With ADF Faces Samples
        the client listener should listen for the mouse over event.
    If none of this help and you have access to customer support, I suggest to create a test case and file a service request. My current guess though is that the reason for the behavior is in in your code (browsers tend to work differently in the way they execute JS events too).
    Frank

  • LimitFilter pagination issue

    I have a new pagination framework used by a GUI client that passes the filter criteria and the page number. The problem I am having is that I see unpredictable page results with the new version of coherence (3.6.1) compared to 3.3.1
    For ex the data sets for each page is not consistent when invoked multiple times through the GUI.
    I am using methods setPage and setPageSize on the LimitFilter. Also on the Cache I use keySet(Filter arg) method.
    Pls advise if this is a know issue or bug internally tracked and if there is a workaround
    Thanks
    Ashish

    I've discovered similar effect and after several testcases I can confirm that even if you keep a reference to the filter on subsequent calls,
    LimitFilter will loose current query context and may return empty enty set or keyset if you try to request next page, while last entry of the current page became unavailable or gone missing after query re-execution.
    It's just the way the filter was built.
    Another very unpleasant effect is that if you use LilitFilter on top of your own custom-built filter, then LimitFilter tend to re-execute query on every page request.
    So, base on my experience, I can say that if you plan to process over large dataset, the approach with using LimitFilter as a preventative for pulling entire dataset at once is not efficient, because the filter itself does not save the query context, just the references on some key entries are saved for paging purposes, but that's it.

  • XsltListViewWebpart pagination issue

    Hi,
    We are using XsltListView webpart with custom XSL to format dsQueryResponse of a custom List(named "Posts"). That custom list has Attachments. PAgination was default pagination from vwstyles.xsl. Everything works fine on Page Load.i.e., each post
    is displaye dwith corresponding attachment. But, when we use bottom pagination to go to next page or to previosu page...same attachment(attachment in the first post of that page) is repeated for each post...But, when we reload the page...attachemtns are fine
    again.
    Please help us resolve this issue..Why does default pagination behave this way?
    Thanks,
    Neelima.
    Neelima

    Hi Daniel,
    Thank you for responding..XsltListViewWebPart is like this:
    <WebPartPages:XsltListViewWebPart runat="server" AllowHide="True" PartImageSmall="" PartOrder="6" Title="Posts" ManualRefresh="False" ViewGuid="{53B037C2-222F-4431-84D1-7B7EC7768E19}" HelpMode="Modeless" AllowEdit="True" SuppressWebPartChrome="False" ShowWithSampleData="False" ListId="4a92c048-f331-4979-9073-1404e3458d5c" GhostedXslLink="main.xsl" PageSize="-1" UseSQLDataSourcePaging="True" EnableOriginalValue="False" ConnectionID="00000000-0000-0000-0000-000000000000" ExportControlledProperties="False" AutoRefreshInterval="60" ViewContentTypeId="0x" Description="Use the Posts list for posts in this blog." AllowZoneChange="True" ID="g_52262e87_ee8e_4ba3_9241_74c607c9135e" MissingAssembly="Cannot import this Web Part." FrameState="Normal" AllowMinimize="True" Dir="Default" ViewFlag="9" AllowConnect="True" DetailLink="/sales/ProductAnnouncements/Lists/Posts" WebId="76774c76-912f-424b-b62b-603e428a4e64" PartImageLarge="" TitleUrl="/sales/ProductAnnouncements/Lists/Posts" ListName="{4A92C048-F331-4979-9073-1404E3458D5C}" ExportMode="NonSensitiveData" FrameType="Default" DataSourceID="" IsIncludedFilter="" AllowRemove="True" HelpLink="" IsIncluded="True" IsVisible="True" AsyncRefresh="False" AutoRefresh="False" InitialAsyncDataFetch="False" __MarkupType="vsattributemarkup" __WebPartId="{53B037C2-222F-4431-84D1-7B7EC7768E19}" __AllowXSLTEditing="true" __designer:CustomXsl="fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><DataFields>
    </DataFields>
    <Xsl>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal" xmlns:o="urn:schemas-microsoft-com:office:office">
    <xsl:include href="/_layouts/xsl/main.xsl"/>
    <xsl:include href="/_layouts/xsl/internal.xsl"/>
    <xsl:param name="AllRows" select="/dsQueryResponse/Rows/Row[$EntityName = '' or (position() &gt;= $FirstRow and position() &lt;= $LastRow)]"/>
    <xsl:param name="dvt_apos">&apos;</xsl:param>
    <xsl:template mode="Item" match="Row[../../@ViewStyleID='15']" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:param name="Fields" select="."/>
    <xsl:param name="Collapse" select="."/>
    <xsl:param name="Position" select="1"/>
    <xsl:param name="Last" select="1"/>
    <xsl:variable name="NumColumns" select="count($Fields[not(@Type='Note' or preceding-sibling::*[@Type='Note'])])"/>
    <xsl:variable name="thisNode" select="."/>
    <xsl:if test="../../@ViewStyleID='15'">
    <tr>
    <td class="ms-newsletterline" colspan="{$NumColumns}">
    <img src="/_layouts/images/blank.gif" width="100%" height="4" alt="" />
    </td>
    </tr>
    </xsl:if>
    <tr>
    <xsl:if test="$Position mod 2 = 1">
    <xsl:attribute name="class">ms-alternating ms-newsletteralt</xsl:attribute>
    </xsl:if>
    <xsl:for-each select="$Fields[position() &lt;= $NumColumns]">
    <xsl:apply-templates select="." mode="printTableCellEcbAllowed">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    </xsl:apply-templates>
    </xsl:for-each>
    </tr>
    <xsl:for-each select="$Fields[position() &gt; $NumColumns]">
    <tr>
    <td class = "ms-vb-tall" colspan="{$NumColumns}">
    <xsl:if test="not(@Type='Note')">
    <xsl:value-of select="@DisplayName"/>:
    </xsl:if>
    <xsl:choose>
    <xsl:when test="@Type='User'">
    <xsl:value-of select="$thisNode/@*[name()=concat(current()/@Name, '.span')]" disable-output-escaping="yes"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:apply-templates select="." mode="PrintFieldWithDisplayFormLink">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    </xsl:apply-templates>
    </xsl:otherwise>
    </xsl:choose>
    </td>
    </tr></xsl:for-each>
    <xsl:if test="$NumColumns &lt; count($Fields)">
    <tr>
    <td id="ItemAttchment{generate-id()}" class="ms-vb-tall">
    <table cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td width="5%"> <span>Liite:</span>
    </td>
    <td>
    <xsl:element name="SharePoint:AttachmentsField">
    <xsl:attribute name="runat">server</xsl:attribute>
    <xsl:attribute name="FieldName">Attachments</xsl:attribute>
    <xsl:attribute name="ControlMode">Display</xsl:attribute>
    <xsl:attribute name="Visible">true</xsl:attribute>
    <xsl:attribute name="ItemId">
    <xsl:value-of select="@ID"/>
    </xsl:attribute>
    </xsl:element>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td colspan="{$NumColumns}">
    <img src="/_layouts/images/blank.gif" width="100%" height="4" alt="" />
    </td>
    </tr>
    <tr>
    <td colspan="{$NumColumns}">
    <img src="/_layouts/images/blank.gif" width="100%" height="4" alt="" />
    </td>
    </tr>
    </xsl:if>
    </xsl:template></xsl:stylesheet></Xsl>
    <ParameterBindings>
    <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
    <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
    <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
    <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(core,noXinviewofY_DEFAULT)" />
    <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
    <ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,moreItemsParen)" />
    </ParameterBindings>
    <XmlDefinition>
    <View Name="{53B037C2-222F-4431-84D1-7B7EC7768E19}" Type="HTML" Hidden="TRUE" TabularView="FALSE" DisplayName="" Url="/sales/ProductAnnouncements/Lists/Categories/Category_copy(1).aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/posts.png">
    <Query>
    <OrderBy>
    <FieldRef Name="PublishedDate" Ascending="FALSE"/>
    <FieldRef Name="ID" Ascending="FALSE"/>
    </OrderBy>
    </Query>
    <ViewFields>
    <FieldRef Name="LinkTitleNoMenu"/>
    <FieldRef Name="Body"/>
    <FieldRef Name="PostCategory"/>
    <FieldRef Name="Created"/>
    </ViewFields>
    <RowLimit Paged="TRUE">10</RowLimit>
    <Aggregations Value="Off"/>
    <ViewStyle ID="15"/>
    <Toolbar Type="Standard"/>
    </View>
    </XmlDefinition>
    </WebPartPages:XsltListViewWebPart>
    Many Thanks,
    Neelima.
    Neelima

  • CanSplitImage Rule causing pagination issues while creating RTF output

    Hi,
    We are facing spacing/pagination issues when we use CanSplitImage rule for RTF output with NoFrames. It splits the section and prints in next page as expected but leaves the remaining page empty/blank and prints the next consecutive sections in the next page(basically the 3rd page).
    Any suggestions on the solution based on your experience will be highly appreciated.
    Thanks!

    Hi,
    We are facing spacing/pagination issues when we use CanSplitImage rule for RTF output with NoFrames. It splits the section and prints in next page as expected but leaves the remaining page empty/blank and prints the next consecutive sections in the next page(basically the 3rd page).
    Any suggestions on the solution based on your experience will be highly appreciated.
    Thanks!

  • Table section with 3 header rows pagination issue

    Hi experts.
    I have a table section pagination issue. In my case the table section combines 3 header rows.
    Down bellow the series of screenshots I hope they describe my example well (click on screenshots to enlarge).
    1) The data context
    2) Layout elements
    Here is my issue (table header output at the end of the page but there is no data row):
    As you can see on the first page there is no more place for a data row but the header still exists.
    if I set keep with next flag on the pagination tab for all header rows the result will be:
    Is it possible somehow to fix it?
    I would like to have the header row output on the page only if a data row exists bellow the header, the footer should only output if a data row exists above.
    Here is PDF output:
    https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B4wQz1XhRuysMzhiN2EyYzM tMDdjZS00Yzc3LWIyNTgtODUzZWRhY2MwYjMx&hl=en_US
    https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B4wQz1XhRuysNmYxNGFlOTk tZGQ2MS00MDQ3LTgyMWUtZTg4YmEwYWRmMWQ4&hl=en_US

    The solutions is easy. You´d better create the corresponding DDIC objects hierarchy in the backend and then use the form to PRINT the prepared data ONLY. I mean:
    In your backend:
    in a row there is a dataset (table) and a optional dataset (table) == DDIC structure with two "fields" of type "table" = row A
    use this "row" to create the "outer" table == DDIC table type with row A
    Then you can just drag and drop this structure in your adobe form and will have do difficult with formatting.
    Regards Otto

  • Pagination Issue: Removing White Space

    If you were asked the simple question: "How do I remove blank pages?" you would likely answer: "Format | Page Layout | Pagination | Before Saving & Printing: Delete Empty Pages."
    If you were asked a variation of that question: "How do I remove partially blank pages?" some might answer: "Huh?"
    That's my question. I have this tendency to assume that a vacuum of information on the search engines means, sadly in answer to this question, "You can't remove partially blank pages."
    Before you answer, here is what I'm specifically attempting to do with FrameMaker 9:
    1)   I converted a user manual in Word 2007 to FrameMaker 9. The TOC contains several hundred headings (seven levels deep). Of course, the TOC includes chapters (heading1) at level 1, and topics (heading3 through heading7) for levels 2-7.
    2)   I converted the text and graphics under each heading (heading1 through heading7) to separate FrameMaker 9 files. (Each heading and all child sub-headings are "topics" that describe part of the UI for a software product.)
    3)   All of the converted FrameMaker 9 files were added to a FrameMaker 9 book. The TOC in this book is identical to the TOC of the original Word 2007 file.
    Each of these headings is a separate FrameMaker 9 file representing a topic mapped to the UI:
    CONSOLE MAIN SCREEN....................................... 63
    Inventory Control..................................... 81
    Intellectual Property............................. 82
    Using the Intellectual Property Page......... 83
    Viewing and Configuring................ 85
    Configuring Filters.............. 87
    View Settings.............. 88
    4)   I have linked all these files to a project in RoboHelp 8, creating a RoboHelp master page to render the help topics with exact same headers/footers in the FrameMaker 9 file. Whenever I make changes to the FrameMaker 9 files, I can open RoboHelp 8 and compile a new help project for the UI. Sweet. (It works so well, as a matter of fact, that it’s worth the cost of the Adobe Technical Communications 2 suite!)
    5)   For customers demanding a PDF version that looks EXACTLY like the previous PDF rendered in Word 2007, I print a PDF file from the FrameMaker 9 book for this user manual that looks almost exactly like the legacy PDF file rendered in Word 2007.
    Why “almost” exactly?
    As you may have guessed, if a topic ends with a paragraph at the top of the last page, there is blank space for the remainder of that page. Whereas in Word 2007, the next heading began immediately after the previous heading!
    FrameMaker 9 only has a setting on the ‘Pagination’ dialog for eliminating blank pages, not eliminating partially blank pages.
    I would like to render the PDF file, printed from the FrameMaker 9 book file, with each file in the book beginning on the line immediately after the preceding paragraph of the file before it in the book (unless the style such as heading1 dictates the line starts on a new page).
    In some cases, the last page of a topic has just three sentences, leaving the rest of the page blank. It seems to me that to do what I’m attempting, the recursive effect of starting the next file after the paragraph on the last page of the previous file in the book, would be to reduce the PDF by several (or more) pages. This would require FrameMaker 9 to adjust the page numbering of the PDF file (which would no longer coincide with page numbering for the FrameMaker 9 book files).
    This is no different of a problem than anyone with a book that contains 10 files (each file representing an entire chapter) would face. If a chapter ends with a page containing just three sentences, one would have to fiddle with the text to get those three lines to “bump” to the previous page. In the old days of technical writing, this typical pagination flaw was a thorn in my side. I had to print the document, and if the end of a chapter contained “orphaned” text (or even a small paragraph on an otherwise blank page) I had to reduce paragraph spacing to cause that rogue paragraph to bump to the previous page, eliminating the white space. I was kind of hoping that after almost three decades of computing, that basic problem was solved. In a small book with a dozen or less chapters, it’s not a real issue, but now that I have a book with several hundred files, I’m facing this dilemma for the first time.
    Suggestions, anyone? (Thanks for your patience in torturing through this message!)
    Message was edited by: holosys
    Message was edited by: holosys

    Excellent ideas; Text Insets created through File Import eloquently solved the problem!
    I created a separate book that I will use for rendering the PDF file for the user manual. In that book are files for entire chapters. In each chapter file are text insets for each heading file (which comprises an individual "topic" in RoboHelp).
    Here is what I did:
    Opened the book file containing cover, hundreds of topics and TOC, and Save Book As... [new book name] then delete all book files except for the cover and TOC.
    After opening a new (blank portrait) FrameMaker 9 file, I applied all formats from my master stylesheet file.
    Selected File | Import | Highlight the file | [Path\Name.fm of sequentially first FrameMaker 9 file in chapter] (select Import by Reference radio button) | Import. (The Import Text Flow by Reference dialog screen appears.)
    Selected defaults (Body Page Flow: A (Main Flow) | Reformat Using Current Document's Catalogs | Automatic) and additionally selected Manual Page Breaks and Other Overrides (Under Reformat Using Current Document's Catalogs) then selected Import.
    Moved the cursor to the end of the file. (This is important because the cursor is now positioned BEFORE the imported Text Inset, and the cursor needs to be positioned AFTER the imported Text Inset.)
    Repeated above steps 3-5, selecting the file containing the next heading in the chapter, until the current file contains Text Insets for all topic files.
    Save the file.
    Add the file to the book as the first chapter.
    Repeated above steps 2-8 until the book is populated with all chapters.
    Update and print to PDF.
    Problem solved: I obtained the desired results as per my original message in this thread.
    The side question was asked as to why creating a separate FrameMaker 9 file for each heading and sub-heading (as described in my original message in this thread) is necessary. The answer is simply "budget" as the start-up company where I work wants to instantaneously generate a RoboHelp Flash Help project from the FrameMaker 9 book through linking FrameMaker 9 to RoboHelp 8, which is evidently a new function. Each heading and sub-heading of the user manual correlates to a UI screen or UI component. The User Manual was authored (before I arrived on the scene) with the intent of each heading and sub-heading in the User Manual TOC documenting a UI screen or UI component.
    Therefore, instead of spending time creating a RoboHelp project in parallel, the company desired the elimination of costs associated with parallel development. Since the budget is non-existent for online help, pressing Help on any UI screen displayed a boilerplate screen instructing the customer to call customer support at a toll-free number, and a link to the PDF manual. Now, with minimal effort, the Help buttons are mapped to open the help topic for the corresponding heading in the user manual. Pressing Help opens the appropriate heading or "topic" and displays a TOC and search tabs as well (for full access to the documentation). This scheme requires little or no ongoing maintenance in RoboHelp 8 other than opening the help project, updating the links to FrameMaker 9, compiling the help project in Flash Help, and checking the help files in to Perforce for the nightly build.
    Thank you once again for saving the day!
    Message was edited by: holosys

Maybe you are looking for

  • Using excel file as datasource in crystal report asking database logon

    hai all, we uisng  plain excel file in crystal report to develop some reports it is working fine. Issue is when we are using  parameters and  using the crystal report in live office it  is asking for database logon details. we are not using any datab

  • Crash while watching online TV shows (Netflix - NBC)

    I am not sure this is the right place for these discussion...But I hope someone can point me in the right direction. I usually watch TV shows on my Aluminum MacBook, it has worked pretty well thus far; however, after 10.5.6 update, the OS keeps rando

  • Can't Install AIR-based application

    I'm using Flex Builder 3 (OSX 10.5) and AIR Runtime 1. Can play my app in Flex just fine without errors/warnings. Publish to AIR file and it won't install on any of 3 windows boxes I've tried. I can install the same AIR app on Mac OSX (on which I'm r

  • CS6 problem installing some programs.

    I tried to install CS6 and was unable to install Photoshop (64 Bit), Flash Professional, Illustrator (64 Bit), Dreamweaver, and InDesign. I need to install these programs, especially Illustrator, Dreamweaver, and InDesign! Here is the error summary I

  • Deleting spool requests automatically

    Hi We are on R/3 4.7 Enterprise Extn Set 110. I would like to ensure that spool jobs which have printed successfully be deleted automatically. I need some help in getting this done. There are some places where I could configure this however I was not