cancel
Showing results for 
Search instead for 
Did you mean: 

problem with main window in smartforms?

former_member593554
Participant
0 Kudos

hi experts,

my requirement is like this in main window if having some line items (say for example 5) more than wat we defined size it should continue with in same page how much the line items require and at the end footer is to display.

if line items may be continue next page also so the footer will display only on end of main window.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

If you want to display footer only at the end of main window, then select the condition at end of main window or put one flag in tabkle area of the from and set it

the problem here is the space for the foorter will unused and will be blank if the line items are more than one page

Regards

Shiva

Former Member
0 Kudos

Hi,

Check the output property of Footer of the table in main window. Here select the options "AT PAGE BREAK" & "AT End of Table".

Ashvender

former_member480923
Active Contributor
0 Kudos

As per my understanding, u have to print the footer at the end of main window.

1) Then do not create a Footer as part of the Main window create a Constant Window at the end of the Main window.

2) Create a Variable w_fire type C.

3) Create a Program Line and in that write w_fire = 'X'.

4) Give Condition in the Program Line as 'ONLY AFTER END OF MAIN WINDOW'.

5) Write Data in Footer only if w_fire = 'X'.

Hope That Helps

Anirban M.

Former Member
0 Kudos

Hi,

While creating the Window for the Footer, we have an option to select it to print after the MAIN window , In the Footer window Click on Condition Tab, there in the below you will find some checkboxes, there select 'Only After End of Main window'

Regards

Sudheer

Former Member
0 Kudos

Whn your last line item is reached in the main window.

Set a flag to X.

Check this flag in the conditons for footer window .

Then footer window will display only in the last page.

former_member593554
Participant
0 Kudos

sir,

ya we can do with this way but the footer window space would be blank .

so i want extend the main window to cover that space also .

so please suggest me how proceed to achive this requirement.

thanks for reply me,

reply me one more time please.

regards,

satheesh.

former_member480923
Active Contributor
0 Kudos

yes u r right this problem is going to come definitely, so there is a very silly solution that I had implemented.

Create the footer window and the Main window overlapping each other. Now u have to check how many lines of the MAIN window are coming into the footer window.

Check the flag and if the lines of the MAIN window are less than or equal to the number of lines that just fits the Main window without overlapping to the footer.

<i>Happy Debugging to find the number of lines.</i>

Hope That Helps

Anirban M.