cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with smart form main window

Former Member
0 Kudos

Hi All,

I am trying to develop one smartfrom for PO print. The structure is like below

---header

---Address details

---main window

-


table( PO Lines )

--footer window

-


totals...etc

My problem is if my PO contains 30 line items, i have to display in first page with header & main window only.....and second page should be only main window and so...on....and at the last page should be main window and footer window.

If i am fixing the main window size is fixed for page then it can go for overflow and it is showing blank in midle pages (in places of header window and footer window becoz of those should appear in first and last pages respectively) its working fine.

But its looking odd, if it is going for more than 3 pages. In center pages, top & bottom are blank and only main window is overflowing.

Is there any way to increase the size of main window for center pages not for first and last pages?

Can any one help me.

Thanks in Advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Vishnu,

You need to change the UPPER and HEIGHT values for the MAIN window on the second and subsequent pages.

Former Member
0 Kudos

Hi friend,

Its simple to achieve your logic.

Just create header and address window at first.

Then if there are multiple PO elements and it will be in an internal table.

Just create a loop for the internal table and then put the main window inside that. Then perform the loop operation.

Since main window grows dynamically according to the data it grows to next page with out considering other windows at next page we will not be getting the header of footer window at second page.

Then after the loop create a footer window. After execution of the main window the footer window will be displayed at the last.

So the flow will be like this

---header

---Address details

Loop

---main window

-


table( PO Lines )

endloop.

--footer window

-


totals

Simple change.

If your logic is like this only means then there is another one simple logic,

At the header and address window just select the option "Only on First page" at conditions tab.

At the footer window select the option "Only after end of main window".

I think this will solve your issue if no please revert back to me i will help you.

Thanks,

Sri Hari

Former Member
0 Kudos

Hi Hari,

Thanks for your reply.

But, we can not loop the window in smartfroms.

So the flow will be like this

---header

---Address details

Loop----


here we can not put loop

---main window

-


table( PO Lines )

endloop.

--footer window

-


totals

Can you give me any other...

Thanks,

Vishnu

Former Member
0 Kudos

Hi friend,

Sorry sorry friend.

Just put a loop inside the main window,

Then i think it will work,

The logic will be a loop inside the main window.

Try this and let me know if you face any issues.

Thanks,

Sri Hari

Edited by: srihari.kumar on Jan 10, 2012 6:08 PM

Former Member
0 Kudos

Hi Hari,

I have tried but no changes in the center pages.....header & footer are blank and it is not increasing the size of main window dynamically.

Is there any Alternative?

Thanks,

Sreelakshmi.B

Former Member
0 Kudos

Hi friend,

If the problem is solved please post back the solution which might help others.

<removed by moderator>

Thanks,

Sri Hari

Edited by: Thomas Zloch on Jan 11, 2012

Former Member
0 Kudos

Hi Friend,

Problem was not solved. and i have suggested another format to our people.

Thanks,

Vishnu