Windows

Layouts

Overview

The Layouts feature of Glue42 Enterprise allows you to save the arrangement and context of any set of applications running in Glue42 Enterprise and later restore it. You can also choose a default global layout which Glue42 Enterprise will load upon startup.

Default Global Layout

A default global layout is an already saved arrangement of Glue42 enabled applications that is restored upon startup of Glue42 Enterprise. Often users need the same set of starting applications when fulfilling daily routines. Setting up a default global layout will save them the time and effort they usually spend in finding, starting and arranging the required applications on system start/restart.

In the example below, you can see how the user first creates and then saves and restores a layout. After that, the user sets the saved layout as the default global layout which is restored upon restart of Glue42 Enterprise:

Layouts

The Layouts library supports different types of layouts:

Layout Stores

Glue42 Enterprise can load layouts from a local store or from a remote REST service.

Local Path Layout Store

By default, the layouts are saved to and loaded from a local layouts store, located in the %LocalAppData%\Tick42\UserData\T42-DEMO\layouts folder where you can store/customize/delete your layout files locally.

REST Service Layout Store

Layout definitions can also be hosted on a server and obtained from a REST service.

For a reference implementation of a remote layout definitions store, see our Node.js REST Config Example. This basic implementation stores the user layouts in files (they have the same structure as the local layouts files) and returns the same set of data for all users (does not take the user into account). New layouts are stored in files, using the name of the layout. There is no validation whether the layouts name can be used as a file name. The remove layout operation is not implemented and just logs to the console. For instructions on running the sample server on your machine, see the README.md in the repository.

For a .NET implementation of a remote layout definitions store, see our .NET REST Config Example.

If your Glue42 Enterprise copy is not configured to load layouts from a REST service, you need to edit the system.json file located in the %LocalAppData%\Tick42\GlueDesktop\config folder.

  1. Locate the layouts top-level property:
 "layouts": {
    "store": {
        "type": "file"
    }
  }
  1. Update the layouts store to:
 "layouts": {
    "store": {
        "type": "rest",
        "restURL": "http://localhost:8004/",
        "restFetchInterval": 20
      }
  } 
  • type - can be file or rest, depending on the type of layouts store you want to setup;
  • restURL - the URL address of the layouts REST service;
  • restFetchInterval - interval (in seconds) for fetching layouts from the REST service;