[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Check when last workpage is closed  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

Hi,

is there a possibility to check the count of opened workpages in the workplace? I want to react when the user closes the last workpage?

regards
Markus
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

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

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

perfect, thx
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team