Not able to reset the page number in XML Publisher based on each PO

Not able to reset the page number in XML Publisher based on PO
Hi,
I have created a custom purchase report and rtf template. In the rtf template, I have added the page number feature (i.e. Page 1 of 5) from Word in the template. When I run the report for a range of POs, I expect the results as follows:
I have given 3 POs on single request. (PO#1 has 3 pages, PO#2 has 2 pages and PO#3 has 4 pages), the page number on each PO should look like as follows:
PO#1 page 1 of 3, page 2 of 3, page 3 of 3
PO#2 page 1 of 2 page 2 of 2
PO#3 page 1 of 4, page 2 of 4, page 3 of 4 and page 4 of 4
But the page number displays on each PO as follows:
PO#1 page 1 of 9, page 2 of 9, page 3 of 9
PO#2 page 4 of 9 page 5 of 9
PO#3 page 6 of 9, page 7 of 9, page 8 of 9 and page 9 of 9
Here I have to reset the page number based on each PO. If anyone done this already, can you please share with me.
Thanks,
Ram.

Hi
One clarification please.
Are you putting Page # of ## in the for-loop section? I mean it should be within For-each@section block.
Even if this doesn;t work, then try using Insert->Page Break after every PO.
Regards
Varun

Similar Messages

  • How to judgement the page-number in xml publisher template

    Hi all,
    This is a xml publisher template problem, I want to realize a judgement about page-number like <?if:page-number=1?> test <?end if?> <?if:page-number!=1?> not equal<?end if?>, how can i do this? Please give some suggestion about this, thanks a lot.
    Best Regards
    Spark

    there is some seeded variable available please read xml publisher developer user guide

  • Version: you are editing the shared version of this page. Not able to edit the page

    Hi,
    I have a sharepoint 2010 publishing site, which i have version upgraded to Sharepoint 2013.
    I have the below features already activated:
    1.Activate office sharepoint publishing infrastructure feature at site collection level.
    2. Activate office sharepoint publishing feature at site level.
    Also, versioning is enabled in the pages - document library settings.
    The page does not seem to be checked-out by anybody else, and I am trying to edit the page using the system account.
    I am not able to modify the page, and the ribbon does not show up.
    What am i missing?
    Thanks

    This is not an error message but simply letting you know you are making changes to a page that will affect everyone viewing
    the page vs. a personal view.
    See more at:
    http://www.go4sharepoint.com/Forum/version-editing-shared-version-page-7439.aspx#sthash.P2ZfVOBm.dpuf
    http://office.microsoft.com/en-us/windows-sharepoint-services-help/about-web-part-page-personal-and-shared-views-HA001160936.aspx
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • HT1430 My iphone5 on/off switch not working, even we not able to reset the phone

    Hi,
    My iphone5 on/off switch not working, even we not able to reset the phone

    OK, so are you asking what do to, or are you just sharing your situation?
    If you're asking what to do, then you should bring your phone to Apple while it's still under warranty.

  • When I log in to update a page it says that's someone else is already logged in (but they are not) so I'm not able to update the page - any suggestions?

    When I log in to update a page it says that's someone else is already logged in (but they are not) so I'm not able to update the page - any suggestions?

    I take it you are not the administrator for the site? If so, you would be given the option to unlock the page (it will be near the top of the screen in a yellow box).
    Do you have access to the site outside of Contribute. If you can't unlock it via the administrative function mentioned above, you need to go into the site using Windows Explorer (if it's a local development site) or an FTP client and find a file with the same name as the page but with a .lck extension and delete it. That will unlock the page.

  • Not able to import the article with sidecar.xml

    Hi,
    With the new DPS version (ver. 18), we are not able to import the article with sidecar.xml. Could you please check and suggest the solution for the same.
    With Regards,
    Anil Yadav

    I read that your sidecar needs the author-value to be working.
    —Johannes
    (mobil gesendet)
    Am 30.01.2012 07:54 schrieb "Anil Yadav" <[email protected]>:
       not able to import the article with sidecar.xml  created by Anil Yadav<http://forums.adobe.com/people/Anil+Yadav>in
    Digital Publishing Suite - View the full discussion<http://forums.adobe.com/message/4173103#4173103>

  • Outside in Viewer resets the page number to 1 always, even though the Word document has page numbering starting from different value.

    Hi All,
    I've a Word Document with page header having page number inserted.However the page numbers have been formatted to start from a value other than 1.
    E.g. For a given word document, navigate to "File -> Insert -> Page number-> format page number -> start at " and set the value to say "300". Now insert page numbers, so that the page numbering of the 1st page starts from 300.
    When this document is viewed using Outside-in Viewer, the page number of the 1st page always shows 1 instead of showing 300 (though this is not being reset/changed within the actual document)
    I'm using Outside in 8.1.9 SDK for the same. Is there an API to set the page number correct (exactly what has been set within the original document) while viewing...
    Alternatively confirm if this is a limitation within the Outside-in Viewer.
    Thanks,
    Badri

    You're going to need to open an SR to Outside In Support, Product ID 2276.
    Make sure you attach an example Word doc to the SR.

  • How to get the  page count in XML Publisher Report

    Hi Team,
    I am generating one xml report. I want to get the total Page count in XML publisher report. This page count is depends on the input Parameters at runtime. How to get this total page count on the runtime dynamically.
    Best Regards
    Sri

    there is some seeded variable available please read xml publisher developer user guide

  • Not able to see the check number in Payment Means

    When I access the 'Payment Means' for a particular Outgoing Payment, the check number column displays '0'...even though I created  a manual check via 'Checks for Payment'.
    Can anyone help/guide me in this process.
    Thanks for the help in advance.

    Hi,
    Please check Note No. : 903135 regarding the issue mentioned.
    Relevant part from the Note regarding your question :
    "All the check numbers will automatically be entered as '0', i.e. the number is not assigned based on the "Next Check Number" field in the House Bank accounts definitions. The check will be saved with the number  '0' as long as it is not printed. The check will become valid just after printing"
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • HT1937 I'am using airtel carrier in India. I had switched on data network and data roaming. But still i'am not able to reset the data network. It remains the same previous carrier. How can i change this?

    anybody can help me in reseting the data network. i switched on my cellular data and data roaming. But still the cellular data network remains same , my earlier carrier. How can i reset it now?

    anybody can help me in reseting the data network. i switched on my cellular data and data roaming. But still the cellular data network remains same , my earlier carrier. How can i reset it now?

  • Not able to reset the Oracle BI Repository password

    Hi All,
    I am in stage of implementing the BIA. during the steps 4.15.3 (To reset the Oracle BI Repository password) mentioned in the doc http://docs.oracle.com/cd/E20490_01/bia.7963/e19038/windows_ic.htm , I can't see the security filed in manage menu. I have opened this in offline mode.
    Pleas help me on this.
    Thanks,

    Hi,
    The Manage Security is OBI10g in 11g its Manage --> Identity. Addition to this in OBI11g the user's are managed in weblogic.
    Let me know if this helped you.
    Regards,
    Jay

  • How to clear the page number in the Script

    Hi Guys,
    I have developed a Script, the same output I need to display with three times with different heading, right now I am able to display the three time with different heading, but the pages are displaying like 1,2,3,4,5,6.
    I need to display the page number 1,2,1,2,1,2, once the heading changes, I need to display page number from I, but I could not able to clear the Page number, could any one please suggest how to create the page number in LAYOUT.
    Thanks,
    Gourisankar.

    Sloved

  • Not able to run the Jdeveloper Pages in Local Machine

    Dear All,
    I am developing Custom OAF Pages in R12. while am not able to run the page in Local Machine Currently i am using Remote VPN. same page i import into server am able to run in Application.
    The error says:
    1, Increae the time limit bye setting the JRAD.RUNREG.TIMEOUT Parameter in ide.parameters file loacted in System directory.
    I found the file . am not able to find the JRAD.RUNREG.TIMEOUT Parameter option
    2, Check the Host Name in the Preferances, Under Embeded OC4J.
    I Verified same and using the Default Local IP Address.
    I am using Jdeveloper Version : p8431482_R12_GENERIC.zip
    Please help me. I approciate before
    Thanks
    Venkat Reddy Pulichintha
    00971502644919
    [email protected]

    Dear Gaurav,
    Thanks for you quick replay
    For this Patch number (p8431482_R12_GENERIC.zip), there is no (JAVA Options: remove this statement: -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true)
    Please guide me furthe steps. any other settings requird.
    Thanks
    Venkat Reddy Pulichintha
    00971502644919
    [email protected]

  • Problem in resetting the Page numbers

    Hi,
    I am using to print PO report using XML publisher.
    The layout that is needed is
    Header
    ---- It cointains page number x of y ,po number,po creation date,and other details.
    Body
    ---- It cointains po lines and po headers data.
    end body
    After the body ends we need to print Service note in a seperate page.But this service note should not have header and the pages of the service note will not be included in total pages of the PO.
    If the PO is 10 pages and service note 2 pages then the total page of PO should be 10.
    This is for one PO.We have to print many number of POs in a single request.
    Presently the problem is that for resetting the page numbers of service note I am using a section break after the end of body.What it does is it reset the page number.But the problem is first all the POs are displayed then its service note.But I need one PO and then its service note .Then the second PO and its service note.

    I have used the following method to call the template based on IF condition as follows:
    The way I expected the outcome is:
    if the COPY_ORIGINAL variable's value is '(Copy)' then it shoud print once the template with a label '(Copy)' in it.
    else
    if the COPY_ORIGINAL variable's value is '' (empty) then it should print 4 times the template, with different labels as: 'Original' , 'Accounts Copy', 'FP Store Copy' and 'Gate Copy'
    the way I used the xml tags is mentioned below:
    <?if: COPY_ORIGINAL='(Copy)'?>
    <?call:TC?>
    <?end if?>
    <?if: COPY_ORIGINAL=''?>
    <?call:TC1?>
    <?end if?>
    <?template:TC1?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,4,1)?>
    <?if: position()=1?>Original<?end if?>
    <?if: position()=2?>Accounts Copy<?end if?>
    <?if: position()=3?>FP Store<?end if?>
    <?if: position()=4?>Gate Copy<?end if?>
    <?for-each:/SFFONT001/LIST_G_HEADER_ID?>
    <?call:TC?>
    <?end for-each?>
    <?end for-each?>
    <?end template?>
    <?template:TC?>
    <?ORDER_NUMBER?>
    <?end template?>
    In this case, it won't call the template TC1 and reset the page numbers, instead it prints the page numbers continuously.. (no resetting of page numbers)
    why the following If statement:
    <?if: COPY_ORIGINAL=''?>
    <?call:TC1?>
    <?end if?>
    is not working for the statement:
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,4,1)?>
    Please update...
    regards..,

  • Text flows create a delay when an overflow creates a new page, preventing you from reading the page number, giving error

    Hi all!
    I am creating a script to generate automatically a photo catalog; the idea is to prepare a master document with a text frame in the master spread with auto flowing, then insert images with their caption by the script, letting the system create automatically the subsequent pages when necessary by an unique flow of text.
    My catalog is divided in sections, each represented by a different master spread; so I have to know in which page I am working when the script put there an image, just to link the current page to the proper master spread.
    To simplify everything I have resumed the core of my script here, using text instead of images:
    /* load a master document, only containing an empty text frame in the master spread, connected to the main text flow */
    var doc = app.open(new File("~/Desktop/mySampleDoc.indd"));
    /* I work on the story, thinking that whenever the textframe of the first page will be full, another text frame will be created in the next page (automatically created) */
    var story = doc.pages[0].textFrames[0].parentStory;
    /* now I put some lines of text into the story, expecting the creation of a new page when the first one will be full */
    for (var i = 0; i < 100; i++) {
       /* this is next line: */
        story.insertionPoints[-1].contents = "this is line n. " + i + "\r";
        /* here I want to know on which page is the line just created (error is generated here just during the creation of the new page + text frame) */
        thisPage = story.insertionPoints[-1].parentTextFrames[0].parentPage.documentOffset;
       /* and now I print page number */
        story.insertionPoints.item(-1).contents = "current page: " + thisPage + "\r";
    The big problem is: when the first text frame is full and an overflow is generated, a new page with a new text frame belonging to the main text flow (as the master spread wants) is generated; but it seems my script requests the page number before the new page with the new text frame is born, and an error is given.
    It seems like the script goes too fast in respect to the creation of the new page.
    If I delete the line thisPage = story.insertionPoints[-1].parentTextFrames[0].parentPage.documentOffset; everything is ok.
    I tried to introduce a delay until 3 seconds without any effect.
    I tried also to show or zoom the new page before the page number request, thinking to force the system to wait until page is really born, also without any effect (by the way, I was not able to show the page during the script's additions of text!).
    Someone can help me?
    Many thanks to everyone
    Roberto

    Many thanks: you are right!
    Unfortunately, I am at the very beginning with ExtendScript, and there are so many things I don't know until now...
    With recompose() everything works very well, and it give me a solution also for redrawing the page while the script is working...
    Many thanks, again!
    Roberto

Maybe you are looking for

  • Microsoft Word Icon for link to Download

    I am hoping that someone here can help me figure out how to acquire the icon that appears in the finder for MS Word docs. I want to use it to graphically point out the different flavors of downloadable print versions for my online resumé. (Word, PDF)

  • Certificates CNAME or Host (A) Record?

    We just installed Exch 2013 but have not put it into production yet. We are confused about what domains to include in our certificate request. Our ISP host our email and Network Solutions host our domain and we would like to keep it that way. We have

  • Can I rotate iBooks Author widgets?

    Hello, I wonder it is possible that I can rotate iBooks Author widgets? For an example, can I rotate Gallery widget? Thanks,

  • Client side news page

    Hi. I am creating a basic HTML website but my client has requested that it includes a 'News' page that shows a list of recent news items with links to view the full article. My client wants to be able to update these news articles manually himself an

  • WebDynpro component interface and Models

    Hi there, I'd like to know how I could reuse Models and WebDynpro Interfaces from Projects to Projects. For instance, I have created models and webdynpro interface in Appication1 in Project1. Now, I have created Project2 and Application2 and would li