Progress
ADM 2 Reference
initPages (containr.p)
Initializes one or more pages, which are not yet being viewed, in order to establish links or to prepare for the pages being viewed.
Parameters:INPUT pcPageList AS CHARACTER
A comma-separated list of page numbers.
Returns: Nothing (procedure)Notes:
- The initPages procedure can be run by application code to initialize more pages than those that are initially viewed, either in order to reduce the startup time for pages later on, or to communicate with objects on pages not yet selected.
- If a SmartObject on one page in a SmartContainer is a link target of a SmartObject on another page other than page 0, the AppBuilder will detect this during the design process and will automatically generate an appropriate call to initPages as part of adm–create–objects, to assure that when the dependent page is initialized, the pages it depends on will be initialized as well.
- Ordinarily only objects on page 0 and on the StartPage (if any) are created when the SmartContainer is created. Objects on other pages are created when the page they are on is first selected.
- In some cases a SmartDataObject can be an Update Target for a SmartDataViewer or Browser, which can be on a later page in the Container. This might cause more pages to be created at startup than is desired. If this is the case, the design time Update link can be removed, and created instead by application code in a local createObjects, as in the second example below.
Examples:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |