cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with sfsy-formapges in smartforms

Former Member
0 Kudos

Hello smartform experts,

I am developing quite a complicated smartform right now.

The design of the page looks like this.

Page 1.

Loop at header table.

display delivery order and sales order.

Loop at materials where delivery_order=header_delivery_order and sales_order = header-sales order.

Display materials.

Endloop.

if sales order changes, go to new page.

if delivery order changes, start new page 1.

endloop.

what i did was i created on page 1, I had the mode = 'initialize counter',

and i copied page 1 and created a page 2, and had the mode = 'increase counter'.

so when the sales order changes, i created a command to go to page 2, and when the delivery order changes, i created a command to go to page1. and it does work...

the problem i now have is, for example, i have 3 diff sales order for the same delivery order, the page numbering is '1 of 1', '2 of 1' and '3 of 1'. It means that my sfsy-formpages is always 1.

Can anyone please explain how this is happening? is there a way to work around this?

Rewards points is always available. thanks a lot!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Instead of using the system field, you can store the value in your local variable..and get it displayed it will solve your problem

Answers (0)