Logout Button

The Logout button logs the user out of the application.

To display the Logout button in your WCC application:

  1. Place the Toolbar Button component in the desired location in your application.
  2. In the Properties Editor, check the Logout Button property.
  3. In the Events Editor, subscribe to the event that you want to cause the button to be displayed (typically, Login Complete).
  4. Commit your changes.

For more information, see Toolbar Button Component.

Cleaning Up After a Logout

By default, clicking the Logout button logs the user out of the server, but it does not clean up the screen in any way. It is felt that every custom application will desired some custom logic upon a logout.

When the user clicks the Logout button, the postLogout function in the Application.js file is always called. To perform custom logic when the user logs out, add your custom code in the postLogout function.

The Application.js file is located in the following directory:

StudioHome\wcc\version\JSXAPPS\WCCProjectName\application\js

where:

  • StudioHome is the directory in which TIBCO Business Studio was installed.
  • version is the version number of Workspace that was installed with TIBCO Business Studio.
  • WCCProjectName is the name of the General Interface Builder project that contains your custom application. If you are working with the Workspace application, this is "workspace".