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

Page protection Smartforms

Former Member
0 Likes
1,860

Hi,

I need to set a page protection for the delivery adress.

The adress text node is inside the main window and inside a table. How can I now activate the page protection?

The checkbox for page protection on the top of the text node is disabled, so I can´t check it.

Any ideas?

Thank you!

Hi,

I need to set a page protection for the delivery adress.

The adress text node is inside the main window and inside a table. How can I now activate the page protection?

The checkbox for page protection on the top of the text node is disabled, so I can´t check it.

Any ideas?

Thank you!

14 REPLIES 14
Read only

Former Member
0 Likes
1,608

1. a paragraph

2. a text node

3. all output within a folder, for example, several

text nodes combined in this folder.

4. a line type (table node)

But in SF Page protection is happening in case of 1,2 and 3 but not in case of 4

Read only

Former Member
0 Likes
1,608

hi,

create a folder in main window->table and set the page protection option enabled.(check box - X) and move that text item to Folder...

Regards

Ashok P

Message was edited by: Ashok Parupalli

Read only

Former Member
0 Likes
1,608

Hi Arne,

Create a folder and put the address node in that folder.

check the page protection in the folder attributes.

Regards,

Vidya

Read only

0 Likes
1,608

Hi,

if I have the folder in a table node, it is not possible to set the page protection option. The checkbox is disabled.

Read only

Former Member
0 Likes
1,608

Hi Arne,

Sorry forgot that the address node is inside the table. do one thing , in the smartstyles(that you gave in the output options of the address node) create a paragraph format and check the page protection checkbox there. use this paragraph format in the address text node.

Hope this helps,

Vidya

Read only

0 Likes
1,608

Hey Vidya,

thank You for Your help. I have now checked the checkbox for the paragraph I´m using in my adressnode. But I have also one textnode before to describe the adress.

It´s like:

textnode: "Delivery Adress"

adressnode: "my Adress...."

I need these two together on one page...

Read only

Former Member
0 Likes
1,608

Hi Arne,

In the main area of the table we will have row under which we have a cell where we create the text node (as well as the address window ).. in the CELL output options(as well as in the ROW output options) use the paragraph format that you previously used only for the address node.

Hope this helps..

Regards,

Vidya.

Read only

0 Likes
1,608

Thank You, it seems to work...

But now, I have another problem. For one position of the delivery order, I have three lines in my main table.

How can I set these three lines page protected?

Cheers

Read only

Former Member
0 Likes
1,608

Hi Arne,

One blunt approach might be this way...

As the size of the main window is fixed we will know the number of lines (records) getting printed per page.

If the page protection is for a specific order then create a command tab before the row and in the conditions tab give the order no for which you want the protection.. say 20 records get printed in the table ..take it into a variable(v_count) (after the loop starts increment a variable in Program lines) check in the command tab for that order number and the v_count > 18 check the go to new page option.

Regards,

Vidya

Read only

0 Likes
1,608

Hi,

I have now counted the lines for every position and check, how many has to be printed for the next position.

But then, when I have reached the page size, I wanted to "fire" a command node for jumping to the next page.

If I do that, I´m getting the error, that it isn´t allowed to change the page within a table!

But nearly the whole form is build in one table. So is it possible to go to next page in a different way?

Thank You!

Cheers Arne

Read only

0 Likes
1,608

No ideas? I mean, it can´t be a specific problem...

Read only

0 Likes
1,608

I'm not sure I competely understand your form, but if you have page protection set AND you are trying to force a new page, this could cause a problem.

Read only

Former Member
0 Likes
1,608

Hi Arne,

We can trigger a new page inside a table.

I could do that...

ok let me help you step by step.

In global definitions.. create a variable say count (type I)

and create PROGRAM LINES under the cell where you want to trigger a new page.

In the Input and Output parameters give the v_count.

Inside the program lines increment the v_count.

You had already created the COMMAND node above the ROW right?

In the command node in the general attributes just click on the Go to next page attribute, need not mention to which page with the drop down. in the conditions just give v_count = 30 (wherever you want)...

Now this will trigger the new page.

Regards,

Vidya.

Read only

0 Likes
1,608

Hey Vidya, I understood completely what You have ment, but the problem is... it´s not working!

I have tried to force the next page command, but when I´m testing the form, I´m getting the error message, that Page protection is not allowed inside a table!

So I´m sure there must be a difference between older and newer smartforms versions....

But now, I have translated the whole table to paragraph tabulators. It´s now working with page protection. I can set it in the folders etc.

But now I need my previous header lines of the table on each page on the top.

I tried to do it with a variable, which has as content the old page number. If the page is changing, it´s going to print the line.

But the page break is often during the lines of one position, so I get the header lines after the next position line on the next page....

For example, the system detects, that the next position is not fitting on the current page. Then it´s forcing a page break. But the next position lines are printed before my header lines on the next page...

How can I get the header lines on the top of every page during the loop about the content of a table?

An I also need a footer line on every page to show the sum of the amount of one field for all positions shown on the current page.

I hope You understand my problem!

Thank You very much for Your help!

Arne