FDC3 Intents
- This AdapTable Help Page is being actively updated
- AdapTable has just upgraded to FDC3 2.0 and we are working on updating the documentation
Summary
- AdapTable fully supports FDC3 Intents; users can:
- Raise Intents
- Listen for Intents
- Create Custom Intents
Intents are FDC3 actions that a user wants to perform or react to.
AdapTable supports Intents through the intents property in FDC3 Options.
This object is of type Fdc3IntentOptions which contains these properties:
| Property | Description |
|---|---|
| handleIntent | Handles incoming Intents (standard and custom) |
| handleIntentResolution | Handles the IntentResolution that a raised Intent might return |
| listensFor | Subscribe to given standard Intent(s) |
| raises | Raises given standard Intent(s) on various Grid Actions |
As can be seen, users are able both to Raise and Listen For FDC3 Intents.
Available Intents
The FDC3 Intents supported by AdapTable (and the Contexts they can be used in) are as follows:
| FDC3 Intent | Available Contexts |
|---|---|
| StartCall | Contact, ContactList |
| StartChat | Contact, ContactList, ChatInitSettings |
| StartEmail | |
| ViewAnalysis | Instrument, Organization, Portfolio |
| ViewChart | Chart, Instrument, Organization, Portfolio, Position |
| ViewContact | Contact |
| ViewHoldings | Instrument, InstrumentList, Organization |
| ViewInstrument | Instrument |
| ViewInteractions | Contact, InstrumentList, Organization |
| ViewNews | Country, Instrument, InstrumentList, Organization, Portfolio |
| ViewOrders | Contact, InstrumentList, Organization |
| ViewProfile | Contact, Organization |
| ViewQuote | Instrument |
| ViewResearch | Contact, InstrumentList, Organization |
Raising Intents
Intents are raised using the raises property in the intents section of FDC3 Options.
Each Intent to raise is listed by type (e.g. ViewQuote) and followed by the Intent-raising behaviour.
Caution
- Make sure all intents you raise are referenced in the
gridDataContextMappingproperty of FDC3 Options - This is a required step which AdapTable uses to map columns and fields to FDC3 objects
This behaviour can take one of 2 forms:
- a Context Menu entry
- an FDC3 Action Column (either a button or full Column definition can be provided)
Hint
It is possible to raise an Intent using both Context Menu and FDC3 Action Column
raises
Listening for Intents
Listening for Intents from external applications is done in 2 stages:
Note
Both of these steps uses a property in the intents section of FDC3 Options
- all Intents to handle are listed in the
listensForproperty - an implementation is given for the
handleIntentfunction property
listensFor
Handling Intents
Incoming FDC3 Intents is handled by the handleIntent property.
handleIntent
Promise<IntentResult> | void