General information
Category:
Coding, syntax & commands
Title:
Pageframe with dynamic pages
I have a form that needs pageframe with dynamic number of pages. The number of pages changes according to the number of detail records in the one to many form. I use a view to hold the few detail records. The number of pages range from 1 to 11. The average number of pages for each master record is about 2. There are altogether 5 different type of pages. The first four types can have only 1 page each. In other words, page1 is type1, page2 is type2, page3 is type3, page4 is type4 and the rest are type5. Each is made up of slightly different data. It can have any combination.
Has anyone done such thing before?
My question is: Which is a better or faster implementation of this dynamic pageframe? I can think of two ways. One way is to put the 11 pages and hide the pages that are not required. The other way is to add pages according to the data enquired. In the first way, I just load all the pages and change the pagecount and pageorder. In the second way, I need to addobject (pages) according to the data. In other words, for each query, I need to add and remove pages.
It sounds like the first way is better. Isn't it? Any opinion?
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only