.currentPageStackDepth()

Previous Next

Returns the page stack depth. This is the number of pages in the page stack currently being browsed.

If the page stack depth is higher than 1, this usually indicates that a Related Page or a Lookup Page is being browsed.

Use this function, for example, for controls or behavior that are specific to pages that are not the first page in the stack. If the page stack depth is higher than 1, you may have good reason for displaying a 'Back' button, but on page with a page stack equals 1, such a button is not appropriate.

Syntax

.currentPageStackDepth( context 

The optional context indicates the frame context for which the function is called. If you are displaying pages in a FrameControl that has an id value of "ApplicationFrame", then the context for those pages is "ApplicationFrame".

 

See Also

.mainPageName()

.currentPageName()

.currentPageNavigationSource()