‎2008 Jul 09 3:58 AM
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
‎2008 Jul 09 4:14 AM
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
‎2008 Jul 09 4:17 AM
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
‎2008 Jul 09 4:48 AM
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.
‎2008 Jul 09 4:51 AM
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
‎2008 Jul 09 5:36 PM