on 12-02-2009 9:24 AM
Hi to all,
Need help, i am new with adobe forms and do some search but i didnt find one.
the problem is this the main/content area is display with a box then a total at the end. Now when the document is only 1 page then the total will be display in the page 1. If document has 2 pages then the total will be shown in page 2. remeber that this total is diplay in fix postion. what i did right now is the total amount will be displayed both pages. please see details below.
main / content area
________________________
| description | amount |.
| description | amount |.
| description | amount |.
| | |.
| | |.
| | |.
| | |.
| | |.
| total | amount| -
> fix position. cant use flowed. if positioned the total will appear all pages
actually my master pages contains the fix box with TOTAL and TOTAL AMOUNT at the end.
the spell word of the amount and the signatory.
under design view i only flag the description and amount of line item flowed to trigger the second page.
now hence the total and total amount is in fix position under master pages. it will appear on all pages.
how will i make fix position but it will appear only on last page.
thanks in advance
regards,
Etrafanob
Following Form Calc Script Calculating Total page count if Current Page no NE Total page then field should be invisible.
Put the following Code in Layout ready of the particular Amount field
var curpage = $layout.page ( ref ( $ ) )
var pagecnt = $layout.pageCount() ( ref ( $ ) )
if ( curpage <> pagecnt ) then
$.presence = "invisible"
endif
Kanagaraja L
Edited by: Kanagaraja Lokanathan on Dec 2, 2009 12:12 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
thanks for the reply. the logic make sense but i am generating the page and page count using javascript not formclac with this code
this.rawValue = xfa.layout.page(this);
this.rawValue = xfa.layout.pageCount();
taken from the library custom page n of m function.
Edited by: Etrafanob on Dec 3, 2009 11:59 AM
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.