Team Sharing Technical Reference
Team Sharing Event
AdapTable fires the TeamSharingEntityChanged Event whenever an Active Shared Entity is synchronised.
TeamSharingEntityChangedInfo
The TeamSharingEntityChangedInfo object provided by the event contains a single sharedEntity property:
TeamSharingEntityChangedInfo
Payload of the TeamSharingEntityChanged event.
Fires when an active shared entity has a newer revision and Team Sharing update notifications run.
Extends , so adaptableApi is included.
Custom application Context provided in AdaptableOptions.adaptableContext
It is of type sharedentity which provides very full details of what is shared and when and how it was updated:
AdaptableSharedEntity
Defines an AdaptableObject shared with Team Sharing
number
Last time when the object was changed
string
Last User who changed the object
string
Description of object being shared
Actual Adaptable Object being shared
TypeUuid[]
Ids of direct entity dependencies
'adaptableEntity'
Type of shared entity (either Adaptable specific or custom object)
Shared Layouts only: names of the objects, per Module, extended into the Layout when it was shared;
applied to the importing user's Layout Extensions so the Extended Layout arrives complete
Adaptable Module to which object belongs
number
Revision - incremental for 'Active', always 1 for 'Snapshot'
number
When the object was shared
'Snapshot' (for 1-time sharing) or 'Active' (for continuous sharing)
string
User who shared the object
boolean
Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
Type is a SharedEntityType:
| Value |
|---|
'Snapshot' |
'Active' |
Module is an AdaptableModule:
| Value |
|---|
'Alert' |
'BulkUpdate' |
'CalculatedColumn' |
'CellSummary' |
'Charting' |
'Comment' |
'CustomSort' |
'Dashboard' |
'DataChangeHistory' |
'DataSet' |
'Export' |
'Fdc3' |
'ColumnFilter' |
'FlashingCell' |
'FormatColumn' |
'FreeTextColumn' |
'GridInfo' |
'ColumnInfo' |
'IPushPull' |
'Layout' |
'OpenFin' |
'PlusMinus' |
'QuickSearch' |
'SettingsPanel' |
'Shortcut' |
'SmartEdit' |
'StyledColumn' |
'StateManagement' |
'StatusBar' |
'SystemStatus' |
'TeamSharing' |
'Theme' |
'ToolPanel' |
'Note' |
'DataImport' |
'GridFilter' |
'NamedQuery' |
'Expression' |
LayoutExtensions is a LayoutExtension without LayoutName. The properties are on the Layout technical reference.
Event Subscription
Subscribing to the Event is done the same way as with all Adaptable Events:
api.eventApi.on('TeamSharingEntityChanged', (eventInfo: TeamSharingEntityChangedInfo) => {
// do something with the info
});Team Sharing Options
TeamSharingOptions
Options for managing Team Sharing - which enables Adaptable Objects to be shared between colleagues
Whether to show update notification once per update
false
boolean
Suppress warning when an Import overrides existing Adaptable State item
false
number
Frequency (in minutes) to check if Active Shared Entities have a newer revision
0 (never)
'Alert' | 'AlertWithNotification' | 'SystemStatus'
How user is informed when Active Shared Entities have newer revisions
null (none)
applySharedEntities receives a SharedEntitiesContext:
SharedEntitiesContext
Context provided to TeamSharingOptions.loadSharedEntities() callback
Custom application Context provided in AdaptableOptions.adaptableContext
handleCustomSharedEntityImport receives a CustomSharedEntity:
CustomSharedEntity
Defines a Custom object that will be shared using Team Sharing
number
Last time when the object was changed
string
Last User who changed the object
string
Description of object being shared
Custom Object being shared
'customEntity'
Type of shared entity (either Adaptable specific or custom object)
boolean
Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
string
Name of object being shared
number
When the object was shared
string
User who shared the object
TypeUuid
Unique identifier for the Custom Shared Entity
Team Sharing State
TeamSharingState is run-time state. It is not supplied in Initial Adaptable State.
TeamSharingState
State for Team Sharing; internal so not designed to be provided as part of Initial Adaptable State
boolean
TRUE if an import is in progress, FALSE otherwise.
This is required to skip the TEAMSHARING_UPDATE_ITEM action as a result of the import
Team Sharing API
TeamSharingApi
Team Sharing: load shared objects, share an object, and import an entry someone else shared.
void
Checks if active Shared Entities have updates (higher revisions than the local counterpart objects)
boolean
Whether current user has full Team Sharing rights (for creating & updating shared items)
boolean
Whether Team Sharing is available to use
void
Opens Settings Panel with Team Sharing section selected and visible
void
Refreshes the local TeamSharing state by (re)loading the remote state.