Conditional Master & body page in Adobe Forms

Hi,
I have an existing Master and body page in my PDF Form. Based on some value appearing in the internal table, I need to display another Master(with only Content area) and Body page. So in my case I have created two master and two body pages. Only if I get a value in some field in the internal table of Body page2, I need to display the master page2 & Body page2. Else, my master page2 & body page2 should not be displayed.
Is this scenario possible?
Thanks in advance.

This was a duplicate question.
Kindly remove this thread if possible.
The solution for this thread is as follows:
I was sort of hoping that there should be some standard functionality available for this, it being Adobe, but there is not.
So, I had to run a work around. Quite a lengthy one.
What the problem was:
I needed to print around 4-5 tables adjacent to each other in single page and in verticals. What Adobe does is: it fills 1st table, then 2nd then 3rd and so on. So, if there is a page break due to large entries in the adobe, the contents breaks with rest of the tables being blank, but the content being filled sequentially.
What I did was:
I created a grand table with the structure having all the tables embedded in it. eg.
data: begin of grand_table occrs 0,
table_A type table_a_table_type,
table_B type table_b_table_type,
table_c type table_c_table_type,
end of grand_table.
Hence, I could include all the data in a one single grand table, and put the data in sequential manner.

Similar Messages

  • Table footer issue in body page of adobe form

    Form has 1 master page and 1 body page. Body page has table within which there is a footer header and detail (2 footers) in the form. My intention is to make footer (both the footers) appear in the last page of the form. For most of the scenarios, footer is displayed at the last page or if it has only 1 page to display, it shows in the first page itself.
    But issue arises when number of rows reaches the maximum length of body page. Let's say, body page can accommodate 11 rows, then footer header is displayed in 1st page but footer detail is shown in next page (2nd page).  I want to show both of these in the last page with 11th record in the last page without any break.
    I've tried below options:
    1. Group both footers as a section and check "Include footer row in final page" in pagination tab.
    2. Mark both the footers individually with check "Include footer row in final page" in pagination tab.
    Is there any other option that I need to look for to solve this issue?

    Thank you Norbert. That solved the problem.
    I've one more question relating to this. Let's say I can only display 11 records in one page with these 2 footer. For 12 records, 2nd page shows last record with these 2 footers. 10 records will be displayed in one page properly. But when it comes to 11 records, 1st page shows all of 11 records and 2 footers with a page header will be shown in 2nd page. Is there a way to control this dynamically so that whenever 11th record needs to be shown, even though body page(or subform) can accommodate 11 records, show the 11th in 2nd page with footers?
    Thanks,
    Phani

  • Table Overflow - Page Break - Multiple tables in Body page in Adobe forms

    Hi,
    I have to do a payslip in Adobe forms. I am using only Adobe for print forms.
    Please redirect me to correct category if this is wrong category.
    I am customizing standard form PYXXFO_SAP_PAYSLIP_IN01. (payslip for india through hrforms)
    The standard form is entirely positional. So, if the contents of the table overflow, they are overwritten on the contents below.
    So, I have to make corrections to adjust the payslip for table overflows.
    My changes:
    1. There are total 8 tables in form. I created content areas for each of them and assigned the subforms/tables to those content areas.
    2. I converted the body page from positional to flowed, and applied the related pagebreak settings.
    The problem I am facing:
    When the earnings table overflows, the rest of the content is displayed on second page, in a continuous manner.
    eg.
    The structure of the form is:
    Header details
    earnings table   deductions table   form16 table
    Other tables
    leave details
    now, if the earnings table overflows -
    page 1:
    Header details
    earnings table (page break)
    Page2:
    (continued)earnings table
    page3:
    (continued)earnings table   deductions table   form16 table
    Other tables
    leave details
    In this, the deduction table and form16 table is shown on 3rd page. I wish to show them on the first page as they have not overflown.
    I am sure, I am missing something very small, but I am unable to understand what.
    I tried all the possible combinations.
    Does the main subform needs to be "positional"?
    They way I expect it is:
    page 1:
    Header details
    earnings table (page break)    deductions table   form16 table
    Other tables
    leave details
    Page2:
    {Header details - It would be great if I could have this}
    (continued)earnings table
    page3:
    {Header details}
    (continued)earnings table
    Also, If this is successful, I would like to apply the same feature to rest 6-7 tables.
    Edited by: chinmay kulkarni on Aug 17, 2011 3:04 PM

    This was a duplicate question.
    Kindly remove this thread if possible.
    The solution for this thread is as follows:
    I was sort of hoping that there should be some standard functionality available for this, it being Adobe, but there is not.
    So, I had to run a work around. Quite a lengthy one.
    What the problem was:
    I needed to print around 4-5 tables adjacent to each other in single page and in verticals. What Adobe does is: it fills 1st table, then 2nd then 3rd and so on. So, if there is a page break due to large entries in the adobe, the contents breaks with rest of the tables being blank, but the content being filled sequentially.
    What I did was:
    I created a grand table with the structure having all the tables embedded in it. eg.
    data: begin of grand_table occrs 0,
    table_A type table_a_table_type,
    table_B type table_b_table_type,
    table_c type table_c_table_type,
    end of grand_table.
    Hence, I could include all the data in a one single grand table, and put the data in sequential manner.

  • Difference between Body pages and Master Pages in Adobe forms?

    Hi SAP Gurus,
    Please can any one tell me the difference between the Body pages and Master Pages in Adobe Forms?
    In what scenarios we use Body pages and Master pages?
    And also please tell me what is Boiler plates? When these used?
    Thanks and Regards
    Abinava Siri..

    Hi,
    Master Pages:
    Does not included in the content area
    Master page we will design logo,company address and header information
    Here we can desing footer information
    whatever you desing in the master page it will show for all the body pages
    Body pages:
    Included in the content area
    Where we can design table data, it should repeat for line times.
    Regards
    Ramakrishna Pathi

  • How to create new page in adobe form.

    how to create new page in adobe form.

    Hi
    First Go To Layout.
    On Hicherchy Platte , rightclick on Subform and select option new body page.
    This way you can create body page for the particular subform.
    if you want to create master page , right click on page 1 and select New master page.
    Hope this will helpful to you.
    Rewards if useful.
    With Regards
    Nikunj Shah

  • Why doesn't it show me the Second Master Page in Adobe Forms ?

    Hi guys,
    I have an Adobe Form that has Two Master Pages. When I call the form through the program, It shows me only Master Page 1, it doesn't show me the Second Master page.
    What's the problem? Why isn't it showing me the second master page? Can someone help me with this?

    If you're using HTTPS-Everywhere you might need to disable Pinterest in there!

  • Hiding second page in adobe forms

    hi all,
            I have a adobe form with 2 pages. My first page needs to be displayed always whereas the second page needs to be displayed only for certain conditions. Please let me how this can be done asap.  Thanks in advance.
    Regards,
    Vinod.

    Hi Vinod,
    Here are the Steps to hide the Page, I don't know on what conditions you are going to dispay the second page,
    But the general steps are as follows:
    1) Go to Layout
    2) Go to Hierarchy Tab
    3) Select the Page / Subform that needs to be Hidden or to be made Invisible
    4) Go to "Paletts" menu item--> select "Objects" option from it
    5) Objects tab will be selected by default
      5.1) Select the Master page/ Page/ Subform (Tab)
      5.2) Use the "Presence" property to hide the pages you want, i.e.,
             Select the value for the "Presence" field from the dropdown,
      5.3) Select Invisible / Hidden (Exclude from Layout)
    Regards,
    Samad

  • Header and Footer in not displaying correctly on each page in Adobe Forms

    Hi experts,
       I need your little help on Adobe Form.  I have develop a customer account statement and facing problem.
         In header and footer part I have to display customer address. It is ok if data is of one page. But when data is overflowing, customer address is showing only at first page in header, and not displaying address neither in header nor in footer(footer section will print on last page, it may be either first page or third page ) on other pages. (Address is table type data )
           Header and footer Section address has been designed on Master Page.
    Please help me to resolve these two problems as soon as possible.
    Regards
    Piyush

    I found this post which I hope helps:
    This can be done by bit of tweaking using JavaScript. 
    Actually the problem was, the header was printing continuously in subsequent pages and once the header data was over the rest of the pages contained blank header. But we need have to print same header for each group of items till that group of items finish in the specific page. And for new group of items different header will be filled and so on.
    So to overcome this issue, create the item table in such a way that the header data is also included in the item table for each group of items. In the layout, select your header field and the event READY LAYOUT and write the below JavaScript code. This event is called for each page for that header field, so you can directly map the item table value and put it in your header field.
    // Get the current page
    var currpage = xfa.layout.page(this);
    // variable to store number of fields in that page.
    var fields = 0;      
    // Get the number of fields
            fields = xfa.layout.pageContent(currpage-1, "field", 0);
    // Loop on each field on the page
            for ( i=0; i<= fields.length-1; i++ )
    // Check if the field is in the item table column (it will be actually header data column in your item table)
                if ( fields.item(i).name == "TL" ) 
    // Fetch that value and store in your header field.
                           this.rawValue = fields.item(i).rawValue;

  • Hiding Pages in ADOBE form using formcalc scripting.

    Hi Experts,
    I am new to ADOBE form and currently working on invoice print output. (NOT an  Interactive adobe form)
    My requirement is
    i wanted to print one main page and 5  different annexures(anexures are having different layouts so is in diff forms and contained in diff pages)
    Deppending on 'Oreder reason' (made as global variable)  , i need to select appropriate annexure and print
    main page and any one of the annexure.
    so i should hide all other annexure, to achive this i used formcalc scripting.
    i tried hiding annexure 2 by following code,
    data.Annexure2::ready:form - (FormCalc, client)
    if ( data.G_F_ORDER_REASON.rawValue == "ANX" )
    then $.presence = "hidden"
    endif
    i have passed value 'ANX' to this , i could see the value of order reason printed on page Annexure2 but it is not executing (getting in to if condition) condition and not hiding the page ...
    Experts please help me...
    this way i have to hide 4 other annexures...please help me or give me some other option to achive this.
    thanks and regards
    varun
    Edited by: skyblue on Aug 6, 2011 3:30 PM

    coding Formcalc is a pain.
    But you're doing the right thing by passing in a variable and hiding based on the content of it.
    Here's an example of where I'm hiding a subform on a page.
      if ( main_sf2.charter_only.CHARTER_DOC.rawValue eq "X" ) then
       main_sf2.pts_sf.presence = "visible"
      else
       main_sf2.pts_sf.presence = "hidden"
    endif
    Looks like your code is similar - try changing
    ( data.G_F_ORDER_REASON.rawValue == "ANX" )  to
    ( data.G_F_ORDER_REASON.rawValue  eq "ANX" )
    or instead of $.presence = "hidden"  fully qualify the name of your page to  data.Annexure2.presence = "hidden"

  • Printing Footer Only on the last page of adobe Form

    Hi Experts ,
    I have a requirement of printing text only on the last page of the adoe Forms.
    I know how to do this in Smart Forms , but being a novice in adobe forms i am unable to get the exact place to puth these conditions.
    Please reply ASAP.
    Thanks

    Thanks .
    Problem Solved.
    Here is the Code snippet in Formcalc language that i used in the intialize event
    var curpage  = $layout.page ( ref ( $ ) )
    var totpages = $layout.pageCount()
    if ( curpage ne totpages ) then
    $.presence = "hidden"
    endif

  • Repeating subform on each page in Adobe Forms

    Hello all,
    I created an Adobe Form, where the body is splitted in subforms (all flowed).
    But now, I want that the first subform must be showed on each page on the Adobe Form. A masterpage cannot be used, because soms field have no data and are not showed on the PDF.
    Does anyone know how the first subform of the body can repeat on each page?
    Kind regards,
    Pieter

    Florian,
    I already tried in Javascript for initialize and from.ready methods..
    Now, I tested in Formcalc but the output is the same.
    Page 1:
    On the next pages:
    So, on all the next pages a white space still appears..
    Kind regards,
    Pieter

  • Problem with next page in Adobe Form

    Hi all .
    I only start work  with Adobe Forms so I need your help .
    My form includes   table .
    My problem : only the first page with data is displayed and I don't see the rest  of data .
    What I need to define in SFP (program ? ) for get all my data printed ?
        Regards Helena .

    Hello
    That is a well known bug/ feature. In SFP transaction use the tab Layout instead of the button layout. The form will be opened. Open the Font/ paragraph window, place it where you want (between the other palletes so you can see everything you need) and jump back to SFP/ close the form. Now you can open the full-screen layout using the button and the font window will work for you. Regards Otto
    p.s.: Of course you´re welcome with your questions here:

  • Balance carry forward at end of page in adobe forms

    Hello all,
    I am new to adobe forms.
    I have a table with data with amount column. when the content of the table flows to next page i need to get balance carry forward and page to total and same at next page top as below
    I got to know we need to write script to get this but I don't know script in adobe form.
    So kindly help me.
    Regards
    ujwal

    Hi Ujwal,
    You're script could be handled something like this:
    if(xfa.layout.pageCount() > 1){
    var page = xfa.layout.page(this) - 1;
    var fields = xfa.layout.pageContent(page, "field");
    var total = 0;
    for(var i = 0; i < fields.length; i++)
      var item = fields.item(i);
      if(item.name == "CARRYFORWARD")
        total = total + item.rawValue;
    this.rawValue = total;
    I'm not sure what your technical name for the carry forward value is so I made one up in the sample.  Also, I have used this in one form but at line 02 I had to use -2 instead of -1 for my form even though the scripting help gives -1 as an example.  This will simply check if there is more than one page and if so then it will look back at the previous page to get the value of any field named CARRYFORWARD.
    Regards,
    Ryan Crosby

  • Get number of pages of adobe form before printing

    Dear Experts,
    I want to get number of pages adobe form will print before printing the form.
    Please suggest.

    Hello Sagar,
         Without executing the generated Function Module, it is not possible to get the page count of a form in driver program because the generated FM itself is responsible to execute the whole layout and determine the number of pages in the PDF output. The below screenshot shows the number of pages in the structure /1BCDWB/FORMOUTPUT of generated FM after the generated FM is executed successfully.
    I really don't know why you need the number of pages before calling the generated FM. But if you still need it, then you might need to call the whole FM cycle twice( FP_JOB_OPEN , Generated FM, and FP_JOB_CLOSE ).
    1) First time while calling the FM FP_JOB_OPEN, you need to modify the contents of SFPOUTPUTPARAMS structure. Send the blank values in fields GETPDF, REQNEW and REQIMM, and send the "X" in fields NOPREVIEW, NOPRINT and NOARCHIVE and 000 in field COPIES.
    The reason for doing this is, we do not want actual PDF output. We only want to determine the number of pages.
    2) Now execute the generated FM . You will get the number of pages in the structure /1BCDWB/FORMOUTPUT-PAGES as shown in screenshot above.
    3) Now call the FM FP_JOB_CLOSE as usual.
    4) Again call the FM FP_JOB_OPEN. This time you again need to modify the contents of SFPOUTPUTPARAMS structure reversely. Send the "X" in fields GETPDF, REQNEW and REQIMM, and send the blank values in fields NOPREVIEW, NOPRINT and NOARCHIVE and 001 in field COPIES.
    This time we need the actual PDF output.
    5) Now do the required processing with previously fetched number of pages before calling the generated FM.
    6) Now call the FM FP_JOB_CLOSE as usual.

  • Adobe Help required:subtotal of amount per page in Adobe forms

    Hello everyone,
    I have the following requirement:
    If i have 12 items in my i_item table:
    Page 1 --> 8 items fit
                    calculate and display subtotal of field amount(WRBTR) of the 8 items at end of page 1
    Page 2 --> remaining 4items fit
                    display the subtotal displayed on the on the previous page as first record of page
                    display remaining 4 items
                    calculate and display subtotal of field amount(WRBTR) of these 4 items at end of page 2
    In last page calculate and display grand total based on the subtotals
    In my table i_item (DATA section) i added a footer section and placed the code SUM(I_ITEM.DATA[].WRBTR[]) in the subtotal field, but it gave the grand total.
    As per SDN i changed the code to SUM(WRBTR[])  but nothing is displayed on the form. I also tried SUM(DATA[].WRBTR[*]) and i obtained the valu
    Settings used: Formcalc , Client, Calculate, Calculation Script
    i also tried the following two Javascript code with the following settings
    Javascript, Client, Events with Scripts, Calculation Script
    in the footer row and i obtained nothing on screen
    first code used:
    var fields = xfa.layout.pageContent(0 , "field", 0);
    var total = 0;
    for (var i=0; i <= fields.length-1; i) {
    if (fields.item(i).name == "WRBTR") {
    +total = total + fields.item(i).rawValue;+
      this.rawValue = total;
    second code used:
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    var total = 0;
    for (var i=0; i <= fields.length-1; i)
    if (fields.item(i).name == "WRBTR")
    +total = total + fields.item(i).rawValue;+
    this.rawValue = total;
    kindly provide help.
    thanks&regards;

    Hi Devi,
    Try with this code.
    1. For subtotals:
    Show: Eventswith script, language: Javascript, Run At: Clinet.
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    var total = 0;
    for (var i=0; i <= fields.length-1; i++) {
    if (fields.item(i).name == "NETPR") {
    total = total + fields.item(i).rawValue;
    this.rawValue = total;
    2. For Grand total:
    Show: Eventswith script, language: FormCalc, Run At: Clinet.
    sum(data.Subform1.T_VBAP.Group1.DATA[].NETPR[])
    Regards,
    Raju.

Maybe you are looking for

  • Sync calendar iPhone and ipad

    What are the settings required to sync calendars between iPhone and iPad?

  • G-Mail Account Not showing up in Messaging Folder

    On my Droid X, that I can't say enough about, I noticed that my G-mail Account is not showing up in the Messaging folder.  I have tried the "manage account" option and it shows the account,  but on the main messaging screen, it is only showing my com

  • How do I get rid of my Windows XP partition?

    A few days after installing parallels without any problems I now get this error every time I try to boot up my Windows XP partition: Windows could not start because of a computer disk hardware configuration problem. Could not read from the selected b

  • Reading "u00A3" through file content conversion

    Hi, My input file has  "£" as a character. While reading this character through file content conversion XI is converting it into two characters. I have used encoding as UT-8, and have tried various other encoding as well. But nothing seems to be work

  • How come I cannot attach a text edit file?

    Hi, I created a TextEdit file and I also included several photos within the document. The document is an RTF file "with attachments". I want to e-mail this to a friend. When I go to send it, the document is grayed out and will not allow me to select