Release 10.1A: OpenEdge Development:
ADM Reference

> ## notifyPage

> Procedure that invokes the specified procedure in all objects on the CurrentPage of A SmartContainer.

> Location: containr.p

> Parameters:

> `INPUT pcProc AS CHARACTER`

> The internal procedure to run.

> Notes:

> - This procedure is necessary because paging does not work well with PUBLISH/SUBSCRIBE. For example, although all objects in a Container subscribe to initialize (and so on), the paging performs the operation on subsets of those objects.

> - The notifyPage procedure uses the PageNtargets property values to run an event procedure in all the objects on the current page.

> Examples:

>     /* This code fragment from changePage causes initializeObject to be run
>        in each newly created object on a page selected for the first time.
>        NotifyPage effectively does a PUBLISH to each object on the current
>        page. */
>     {get ObjectInitialized lInitted}. /* Is the container itself initialized? */
>     IF lInitted THEN
>        RUN notifyPage In TARGET-PROCEDURE (“initializeObject”:U).

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