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 -
@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.
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
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛