Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Print multiple Smartforms at one time

Former Member
0 Likes
1,167

I have a Smartform that is a timesheet. What I need to do is print a timesheet for each employee that is in an internal table. However, I can't loop through the table in the main window as the timesheet isn't a simple table. What I need to do is call the Smartform, once, for each entry in the internal table. Then I want to hold off the printing (prompting the user to select the output device) until all smartforms have been created. Or, I need to prompt the user then create all smartforms using the selected output device.

Is there a way to do this?

Regards,

Davis

5 REPLIES 5
Read only

former_member761936
Active Participant
0 Likes
796

Hi,

I think you need to loop through the employees and call smartform for eache mployee.

But it is better to loop in the smart form using loop condition as calling smart form for every employee is little bit odd

Read only

0 Likes
796

I've never done a loop condition. Can I put all of the windows in the loop? I can not get on the VPN now to test it out. I will take a look at that. I don't like calling the SF each time either but that is all that I could think of. The loop sounds great, if i can put all of the windows in it.

Thanks,

Davis

Read only

former_member761936
Active Participant
0 Likes
796

Hi,

We can n't pull all windows in to loop.But possible solution is

Take entire page as main window.

In that main window create a loop and loop all the employees in that, and in that loop you can create template for addition information and table for Line items.

I hope this method can help you.

Read only

Former Member
0 Likes
796

I don't know if that would work. That would require three templates inside of a main template. I don't have any tables to display, only a logo, three templates, and some static text. I only have 4 dynamic fields for each form. This is why I thought about calling the SF for each employee.

Regards,

Davis

Read only

Former Member
0 Likes
796

Does anybody else have any other ideas?

Regards,

Davis