on 08-01-2011 1:26 PM
HI Friends,
i am a new of the Adobe Forms. My adobe form has the 5 pages, at the time of execution. i am gettin the 4 page is blank and it is master page.
Execution time, i am getting the frist 3 pages with data and 5th page also except the 4th Page, the 4th page it's always display the Empty, please suggest me how to delete/Hide the master page at the time of form display.
Can you please help me for this case.
Thanks & Regards,
kirankumar P
Hi All,
I have tried by hiding the master page by initializing the Context area, have also wrote the Java script to hide the same in both master page and Content area, but now the conent area is hided but still the master page is printed with Logo and Date fields. Please guide me on this 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if the page is coming blank then your content area that is body page is not having any content. Check the binding option for elements placed on body page.
If it is printing on 1st page and 2nd page onwards it is coming as blank then check the body page (sub-form) should be flowing not positioned. If it is positioned then it will not flow to 2nd page.
Thanks,
Nitin Sikka
Hi,
There is no point in deleting for hiding the master page, as master page is nothing but like a letter head which is used to print the content.
Master page shall only be used if your data is overflowing to next page. So just check your body page design instead.. if data on body page is following then why it is not printing on next page.
Thanks,
Nitin Sikka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can hide the master page depending on any condition you have. But there is one clean rule. If your master page doesn't want to get printed then content area of that master page should not contain any data. It means even if you hide all the data in the content area, your whole master page ( including its instances i.e overflown pages) will be hidden.
For that you have to create a text field in your layout and drag and drop it in the content area of the master page which you want to hide. The text field acts like a flag whether or not to hide the master page. If 'X' then hide. Else do not hide. The value of the flag field will be decided while coding in the interface itself based on your condition. Then wrap the data of the content area including your flag field in a sub form. Do not forget to hide the flag field after wrapping it in the sub form because you don't want to show this on the page if that page is displayed by any chance.
Finally click on the whole wrapped sub form. Write below Form calc script in events Initialization, Form Ready and Layout Ready.
Here the HIDEPAGE_FLAG is nothing but your flag field.
if ( $.HIDEPAGE_FLAG == "X" ) then
$.presence = "hidden"
endif
This code hides your whole sub form . It means there will be no data shown in the content area and the Adobe framework doesn't print that specific master page(and all its instances). 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sunil's steps works perfect only when you use HIDE_PAGE field in the content area of body page for that master page i.e for a master page and all its instances. I had implemented somewhat same requirement successfully wherein I needed to hide the master page and its instance pages(e.g. overflown pages) for a particular condition.
By instances I mean, you should have a body page for that master page and you use the HIDEPAGE_FLAG in the content area of the body page instead of master page.
I think you are not using HIDEPAGE_FLAG field content area in body page of the 4th master page.
In such a situation if you are sure that you are showing only static content (unlike table), design all your data fields in 4th master page itself without using content area. Use the content area in the body page of 4th master page only for keeping HIDEPAGE_FLAG.
You have to set HIDEPAGE_FLAG to 'X' only when there is no data at all in any of the fields to be displayed in the 4th page This coding you can handle before calling the Adobe form itself.(i.e check if all fields are initial and set the HIDEPAGE_FLAG to 'X').
Make sure of below points.
Background: The reason you have to use the HIDEPAGE_FLAG field in content area of body page is, when you hide the subform (which is the only node available in the content area of body page), the Adobe framework deletes the master page instance itself and its overflow instances(if created) and does not show the 4th page in the output. You can use the same technique for hiding the master pages with dynamic content like tables as well.
Hi Pavan,
I created my page 4 based your suggestions in the blog.
My scenario is to hide page 4 based on a condition, for this from driver program i'm passing gv_flag = 'X' and binding the same to the the text field inside the sub form on page 4. I'm using below script in formcalc in intialize, form:ready and layout:ready
if ( $.GV_FLAG.rawvalue eq "X" ) then
$.presence = "hidden"
endif
When i see the print preview i got the below error.
"Error:accessor '$.GV_GLAG.rawVaue' is unknown"
Appreciate your help.
Thanks
Srinivas
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.