Application Development 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: 

How to repeat header record on every page in smartforms?

Former Member
0 Kudos

Hi, friends. I have created a smartforms.It contained header record and line record. The smartform as shown below.

The Header record in TEMPLATE1.The Line record in TABLE1.

I inserted line record in program line. But I found a program.

The TEMPLATE1 can't print on every page.

If Line record too many, there are not Header record on next page.

I wish the Header record in TEMPLATE1 print on every page.

How to repeat header record on every page?

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

You could try to move your template in a secondary window?

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

You could try to move your template in a secondary window?

0 Kudos

But I have many header record. How to create a secondary window in a loop?

0 Kudos

What do you mean by "many header record"?

If it's a header for the table then you can put the header into, well, Header part of the table control. That's what it's for, no need for template at all. But with this "many header" detail the question has become confusing. And why is header in a loop? Could you explain clearly and add a picture of what you're trying to achieve?

0 Kudos

thanks, you are right.Now I know write header record in Header part of the table control.thankyou very much.

amy_king
Active Contributor

Hi,

  1. You need a FIRST page and a NEXT page.
  2. Page NEXT should be set as the next page of page FIRST.
  3. Place your template header within a secondary window on both pages.

The header template will print automatically on each NEXT page.

Cheers,

Amy

0 Kudos

Dear Amy,

I'm working on an old form where a table and the table's headerline was set up like you mentioned. Problem is: the table's template header is repeated everytime, even if there are no table entries left to be shown at NEXTPAGE (the table has got just enough entries for page 1).

I couldn't find a solution like "only show table header template when at least one table entry remains to display". Any suggestions?

Best regards
Sebastian