How to user page-number in If Condition of XML PUBLISHER

Hi,
Can any body help me regarding my issue...
I have to control footer to display in first-page only...but not in other pages.
for this i am going in this way..
my thought is to use IF condition by checking Page-number =1
but in practice i am unable to put the same in Syntax
by using <?fo:page-number?> i could able to display page-number , but how could use the same in IF condition....
Please help me asap.
Thanks in advance
srinivas poda.

Hi srinivas,
Different First Page and Different Odd and Even Page Support
If your report requires a different header and footer on the first page of your report; or, if
your report requires different headers and footers for odd and even pages, you can
define this behavior using Microsoft Word’s Page Setup dialog.
1. Select Page Setup from the File menu.
2. In the Page Setup dialog, select the Layout tab.
3. In the Headers and footers region of the dialog, select the appropriate check box:
Different odd and even
Different first page
4. Insert your headers and footers into your template as desired.
At runtime your generated report will exhibit the defined header and footer behavior.
search in this forum, for this first page display only, you can find quite number of solutions.
and you cant chekc like page-number == 1 ,
as the pages are rendered at time runtime, at that time only the numbers will be available.
if you cnat find in this forum, please open this thread again.

Similar Messages

  • How can i display page number in this format in xml publisher report (1-1)

    in this format
    1-1
    1-2
    1-3
    2-1
    2-2
    2-3
    can i display page nos in this format in xml publisher please help me on this

    Hi,
    Use the SET COUNTRY..
    SET COUNTRY 'US'.
    write: / sy-datum.
    SET COUNTRY 'IN'.
    write: / sy-datum.
    Thanks,
    Naren

  • How to set page number & current date in sqlplus result

    how to set page number & current date in sqlplus result

    Hi,
    Use the TTITLE command. For example:
    SET     PAGESIZE     15
    TTITLE     LEFT  &_date     RIGHT  "Page:" FORMAT 999 sql.pno     SKIP 2
    SELECT     ROWNUM
    ,     ename
    FROM     scott.emp
    ;Output:
    12-Jan-2011                    Page:   1
        ROWNUM ENAME
             1 SMITH
             2 ALLEN
             3 WARD
             4 JONES
             5 MARTIN
             6 BLAKE
             7 CLARK
             8 SCOTT
             9 KING
            10 TURNER
    12-Jan-2011                    Page:   2
        ROWNUM ENAME
            11 ADAMS
            12 JAMES
            13 FORD
            14 MILLER 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data. If your question is based on commonly available tables, like those in the scott schema, then you don't have to post any sample data: just post the output.
    Explain how you get those results from that data.
    Always say what version of Oracle (and other relevant softward, SQL*Plus in this case) you're using.

  • How to insert page number on each page for Cross-Tab report?

    Hi,
    I have created a Cross-Tab in the section Report Header via Crystal Reports 11.
    Now, I want to created more Cross-Tabs, and each page has one Cross-Tab.
    So, I insert Report Headers to contain Cross-Tabs. But, the report only shows the page number at the last page.
    How to insert page number on each page?
    Thanks in advance.

    Hi,
    Well, the easiest solution is to place the Cross-tab in the Report Footer, Of course, ONLY if the report contains this single object which I'm assuming is not the case.
    If you do not wish to place the cros-tab in the Report Footer, here's what you need to do:
    1) Create a formula;
    whilereadingrecords;
    2) Create a group on this formula. If the report already contains groups, move this formula to the top of the grouping list. It won't affect the other groups or records in any way.
    3) Move the Cross-tab from the Report Header to the Group Header1 and suppress Group Footer1
    4) Add the Page Number field to the Page Footer
    Let me know how this goes!
    -Abhilash

  • How to hide page number in the table of content

    Hi,
    I'd like to know how to hide page number in the ToC. They show automatically, but at least for the headings of third ad fourth order I'd like to suppress/omit them.
    Thanks for any advice!

    You have in the Inpspector > Document tab > TOC > uncheck button for #'s

  • How to use if condition in XML Publisher Desk Top

    Hi..,
    How to use if condition in XML Publisher desk Top.
    Please guide me.
    Thanks,
    Suresh.

    What kind of condition you want to use?
    You can use Condition like this:
    <?xdofx:if condition then value1
    else if condition then Value2
    else Value3
    end if?>
    Please go thru XML Publisher User Guide.
    Thanks
    Ravi
    [email protected]

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

  • How to print page number in Pages

    Please help. I have inserted the page number in my document and I see it the print preview, but when I print it just doesn´t print the page number.

    It sounds like you have the page number too close to the edge of the paper and your printer simply does not print to the edge.
    Test how much of the page your printer prints, by covering a page with a colored object from edge to edge and seeing how much is clipped off.
    Peter

  • How to use page-number in xsl:if

    Hi
    I would like to use <fo:page-number/> in my if clause. Based on page number, I would like to add some more fields.
    If help on this greatly appriciated.
    Thanks,
    Ram.

    i'd like to check page num, if page num > 1 then output current page of total pages. if it's possible, plz tell me how?
    because i used check row num to do this, its not right method.

  • Question: how to automatize `Page Number`-ing

    Hi,
    Lets say, I have a document of 150 pages divided to 150 pdf files with a numeric tag in it, from 1 to 150, for a start (that is what I have to deal with).
    The first 10 pages are the table of content, that is where I have to take actions (the document can contain any number of pages, 150-10 is just an example)
    first, I open the table of content pages and then I merge them into 1 document (Acrobat)
    then I go to: `file -> document properties -> open options`
    here in the `Page Number` field, I set the number to the page, where I want the merged document to be displayed at open as default, then I save the document 10 times overwriting the existing *.pdf files, every time set the `Page Number` field to be displayed in harmony with the file naming
    So now I have 10 completely identical documents containing the same 10 pages, the only difference, if u open them, they will pop on different initial page, as default.
    My very simple question is: is there a way (must be) to automatize this process? Unfortunately there are hundreds of them, and it is a really mindblowing experience to do this 8 hours a day
    There is a Plug-In, where I could create an action opening the `file -> document properties -> open options` and the `file -> Save As...` menu after each other, this way I only need to edit the `Page Number` field and then select the existing *.pdf file to save/overwrite it, but it is still time consuming and ineffective.
    Nandor

    Hi Malcolm,
    Thanks for your idea. The problem is that Nandor needs to set the Open to Page depending on the filename, ie. file0004.pdf should show page 4 when opened in Acrobat.
    Let me explain. Initially there is a folder with an unknown amount of PDF-s in it, named as file0001.pdf, file0002.pdf, ... file0158.pdf etc. All of these pdf-s only contain one page.
    The automation should do the following:
    merge the first few pdf-s (they can be identified easily: only these pdf-s contain ... (ellipsis characters), save this merged pdf as file0001.pdf, overwrite the original). This is the TOC of a manual.
    make copies from the merged pdf (TOC) acccording to the total page of the TOC, naming them as file0002.pdf, file0003.pdf – effectively replacing each single paged pdf with the multipaged TOC.
    at the same time set the Open to Page attribute of each TOC clone according to the filename ie. page 4 for file0004.pdf.
    I wrote a JS which can make the copies from the merged TOC, and tried to set the pageNum as well, but it fails (strangely enough the last pdf works perfectly, it opens to the right page).
    Here is my script:
    // Make copies with different Open to Pages
    //determine  the amount of pages in the document
    var tocPages = this.numPages+1;    //+1 for filenaming
    //truncate the end of the filename
    var myFileName=this.path.slice(0, path.length - 8);
    // Saving copies of the document according to page number
    for (var i = 2; i < tocPages; i++) {
    //set the Open to Page  <------- FAILS?
    this.pageNum = i;
    //Padding pageNum with zeroes for filename
    var paddedI = pad(i,4);
           //make the filename
    this.saveAs(myFileName+ paddedI + ".pdf");
    // Pad a number with leading zeroes ie. 0001, 0023, 000056
    function pad(n, len) {
    s = n.toString();
    if (s.length < len) {
    s = ('0000000000' + s).slice(-len);
        return s;
    I suspect that pageNum() is just a runtime method to jump to a page, and I should hardwire it into the PDF somehow (document level JS?). But I don't know how can I attach a JS to a pdf from javascript. Or maybe pageNum() is not the property what I need here...
    Laszlo

  • How to erase page number

    I do not remember how I hade put it, so I can not erase...
    I could not find in the help (italian)
    Stefano

    Page numbres typically are on a master page, so I suggest you go to the master
    page (in the Pages pallette). You should be able to erase it there.
    Alternatively, if you want to erase the page number on just one page, hold control+shift while clicking on the page number. Then you can erase it.
    Hope this helps,
    Jan

  • How to change page number

    Hi,
    I need to change the page number. For example in page 4, I have "create user page". But I want to change its page number from 4 to 10.
    If there any way.
    Please give some idea.
    Thanks,
    Chandru

    Caution:  When you copy a page from, say, page 4 to page 10, many but not all, page references are changed.  For example, page item P4_MY_ITEM will become P10_MY_ITEM on page 10.  However, I don't know if references to P4_MY_ITEM from other pages (page 5, page 6) get changed on those pages.  Further, some references in other places (dynamic actions, ??? I wish I could recall an example) will not be changed.  You'll need to hunt through all the page code to find them.  
    Now, it's also possible to export the application SQL file, edit the code, changing page 00004 to 00010 and reimport the application.  BUT one must be very careful that the editor does add any extra linefeeds or returns.  And be careful that object ID 1230000423 does mistakenly get changed to ID 1230001023.  And look for references that get split between literals ( xxxx 00' || '004 xxxxxxx should become xxxx 00' || '010 xxxxxxx).  When done, import to a new application number and check it out before replacing you prior version.  I've done it once or twice for small applications.  NOT RECOMMENDED FOR THOSE ERROR PRONE OR FAINT OF HEART.
    Howard

  • How to create Pager Number for Customer contact in VAP1 or XD02

    HI ,
       I am trying to mass upload Customer contact data , there is pager number to be uploaded . but when i do it through BDC . Its doesnt record the ALV pop up as there no screen fields as it is not a program screen .
      So BDC selects only the first item in the list , which is FAX number . So i cant upload Pager number through BDC .
      Does there any method available to do the same ? i tried direct upload also but seems tedious .
    Waiting for reply ,

    You would do it the way I created it:
    Select the Text tool in Photoshop and set the font and parameters as I have listed.  Then enter whatever text you like.  It will be rendered over the top of the lower layers you may have in the document.  Save as an image of the appropriate type and you're there.
    Note that "lower layers you may have in the document" could conceivably be none at all (i.e., you render the text over a transparent document).  You could imagine saving that as a .png with transparency and get light text in an image that could then be put over the top of anything else.  The alpha mixing will see to it that the edges smoothly blend with the background.  I haven't actually tried this (I usually do try my own suggestions) because of lack of time right now.
    -Noel
    Edit:  Markerline and I seem to be on the same crystal-controlled wavelength. 

  • CS6 - how to get page number?

    i have selected frame. I want to know page number, where it is.
    aSel = app.selection[0];
    alert (aSel.parent.name); - i get empty string
    cause it' Object spread. And what to do then? (without losing of right/left reffering)
    thanks
    p.s. in CS3 i did it, and in CS6 i get stuck.

    @Dmitry – for further reference see also:
    http://www.indiscripts.com/post/2012/06/so-what-s-new-in-indesign-cs6-scripting-dom
    http://www.indiscripts.com/post/2011/04/so-what-s-new-in-indesign-cs5-5-scripting-dom
    http://www.indiscripts.com/post/2010/10/so-what-s-new-in-indesign-cs5-scripting-dom
    For the whole documentation of the DOM:
    http://www.jongware.com/idjshelp.html
    Hm. While we are at it:
    Is there a "What's new in InDesign CS4 scripting DOM" somewhere?
    Just to complete the picture…
    Uwe

  • How to retrieve page number of a page

    Hi
    I need to retrieve page numbers that have been placed on InDesign pages. However these page numbers are autogenerated based on markers (formula) created using a master page. (Insert special characters -> markers).
    When i try to retrieve page items on a page, I am not able to get the page number item. If I try to get the pageitem corresponding to the page number from the master page, I get back the marker but not the page number that exists on my page.
    I am wondering if there is any way I can retrieve the page number on a given page using the SDK
    many thanks
    Sam

    Hi
    Thanks a lot for the quick reply.. For my usecase i now realize i have a different sort of problem.
    I am trying to take snapshot of pageitems on a page (using snapshotUtils sample). Now since the page number marker comes from the master page, when i take the snapshot of the page number item on my page,  this page item exists on the master page. On the master page, this pagenumber does not contain the actual page number but the marker text in it. So mysnapshot gives me the image of the marker text rather than the page number. I am wondering what I can do to basically get a snapshot of a page item which comes from a marker on the master page
    Thus on my master page i have a text box with Pagenumber: "Marker A" for page number
    on my page, I want to take snapshot of  Pagenumber:10 which is what gets displayed on my page
    However when i take snapshot, since i am taking snapshot of master page item, i get Pagenumber: Marker A as my snapshot
    thanks
    Sam
    Here is my code snippet for what I am doing
    InterfacePtr<IMasterPage>   masterPage(currentDocumentDataBase, pageUID, UseDefaultIID());
      if(masterPage  !=  nil)
          UID masterSpreadUID = masterPage->GetMasterPageUID();
            uint16 masterPageIndex = masterPage->GetMasterIndex();
           //get the  master  spread
            InterfacePtr<ISpread>   masterSpread( currentDocumentDataBase, masterSpreadUID, UseDefaultIID()  );
           if(masterSpread   != nil)
                    UIDList masterPageItems( currentDocumentDataBase );
                       masterSpread->GetItemsOnPage(masterPageIndex,   &masterPageItems, kFalse, kFalse);
    The problem is  that  SnapShotUtilsEx captures the item as it appears on the master page, not  on  the current page.  So thing like page markers are wrong.
    thanks

Maybe you are looking for