‎2007 Jun 12 4:38 PM
Hi experts ,
I have a requirement where i have to print 5 static pages with constant number of rows say 15 rows in each page. How do i navigate from page 1 to page 2 then to page 3....so on ?
I have tried giving the second page in the general attributes of the first page.But it does not go to second page.Only the first page is displayed.
Kindly provide me a solution for this.
Thanks in advance,
regards,
Ashwin
‎2007 Jun 12 5:07 PM
Hi,
Define a command element under the main window on each page . In the command element select the "Go to new page" option and privide the Next Page name.
Thanks,
Kalyan
‎2007 Jun 12 5:02 PM
Hello,
In main window, you can make a LOOP ( with a dummy table with 5 rows )
next a TABLE or TEMPLATE ( with your data table filled with 15 rows )
next a COMMAND ( with go to next page ).
like this :
MAIN
LOOP * 5
TABLE * 15
COMMANDE
I hope its help you.
‎2007 Jun 12 5:06 PM
Thanks for the immd reply,
Your logic would be very helpful,but i just want to know how do we normally navigate between multiple pages in smartform. As i have already designed 3 pages a solution to this would be very helpful.
regards,
Ashwin
‎2007 Jun 12 5:07 PM
Hi,
Define a command element under the main window on each page . In the command element select the "Go to new page" option and privide the Next Page name.
Thanks,
Kalyan
‎2007 Jun 12 5:12 PM
Thanks for the reply,
This is what i tried .But the problem was, if i defined a command element with go to new page as 'SECOND' in the first page's main window,and when change it to 'THIRD' in the second page,it gets changed in the first page also. Since any
change we make in a main window reflects across all pages.
Kindly explain how to go about this .
regards,
Ashwin.
‎2007 Jun 12 5:21 PM
Hi Ashwin,
Probably you created the pages by copying from FIRST to SECOND.
You can define separate windows of type MAIN on the different pages. you can name them MAIN1 on the first page, MAIN2 on the second page and so on..
That way the contents of the windows will be independant from each other.
And you will be able to move from one page to anoter using the COMMAND as I mentioned in my previous post.
Thanks,
Kalyan
‎2007 Jun 12 5:27 PM
Thanks for replying Kalyan,
I tried that too.I created different main windows in each page with names main1 main2 main3 ..so on but it throws an error saying two main windows not allowed.
Kindly help,
regards,
Ashwin
‎2007 Jun 12 5:29 PM
Hi Ashwin,
Two main windows are not allowed on the same page but you can delete the one that you created before and create a new main window in each page with different names. That should solve your problem..
Thanks,
Kalyan
‎2007 Jun 12 5:30 PM
You can only have one main window.
In your Main window have a Table node. In the Data tab you can specify to loop from Lines 1 to 15.
Now create a Command Node to goto page 2.
Have another Table node to print Lines 16 to 30.
Create another Command Node to goto page 3.
Etc.
The Main window does not start over after the Command Node. I think this may be where you are getting confused.
‎2007 Jun 12 5:32 PM
Usually, we make two pages in a formular : a first and a next.
It's used for initialize and increase the counter of page.
First : initialize
Next : Increase
If all of our pages are the same, you must develope only on
the first page. After you must delete ( if exist ) the next page,
and recreate it by copy of the first.
define the propriety of the page:
FIRST : Initialize counter and next page = 'NEXT'
NEXT : Increase counter and next page = 'NEXT'
If you don't need counter you can have only one page :
FIRST : ??? counter and next page = 'FIRST'