cancel
Showing results for 
Search instead for 
Did you mean: 

arangement of contents below dyanamic main window .

Former Member
0 Kudos

Hi All,

After the main window contents i have to show some footer and other things . but the main window will definitely be dyanamic . So how the position of these objects could be managed after the main window is finished.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member186055
Active Participant
0 Kudos

Hi Smith,

If you want to print Footer and other data after immediate end of main data, please display in Main window itself after end of main data. It'll work for your requirement. No need to find the position of main window( Dynamically) and that is not easy to identify last position.

After end of Table or Loop of your main window, create one folder and write entire logic related to footer and other data in main window itself.

Regards,

SuryaPraveen

Former Member
0 Kudos

The reqt is to display a long footer text with the invoice . If there are only two record then everything should fit on the first page(data and footer text) . if there are more records then on the first page only data records and second page with remaining data records and the long footer .

what condition should i put in the main window for the number of records for both the first page and the next page .

Thanks

former_member209818
Active Contributor
0 Kudos

Hi Linda,

Printing everything on the First page will completly depend on the Long text which you are printing. if that long text can not fit on a single page, definitely it will move to next page.

See the requirement differently. After you Line item printing, you can skipp two blank lines and then start tye Long text printing and left the page handling with Smartform itself..:-)

Former Member
0 Kudos

Hi Harshad,

That long text is in a secondary window . so if the text doesnot fit into the window provided it will be truncated .

The current scenario is there is a first page containing only main window , items would be printed and on the next page which is recursive also contains main window where the remaining records will be printed and it contains also the footer text window .

this footer window should be printed only at the end when all the records are printed whether the records printed till the 10 pages

will it be handled automatically ?

former_member209818
Active Contributor
0 Kudos

Do you have differnent Page layouts? Is that the reason you created First Page and Next page in the SF?

If your page layout is same for all the pages, then you can create only one page and that Text can be called in Footer of the main window. OR create the Secondary Window on First page as well and in it's Conditions, tick the check box where its mentioned print only after Main window printing.. hope this resolves your issue

Former Member
0 Kudos

The page layout for the first page is different than the next coming pages .

so what should be the solution for this scenario .

former_member209818
Active Contributor
0 Kudos

well... you can do one thing... create the secondary window on the First page also.. and call it conditionally. SFSY-FORMPAGES will give you number of pages Smartform is printing.. Call the secondary window on the First page only of SFSY-FORMPAGES = 1.. otherwise automatically it will be called on the next page..

former_member186055
Active Participant
0 Kudos

Smith,

Create two separate layouts for 1st and 2nd Page, In first page select NEXT PAGE is 2nd page which is created by you. Place long footer text also in main window after main records, then it'll print after end of main table records or else go to conditions tab in secondary window and select the checkbox only end of main window, but the secondary window will always be static, so it 'll always print at static position.

Regards,

SuryaPraveen.

Former Member
0 Kudos

So i think while conditionally calling on first page i need to check the number of item records as well ?

former_member209818
Active Contributor
0 Kudos

I dont think so.. But if you have a requirement of printing only two items on first page then you can add the conditon..

Answers (1)

Answers (1)

varun_vadnala3
Active Participant
0 Kudos

Hello Smith,

As said earlier,Just include the Secondary window content at the end of main window.Include the content of the secondary window inside a folder and place this folder at the end of your dynamic flowing content in the main window.

As sadi by you this should be displaye donly at the end of all the main window data.You can mark a condition in the output options where you have a check box " At the end of main window".


Incase this doest work,you can still go ahead with display the content with a custom condition where you check the total records in the line item table inside the loop in main window increment the counter.
At teh folder level of footer data,write a condition to display the details only when the line item details count and indrement count match.

In this way you can display the footer details at the end only.Even if you have different page layouts also it doest matter.

Reward if useful.

Thanks in advance,

VArun

Former Member
0 Kudos

Hi

Thanks. i had to only play with conditions and not to change the layout . but anywaz nice tips

thanks