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:

Examples:

PROCEDURE initializeObject: 
/* Purpose: Initialize the current SmartContainer and initialize some  
   frequently used pages at the same time. */ 
  RUN SUPER.   /* Execute standard page creation first. */ 
   /* Initialize pages 2, 8, and 106 at startup. This will create the 
      pages but not view them. */ 
  RUN initPages (‘2,8,106’:U). 
END PROCEDURE. 
PROCEDURE createObjects: 
/* Purpose: Local version to add an Update link between a SmartDataObject  
   on page 0 and a SmartDataViewer on page 2; not done until page 2 is 
   created. */ 
  RUN SUPER.       /* Do the standard creation for each page first. */ 
   IF getCurrentPage() = 2 THEN 
     RUN addLink(h_Vcust, ‘Update’:U, h_Dcust). 
END PROCEDURE. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095