cancel
Showing results for 
Search instead for 
Did you mean: 

problem of having 2 Main Windows

Former Member
0 Kudos

Hi,

I have a SF that has 2 pages, which are Content Page and Terms & Condition.

Content Page will display list of products, so it always have more than 2 pages.

And Terms & Condition Page is also more than 1 page.

In order for my Content Page to expand to second page, I set the Window -> Main Window. Inside the main window, contains of a table to display all products.

In Terms & Condition, I maintained in Standard Text, and call the 'Include Text' to display. Since it is more than 1 page, I need to set to Main Window as well, because secondary window cannot display all text, it will not bring the extra long text to 2nd page.

Problem:

if i set both +Content Page+ ~ window & +Terms and Condition+ ~ window to Main Win, Next Page is set to +'Term & Condition'+ page, it only display Content Page, no Terms & Condition page been displayed.

if I set +Content Page+ ~ window to Main Win, Next Page is set to 'Term & Condition' page, it ALSO only display Content Page, no Terms & Condition page been displayed.

if I set Terms and Condition ~ window to Main Win, Content Page only show 1 page of product, and then followed by terms & conditions for 2 pages.

Please help, how can i solve this problem? I need to display more than 1 page for Content Page & more than 1 Page of Terms & Conditions.

Kindly advise.

/ginnie

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Initially set the flag at the end of line items. Place the terms and conditions in separate text in that text under conditions use this flag as conditional element. Hope this will help you.

Regards,

Aswini.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Ginnie,

You need to set a flag in the smartform to determine when to trigger the terms and conditions page.

We had a requirement in which the contents extended to multiple pages and the terms and conditions was printed only as the last page.

For this, we had a logic to find if the details in the contents page have been completely printed.

If yes, only then the last page or the terms and conditions page was called.

This worked fine for us, sorry i do not have access to that smartform, otherwise i would have told you the exact logic, with the code.

You can give it a try, should work.

cheers,

Sushil Joshi

Former Member
0 Kudos

Hi Sushil,

How many pages of the terms & condition do you have? Is it more than 1 page as I do?

Because I just find out that SF can only have 1 Main Win. But both of my page need to print out text which is more than 1 page, and each page's layout are different.

Kindly advise. Thanks a lot!!

/ginnie

Former Member
0 Kudos

see i had a requirement where i neede to display success and error messages. I had no idea how many success or error messages will i get. Moreover, first error messages will be displayed and at the end of it success msgs were displayed from a new page...I think ur requirement is somewhat similar.

So to solve this problem i had declard evry thing inside the main window(even the headings etc..)...that is..first i displayed all the data and tables containing the success msgs ..after that i put a conditional page break and printed the success message..every thing in one MAIN window..no hassels nothing..evry thing is handled by the system...

try this..it surely works...

Former Member
0 Kudos

Hi all,

as the result, I use alternative node to determine when to display the item list and when to display the terms & conditions.

But i guess there is a limitation.

Initially, in the Item list, after displaying all the items, i have a secondary window which is place at bottom of the page for Signature purpose. This only display in the Item page. (not in terms & condition)

But since we need to use the alternative node to determine the item printing and terms & condition printing, I have to insert everything in the Main window. therefore, my Signature will need to be inserted to the Main Window, right after the Item table. In this case, it seems to be hanging.

If items is only displayed for half of the page, the Signature text is hanging at the middle of the page.

Is there any solution for this, so that Signature is always printed at the end of item page?

/ginnie