cancel
Showing results for 
Search instead for 
Did you mean: 

problem with calculating total numberof pages

Madhurivs23
Participant
0 Kudos

Hello All,

I want to display one window on all the pages except last page and second window on the last page only.

I was giving condtion of sfsy-page and sfsy-formpages. but both the values are incremting by 1 at each page so not able to check properly whether last page has come or not.

Is there any other way so that I can print X window at all pages except last page and Y window at the last page????

Thanks in advance,

Madhuri

Accepted Solutions (1)

Accepted Solutions (1)

aidan_black
Active Contributor
0 Kudos

Hi Madhuri,

During the procesing of a smartform the smartforms composer cannot know how many pages will b processed. Therefore if you

want to use a condition with sfsy-formpages, you should only do this in a window of type 'Final Window'(late processing window).

Regards,

Aidan

Madhurivs23
Participant
0 Kudos

Hi Aidan,

I tried to give this condition in the final window. But still the Y window is getting printed on the first page.

Please help.

Regards,

Madhuris

Former Member
0 Kudos

Hi,

In the condition tab of the window there are options for the same.

window 1 display before last page.

check the condition only before end of main window.

window2 display only on last page

check the condition only end of main window

Regards,

Sakshi

Former Member
0 Kudos

Hi Madhuri,

Take 3 pages. 1st page and 2nd page shoud contain the same window X so that if the first page overflows then 2nd page repeates. 3rd page containds Y window. Depending on some condition(may be end of main window) call the 3rd page using command node. you can put the condition on COMMAND node like end of main window.

Regards,

Venkat B

Madhurivs23
Participant
0 Kudos

Hi Venkat,

My requirement is like this.

I have 2 windows(X, Y) in the same page ie first page.

The X should get printed if the first page is not equal last page.

The Y should get printed if the first page = last page.

How do I code that one?

Rgds,

MadhuriS

Former Member
0 Kudos

for the window X select Only on First Page check box in Conditions

for the window Y select Not on first page check box in Conditions

regards

Venkat Boddula

Answers (0)