on 07-16-2010 11:53 PM
Hi Experts...
I'm having a problem with the paging of a couple of Smartforms...
I did not develop them but I've been asked to try to fix the issue.
The forms have something particular, they have different PAGES (2 or more) and the customer wants the page counter to INITIALIZE for each PAGE.
For example:
One of the forms is an AUDIT Form. It has the pages FIRST and SECOND.And they're set up like this:
FIRST:
- Next Page: SECOND
- Mode: Initialize Counter
SECOND:
- Next Page: SECOND
- Mode: Increase Counter
To Print the paging we're using:
Page &SFSY-PAGE& of &SFSY-FORMPAGES&
When we print, there are 3 pages on the form (2 for FIRST and 1 for SECOND), BUT, the paging is coming out like this:
Page 1 of 1
Page 2 of 1
Page 1 of 1
The correct would be:
1 of 2
2 of 2
1 of 1 (because this is "a different form inside the same form")
First 2 pages are for FIRST... and the last is for SECOND.
I have already changes the config to both as INCREASE (still wrong 'cause then they show 1 of 3, 2 of 3 and 3 of 3)
I've tried everything... any ideas?
Thanks a lot in advance!
Fernanda
hi friend,
Take a look at example report SF_EXAMPLE_03. You must separate the print time of form to get what you want.
Hope that help,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The current value you are getting is
Page 1 of 1
Page 2 of 1
Page 1 of 1
Whereas you want it to be like
Page 1 of 2
Page 2 of 2
Page 1 of 1
For this you have to use &SFSY-JOBPAGES& instead of &SFSY-FORMPAGES&
And the Setting would be same as before.
Like for Audit form u have 2 pages.
FIRST:
- Next Page: SECOND
- Mode: Initialize Counter
SECOND:
- Next Page: SECOND
- Mode: Increase Counter.
This will solve ur problem
Thanks!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
use the below
Page &SFSY-PAGE& of &SFSY-JOBPAGES&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
&SFSY-FORMPAGES& gives the total no of pages in a form and as per your example it is 3 . You are trying to achieving something which is not possible with system variables.( print 2 layouts using 1 smart form object ).
You may review the data and see the how pages are displayed. .. if it is always 3 pages then you can hard code it or reset the counter based on &SFSY-PAGENAME& . otherwise you need to build a logic to determine how many second pages out of &SFSY-FORMPAGES&...
It would have been better if the second page is kept as a separate smart form, however doing this now would be time consuming .
In case you are not able to derive the no of pages from the total pages, then I would suggest you to convince the business to use simple page numbering(1,2,3 ). and then you can reset the page counter based on page name .. ( use variable for page counter ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.