cancel
Showing results for 
Search instead for 
Did you mean: 

New Page in Smart Forms

poornimal_nathan
Explorer
0 Kudos

Hi,

I need to print different records in different pages based on certain conditions. I've entered the conditions in the appropriate command lines node. But I need to know what the exact line to add/call a new page is. Can somebody out there help me?

Accepted Solutions (1)

Accepted Solutions (1)

arul_murugan
Active Participant
0 Kudos

hi,

In the internal table create one more field name flag.

loop at <table>.

at new <document no>.

table-flag = 1.

modify table transporting flag.

endat.

endloop.

The below loop is to avoid the first page blank.

loop at <table>.

table-flag = 0.

exit.

endloop.

i think you display the document no in the main window

In the smart forms create one command in the main window.

in that command go to general attributes tab and tick go to new page and in the text box give the page you want to display.

after that go to condition tab give field name as table-flag and comparison value equal to 1.

it will work.

regards

arul.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Declare a Command and put the condition

set the page to trigger

you can set this inside the table option of the form

Regards

Shiva

Former Member
0 Kudos

hi,

u want a page break u will have to <b>use a command node inside the loop</b>...

u will have to set flag when u r condition is satisisfied, and in commad node condition u will have to put this flag = 'X'....

hope this will work...but it is <b>necessary to put the command node inside loop command...</b>

regards,

Ashokreddy.

Former Member
0 Kudos

hi Poornima,

Hi prashant,

since u want a page break u will have to use a command node inside the loop...

just put the conditions when u want a page break on the command node...

hope this will work...but it is necessary to put the command node inside loop command...

please reward points in case usefull....

regards,

prashant

poornimal_nathan
Explorer
0 Kudos

Prashant,

I do understand the logic. But i need the command used. For eg. DESCRIBE TABLE will obtain the properties of the table. I need a specific command.Sorry for inconvenience caused.

Former Member
0 Kudos

hi poornima,

at the command select the general attribues,

here enable go to new page check box and provide the next page name in list box input,

then conditons tab u can enable avbl checkboxs according to your requirement.

regards,

seshu.

poornimal_nathan
Explorer
0 Kudos

All,

I put the command inside the loop. But there's an error that says'No explicit page break possible in tables'. Any help?