Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SMARTFORMS: Protect certain area ...

Former Member
0 Likes
804

Hi,

Problem:

I want to protect a certain aerea of the form, which

includes windows, boxes etc..

It should be printed after the main-window is finished

(Property I have set and works fine).

BUT the protected area should only be printed,

if all the items will fit onto the rest of the page.

If not, a page-break should be processed.

Is there a similar command like <PROTECT: ENDPROTECT:>

in SF?

Thanks a lot for help

BR

Michael

1 ACCEPTED SOLUTION
Read only

sergey_korolev
Active Contributor
0 Likes
733

Hi Michael,

Text element or folder or table line have switch "Page protection". So, you can place all the elements you need into one folder and turn on its "Page protection" flag.

8 REPLIES 8
Read only

sergey_korolev
Active Contributor
0 Likes
734

Hi Michael,

Text element or folder or table line have switch "Page protection". So, you can place all the elements you need into one folder and turn on its "Page protection" flag.

Read only

0 Likes
733

Hi Sergei,

Thanks for your reply.

You are right, but you can set this switch only within the

MAIN-window. But I have to protect several

Windows, boxes etc. outside (after) the MAIN-Window.

BR

Michael

Read only

0 Likes
733

Yes, you can only protect elements inside main window. The reason is that the only main window can change its height and even be continued on another page. So, I would recommend to redesign your SF somehow to move protected elements to the end of the main window.

Read only

0 Likes
733

You may try to put all your secondary windows, text elements, templates ( as the case may be) in a folder and then set the page protection at folder level. Hope this helps.

Cheers!

Read only

0 Likes
733

You cannot put window into a folder

Read only

0 Likes
733

The height of Main Window is fixed on a page. However, as Sergei mentioned, Main Window contents can go over to the next page.

You may combine all your templates, text elements in a folder and set page protection at folder level.

If You have a table in your Main window, may be table footer node is the best place for this type of requirements.

Read only

Former Member
0 Likes
733

Thanks to everybody,

I have found a (brutal) work-arround.

May you are intersted in it:

1.) Count all Lines of the main window

2.) If they succeed a certain number (High of MAIN)

print an empty table for all these number of lines ++1

3.) But Print all times the main-table in the main window.

The effect is:

If the Content of the Main-Table (main window) won't fit

into the MAIN Window the empty lines are printed

on the first page and the real Data will be printed on

next page.

The reason is:

The following area ( which should be protected) is much

bigger then the Main-Window and the client won't get split the data!

BR to everybody who helped me!

I gave to everybody rewards!

Michael

Read only

0 Likes
733

I also find same problem with you, Michael, but now I found the better solution that is,

1) You should separate to several windows.

2) Lets say you just want to display 'TOTAL' at the last page after the last items in main window, you can define total at the independent window, double click this window > under 'condition" tab > you can see the box named "additional event" -> tick "only after end of main window"

3) Then now you can see those window only at the very last page after last item in main window.

p/s you can define several windows that you only want to print at the very last page (after last item in main window) using same steps above.

It works well same as commands:-

<i>If &nextpage& = 0</i> in Sapscripts

Hope it helps you although is late.