Data Sharing Between Apps

Channels

Overview

The Glue42 Channels are globally accessed named contexts that allow users to dynamically group applications, instructing them to work over the same shared data object. Assign a Glue42 enabled app to a Channel through the Channel Selector of the Glue42 Window:

Selected Channel

When applications are on the same Channel, they share a context data object which they can monitor and/or update. See below how applications interact with each other using the Glue42 Channels:

Channel interactions

Channels are based on Shared Contexts. A context object may contain various types of data - ids, displayName, etc.:

{
    "contact": {
        "ids": [
        {
            "systemName": "g42sfId",
            "nativeId": "0031r00002IukOxAAJ"
        },
        {
            "systemName": "rest.id",
            "nativeId": "0e23375b-dd4f-456a-b034-98ee879f0eff"
        }
        ],
        "displayName": "Nola Rios",
        "name": {
            "lastName": "Rios",
            "firstName": "Nola",
            "otherNames": null,
            "honorific": "Ms.",
            "postNominalLetters": null
        }
    }
}

Different applications on the same Channel may use different parts of the data:

  • The "Client List" app updates the context object with data for the selected user (ids, displayName, etc.).
  • The "Portfolio" app uses the ids to load the portfolio of the client, selected in the "Client List" app by the user. It also updates the shared context object with new values when the user selects different instruments (e.g., the RIC field is updated).

Defining Channels

Define any number of Channels in Glue42 Enterprise for your applications to use - configure them in the channels.json file located in the %LocalAppData%\Tick42\GlueDesktop\config folder. Below is an example of adding a custom dark purple Channel to the already existing default list of Channels in Glue42 Enterprise:

{
    "name": "Dark Purple",
    "meta": {
        "color": "#6400b0"
    }
}

Custom Channel

See the Configuration section for more detailed info on the configuration properties.