cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting last blank page in smartform

Former Member
0 Kudos

i have 23 pages in my smartform.the 'next page' is the first page itself.Last page is blank.So i want to remove it.

Plz tell me how should i go abt this.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI ELENA,

CREATE PROGRAM LINES UNDER UR COMMAND NODE..

BEFORE THT DECLARE VARIABLE IN GLOBAL DECLARATION OF TYPE I (SUPPOSE N) ....

SO IN PROGRAM LINE WRITE N = N + 1 (THTS LIKE INCREASING COUNTER)

AFTER THT IN CONDITION TAB OF COMMAND NODE PUT CONDITION

N GREATER EQUAL TO 1.

SO THIS WILL REMOVE THE BLANK PAGE

Former Member
0 Kudos

Hi Elena ,

Did you found the Currect Solution for this Problem since I am facing the same kind of problem and not able to get the solution yet .

Former Member
0 Kudos

HI Elena,

You are correct but we have to give n=n+1 condition in code window and command window both ,

then its remove thelast blank page.

Rgds,

Premraj

Answers (4)

Answers (4)

Former Member
0 Kudos

if your using tables or loop

goto data tab in sort criteria tick the checkbox event on sort begin

under this create command node call next page.

Former Member
0 Kudos

hi im also getting same kind of problem if u got the solution plz inform me

thanks n regards,

manoj

9248158131

Former Member
0 Kudos

Hi Tushar,

My pages are generated randomly....my program is : a particular city details on a particular page ......here my last page is blank...thats wat i want to delete....

Thanks in advance..

plz reply...

Former Member
0 Kudos

Elena,

Are there multiple windows in the page, (i.e) both Secondary Window and Main Window. in that case what you can do is, create a page2 with just the main window and map it to the first page.

page1   next page   page2
page2   next page   page2

Since you are calling the same page, the secondary windows will require data to be printed and there might be a reason for the blank page.

Tushar

Former Member
0 Kudos

Hi Elena,

There might be two reasons for tirggering a blank page in the smartform.

Do you have the main window in the last page of the smartform. If so check if there any blank entries to be displayed in the main window. If there are any blank entries then it will trigger a blank page.

Check if there are any extra pages which have been mapped, which could trigger a blank page.

Regards,

Tushar