cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple records to display on one page

Former Member
0 Kudos

Hello Experts,

Can anyone please help me with this problem. I have a pre-printed railway-wagon form.

i want to display maximum of 4 different records, as per the spaces given in form, on one page and the rest on next page.

i managed to print different records but they are coming on separate pages, now how to combined it on one page for first 4 recordson 1st page and then for next 4 on 2nd page like that i need it.

Thanks in Advance.

Varun

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

The problem has been Solved...!!!!!

Former Member
0 Kudos

Hi,

Take Main window and fix its height by testing as like following:

Main window

-->Table Node(for this DATA tab provide your Internal table to display data)

-->Create Line by clicking DETAILS Button on TAB : TABLE and Select Check Box "NO PAGE BREAK" for that Line

--> Come BACK >Right Click on MAIN AREA of Table node and provide the TABLE LINE>Provide Line type as the above created Line Type

-->Test it By Changing Height of MAIN WINDOW.

When It is displaying 4 Lines on 1 PAGE as per your Requirement then Maintain Height Of MAIN WINDOW as like that to display 4 Line items on a PAGE...try this

Former Member
0 Kudos

Hi,

If your record length is fixed then you can adjust the main window height and can make the 4 recods to display in each and every page.Else you need to do it programatically and call a new page.

Former Member
0 Kudos

Hi,

I am getting the different records but they are printing on different pages of smartform. i want to display these records (maximum of 4) on one page of smartform then another 4 records on second page....

Former Member
0 Kudos

Hi,

In the main window, create table as per your required format. Then loop the final internal table data to this table in main window. So that the values in the internal table will not be displayed in each different page.

Here make sure that, the main window height is set to display a maximum of 4 lines inside the table. So after displaying 4 lines in the internal table, smartform will trigger a new page to display the next 4 lines and so on.

Former Member
0 Kudos

Hello Harish,

What i did is on one page i took 4 windows and under each window one table.

I made last window as MAIN window and used COMMAND for next page under main window.

So paging wise is OK.

But the same set of records are appearing on every page.

I mean first 4 records are appearing on every page instead of next 4 should come on second page.

Former Member
0 Kudos

Hi,

Just try the method which i have mentioned earlier.


In the main window, create table as per your required format. Then loop the final internal table data to this table in main window. So that the values in the internal table will not be displayed in each different page.
 
Here make sure that, the main window height is set to display a maximum of 4 lines inside the table. So after displaying 4 lines in the internal table, smartform will trigger a new page to display the next 4 lines and so on.

Former Member
0 Kudos

Hi harish,

I did what u said but i did not get the desired result.

Still ONE record is appearing 4 times in a page though i want 4 records to appear on ONE page of smartform and if more no. of records exists then it should get displayed in next page.

1 to 4 records on 1 page of smartform

5 to 8 records on 2 page of smartform and like this i need...

kindly tell me the proper solution...

Former Member
0 Kudos

Hi,

Try creating a main window with the height to print a maximum of 4 lines. Or you need to do do the coding in such a way as to calculate the line items being printed and after every 4 lines you need to manually call a new page ussing command.

Thanks & Regards,

Harish