onLinked/onUnlinked events not triggering

Hi,
I'm having issues with the onLinked/onUnlinked events triggering. I have developed my app to listen for the events and it works fine in the development environment using localhost, however as soon as I run in production, those events no longer trigger.
For testing I just deploy the same code as development with no modifications just that its now hosted on a proper domain (same as the domain registered in appStudio) rather than localhost.
example code that I'm using to debug this:
JET.onLoad(function() {
JET.onLinked(function () { console.log('linked') })
JET.onUnlinked(function () { console.log('unlinked') })
})
Best Answer
-
@nick.beckenham this event is not triggered in the App Studio container and is primarily used for internal purposes. You only need to monitor OnContextChange() event.
0
Answers
-
@Zhenya Kovalyov that is unfortunate as we have 2 windows open, 1 with a custom form and the other with a table, where we want to be able to notify the custom form to update based on the selected item in the table only if the windows are linked.
0 -
@nick.beckenham
I'm not sure I understand you. Even if you could use onLinked/OnUnlinked events, I don't see how they would help your use case. These events are raised when the user links/unlinks the app. Your use case is facilitated by the context sharing. When the user clicks on an item in the table you should call contextChange method. This will trigger onContextChange event in the app with the form, but only if the two apps are linked. Isn't this what you're looking for?0 -
@Alex Putkov.1
Doesn't contextChange/onContextChange only give you the RIC and other Instrument specific data? How can I include custom data?
Furthermore if there were 3 of our App's windows linked together we wouldn't want both of the other 2 windows to show the same page. Rather if we knew they were linked we could setup a message channel and communicate further details to work with multiple windows.
I realise I can do a message channel without linking, however then it would be confusing for the user if the windows behaved linked/unlinked regardless of the visible window linking.0 -
contextChange/onContextChange is designed to share very specific and rigidly structured content. You could add other data to the context you share, but most Eikon apps can only receive RIC as context. Using context sharing you may be able to share additional content between instances of your app, but this needs careful consideration. It sounds like you're interested in implementing fairly complex user workflow in your app, and I cannot say I fully understand it. I advise you to discuss your user workflow requirements with the technical consultant assigned to your project from Refinitiv side.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛