Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Multiple Master page issue in Adobeforms

Former Member
0 Likes
29,085

Dear experts,

I have developed Adobe form which contains 4 master pages and 4 body pages accordinlgy.

(Say M.Pages- M1 -> Body Page - B1

        M.Pages- M2 -> Body Page - B2

        M.Pages- M3 -> Body Page - B3

        M.Pages- M4 -> Body Page - B4)

Each Master page layout is differed & body page also differed.

Based on conditions need to display 1 or multiple Master pages and its related body page data.

(First Master Page would trigger in all scenarios.)

Scenario 1:

If only 1st master page get triggered, then no issues, everything is fine.

Scenario 2:

Based on some conditions, we have to print M1, B1 & M2,B2.

In this example: M1 & itz body page contents extends to 5 pages.

Then i have data in M2 & B2(Second Master page & Body page), body page content is extending to another one page ie., on 6th page.

But when Second body page content is displaying, it is still getting First Master page headings and logo.

Can you please let me know how to get Second Master page triggered when second body page data is displayed.

What would be the pagination settings?

Thank you in advance.

Regards,

Kumar

25 REPLIES 25
Read only

Former Member
0 Likes
25,052

Check the settings in Pallets->Pagination. You have give content area of each master page to body page in PLACE. In over flow also provide content area of M1 to B1 and so on..

Read only

0 Likes
25,052

Hi Raghu,

Thank you for your reply.

As you suggested I have changed the settings, Still not getting second master page header details..

I chose each body page PLACE to have corresponding content area of master page & Overflow as Content are of corresponding Master page...

Any other settings missed? Appreciate your help.

Thank you.

Read only

0 Likes
25,052

Hi,

Can anyone help me in this.. I tried different options by changing pagination settings.. but no luck.

Thank you in advance..

Regards,

kumar

Read only

0 Likes
25,052

Hi Kumar,

I have a scenario where I have several master pages developed and I did not place in content area but instead used the option of On Page.  So in your case I think it would be:

B1 On Page M1

B2 On Page M2

B3 On Page M3

B4 On Page M4.

Regards,

Ryan Crosby

Read only

0 Likes
25,052

Hi Ryan Crosby,

Thank you for your reply.

Initially i have used same settings ie.,

Pagination -> Place:

B1 On Page M1

B2 On Page M2

B3 On Page M3

B4 On Page M4.

but it was showing first master page headers even for second body page(B2)!!!

Here first body page(B1) is empty and started printing from next page onwards!!!

Then I have changed settings to:

Pagination -> Place:

B1 Following previous

B2 On Page M2

B3 On Page M3

B4 On Page M4.

Then issue with first body page(showing empty page) has gone...

But still there is an issue - showing first master page headers even for second body page(B2)!!!


Hope my issue is clear... Thank you for your help..

Regards,

Kumar

Read only

0 Likes
25,052

Hi Kumar,

What do your Subform, Pagination, and Binding tabs look like for the B2 subform as well as the pagination tab for the B1 subform?

Regards,

Ryan Crosby

Read only

0 Likes
25,052

Hi Ryan Crosby,

Here it is:

B2:

B1:

Thank you...

Read only

0 Likes
25,052

Hi Kumar,

It looks like you have selected P2ContentArea for the P2_subform instead of the M2 Page.  In the example that I have that coincidentally also has four master pages I have selected "On Page" here instead of "In Content Area".  See my example below to illustrate how it differs slightly:

Regards,

Ryan Crosby

Read only

0 Likes
25,052

Hi Ryan Crosby,

Even i have selected M2 page for the P2 subform, But it was showing 1 extra empty page after P1 body pages.. and then it is showing P2 body pages(with M1 headings)

Then i have changed as above... at that time empty page issue has gone but M1 headings still continuing...

Any further help!!!

Thank you.

Regards,

kumar

Read only

0 Likes
25,052

Hi Kumar,

I'm at a loss in regard to the wrong master page because that should be working based on your configuration - I have only seen strange things like this in the past where I think maybe some cache issues were happening in ADS or something.  The only other thing I can think of would be to double check everything on your M2 page because you mentioned getting that blank page.  Also, can you give a screenshot of your master page hierarchies with what they contain for M1 & M2 like I have done in my example?


Regards,

Ryan Crosby

Read only

0 Likes
24,988

Hi Ryan Crosby,

Thank you for your reply..

Overall it looks below:

Here are M1(First Master Page: P1)

P1 Subform: (B1- Body page)

M2(Second Master Page: P2)

 

P2 Subform: (B2- Body page)

Thank you.

Regards,

Kumar

Read only

0 Likes
24,988

Hi Kumar,

The only item that I would be suspicious of based on what you described is 'HIDEPAGE_AN' in the P2_subform.  Do you have some type of logic for visibility keyed on that element?

Regards,

Ryan Crosby

Read only

0 Likes
24,988

Hi Ryan Crosby,

yes, based on that flag, i show master page 2(M2).

When this flag is set(based on conditions), it only displays M1..this is fine..

When this flag is not set..Then i need to show M1 pages & M2 pages...

Here i am facing problem... It is showing M1 pages correctly and then, body pages of M2 coming but with M1 headers....

(It's acting like B2 assigned to M1, But it assigned to M2 only....)

Thank you...

Read only

0 Likes
24,988

Hi Kumar,

I think therein lies the problem that you are having.  What I would do instead is setup the P2_subform to be bound to the table instance.  What that does is allows you to make sure that subform is only displayed when the table is not INITIAL.  Taking that approach you don't have any conditional trying to control the display of the master page and it will simply determine which master page based on the pagination configuration of the subform.  Here is an example of a nested subform structure where the top level subform is bound to a table row instance (although I think in your case you are probably only looking for table level) and it has an inner level that is bound to an even finer level of detail for each item.

Layering -

Item Header -

Item Details -

If you notice the layering piece too in conjunction with the below layout you'll see that I have not embedded any tables but I was still able to achieve a more complex layout using western text flow:

If you use the binding technique I think it will help to solve your problem.

Regards,

Ryan Crosby

Read only

0 Likes
24,988

Hi Ryan Crosby,

Thank you for your reply.

It seems i have not mentioned my issue clearly.

Actually I have 5 layouts:

Layout1:

First Master page contatins Logo1 & Address1

=> Body page: Internal table 1 records...

Layout2:

Second Master page contatins Logo2 & Address2

=> Body page: Internal table 2 records...

and so on for remaining 3 layouts ...

Case1:

When I have to print Layout1 only (First Master page data) - It is working fine

(In this case I don't have internal table data in Other master pages)

Case2:

When I have to print Layout1 & Layout2 (First & Second Master pages) - It is not showing correctly.

Currently it is showing as below:

(In this example Layout1 has 3 pages & Layout2 has 1 page)

Page1:

Logo1          Address1

Internal table1 records

- This is correct.

Page2:

Logo1         Address1

Internal table1 records

-This is correct.

Page3:

Logo1         Address1

Internal table1 records

- This is correct.

Page4:

Logo1         Address1

Internal table2 records

- This is NOT CORRECT.

Page4 should shown as below:

Logo2         Address2

Internal table2 records

==================================

Hope i have explained my issue clearly..

Appreciate any help.

Thank you.

Regards,

Kumar

Read only

0 Likes
24,988

Hi Kumar,

I have understood the issue - I was suggesting a change of the way the forms are bound because you mentioned that you are using that other field to determine visibility.  It is easier to simply have a subform "flow" if it has data which is what I have done in the example I shared.  The subform is bound to my table and it will only display if the table has data.

Regards,

Ryan Crosby

Read only

0 Likes
24,988

Hi Ryan Crosby,


Oh, okay.

I have removed code related to determine visibility. still same thing..

Am not sure what is missing OR what is wrong..


Thank you.


Regards,

Kumar

Read only

0 Likes
24,988

Hi Kumar,

Apologies, but I'm fresh out of ideas at this point.  I wouldn't be much help now without seeing the entire form in detail.

Regards,

Ryan Crosby

Read only

0 Likes
24,988

Hi Ryan Crosby,

It's Okay. Thank you for your help.

Regards,

Kumar

Read only

Former Member
0 Likes
24,988

Hi Kumar,

Unfortunately with adobe form we have limited control over master page selection. If you just need to generate print form then there is an option to open and close spool job and print multiple forms between open and close. So to use this, you need to split your print from in 6 different forms(each with one master page and corresponding body pages).

Between open and close you call pdf form's generated FMs in sequence as you need.

It should be like this.

1. Get data for print forms.

2. Call FM - FP_JOB_OPEN.

3. Call M1 form's generated FM

4. Call M2 / M3 FMs as you need.

5. At last close spool job using FP_JOB_CLOSE.

Hope this helps.

Thanks and regards,

Ripal Patel

Read only

0 Likes
24,988

Hi Ripal Patel,

Thank you for your reply.

I heard that we can print multiple Master pages using Adobe forms. Hence I have created one Adobeform with multiple Master pages. Then i came across this problem...

Yes, I know this can be achieved by creating multiple forms for each master page and use those in between Job_open & Job_close (As it is similar to Sap Scripts).

Just want to make sure that we can't achieve this functionality using one adobeform..

Thank you so much for letting me know the limitations of Adobeform over selection of Master pages.

Regards,

Kumar

Read only

0 Likes
24,988

Hi Kumar,

I am new to Adobe Form, just learn by myself but I design a form with multi-master like you and it works for me.

I have:  Master 1 - Body Page 1 in landscape format

            Master 2 - Body Page 2 in portrait.  In Master 2, I have Logo2, Text: 'Customer Copy'.

                                                                Table data in Body Page2

            Master 3 - Body Page 3 in portrait,  In Master 3, I have Logo 3,  Text 'Bank Copy'.  Table data in Body Page 3.

I encountered similar issue like you, but I finally figure out.

On Body Page 2, In pagination you should have;  Place on Page2  After Continuous Filling Parent,  Over Flow go to page 2

On body Page 3 - In pagination you should Place on Page 3, Contiue Filling Parent and Overflow go to Page 3.

In design View, if you see empty page, select it and delete it, Hope it helps. 

Read only

0 Likes
24,988

Hi Valerie Lee,

Thank you for your reply.

I have done that setting already but same thing.. Body page2 is coming with M1 page...

Again i have tried now with same setting, still Body page2 data coming along with Master page M1.

On Body Page 1, In pagination ;  Place: Following Previous;  After: Continuous Filling Parent,  Over Flow: None (I also tried with Go to Page1)


Is there any other setting required....?

Regards,

Kumar

Read only

0 Likes
24,983

Hi Kumar,

Make sure that the body page control level line up with Master Page.  Not Master Page 1 or Master Page 2.  Here is a picture of my control setting on Master Page and Design View  and it works for me.

Design view :

Read only

0 Likes
24,983

Hi Valerie Lee,

Here is the picture of Master pages.

Here is the picture of Body pages.

I did not understand "body page control level line up with Master Page".

Can you please help me based on my above layout screens, Or please let me know is there any other info i need to provide.

Thank you so much for your help.

Regards,

Kumar