Hi,
yes, you need to access IWorkpageContainer:
Code:
getOwningDispatcher().getWorkpageContainer().getAllWorkpages()
This will return the number of workpages in the current "main" workpage container. In case you split up the workpage containers (e.g. by drag drop of workpages) you need to call:
Code:
getOwningDispatcher().getWorkpageContainer().getAllWorkpagesIncludingSubWorkpageContainers()
Kind regards, Björn