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: 

new page in depend on entry smartform

Former Member
0 Kudos

Hi,

I have developed a smartform and in that a table is there  I am printing some entries based on hierarchy and now my issue is TEAM LEADER is there below i  am printing all the members under the team lead in that way n number of team leads and members.

1)if 1st team lead has 2 members and 2 team lead has 2 members both has to print in same page.this is done

2) now if 1st team lead has 3 entries and 2 team lead has 20 entries then  I has to print the first team lead and members in first page and 2nd team lead entries has to print in 2nd page.(not done). how can i count remaining how many entries that a page can hold after filling the 1st team lead entries.

how can i achieve 2nd point.

Thanks,

Vijay.

1 REPLY 1

satyabrata_sahoo3
Contributor
0 Kudos

Fix number of rows/lines in main window.

Say you fixed for 25 lines.

Count number of 1st Team Lead entries.

Count 2nd Team lead entries.

If both entries becomes more than 25 then use command to achieve page break and print the 2nd team lead entries in next page.

-Satya