Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • App Studio /
avatar image
Question by fasie · Jun 11, 2019 at 06:49 AM · jetjet apijet.js

How to use JET request in a new window?

JET.navigate() is used in order to open a new window in a separate tab when clicking a button.

After the new window opens, i want to use JET.request() in order to retrieve some data.

The problem is that somehow, the connection to JET is lost and the AppInfo data is empty and I'm not able to make the request.

There is no error in the console. I have a message saying that JET is registered, but in the new window, appInfo is empty.

Any idea?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

5 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov. · Jun 19, 2019 at 03:02 PM

Issue is resolved by adding the following parameters to JET.navigate method

JET.navigate(
      "name" : "Web Host App",
      "url" : "URL of the page you navigate to”,
      "properties" : [
        {"ELAppId" : "App ID of your App Studio app"},
        {"ELAppProductName" : "App ID of your App Studio app"},
        {"ELAppTitle" : "App name of your App Studio app"},
        {"ELAppBrowserType" : "Chromium"},
        {"ELAppBrowserAffinity" : "Yes"}
      ]
)
Comment
fasie

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Gurpreet · Jun 11, 2019 at 11:26 AM

@fasie, I assume the navigate is loading a resource in your local file system. In that case, the loaded resource has to reference and load JET scripts, before using the JET object. You can download the JET2 bundle as shown in the quick start.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Alex Putkov. · Jun 11, 2019 at 04:30 PM

@fasie
A new window that you open as a result of executing JET.navigate method is a new instance of Chromium browser. To use JET in the new instance of the browser you need to initialize JET by calling JET.init just like you initialize it the first time in your app.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
fasie · Jun 14, 2019 at 02:07 AM 0
Share

@Alex Putkov, here is how it works:

I have a MVC app. Two windows mean two views. In the first view i initialize JET, everything is ok, the AppInfo contains all the necessary info.

When I click the button which is supposed to open the new window (where JET is also being initialized), it opens the new window, in the console I receive the message "App container is registered with EikonJET", but the AppInfo data is empty.

The next step is to enter a RIC in a textbox and click a button to make the JET request. Here is where it stops working. There is no error.

EikonNow detected Eikon Desktop

App Container registered with EikonJET!

appId is null

avatar image
Answer by fasie · Jun 14, 2019 at 05:49 AM

Also, there is one thing that i noticed. If i run the app on the localhost, everything works well, I am able to make the JET request and receive data. The problem is on the published version of the application.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Alex Putkov. · Jun 14, 2019 at 05:24 PM

Is the HTML page loaded in the new window on the same domain as the main page? JET library has a concept of trust levels, which enable/disable some parts of its functionality. You have full trust when the URL is localhost. Similarly you have full trust when the domain is one of the App Studio registered URLs. But if the domain is not recognized, then AppInfo would be empty and the data requests from Eikon would be disabled.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
fasie · Jun 18, 2019 at 01:30 AM 0
Share

yes, it is the same domain.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

Not possible to change the URL of a tab anymore

JET SDK: Retrieving News

Vessel Movement History Data Mismatch

Records Missing when fetching data from JET API for vessel movement history

JET SDK open line chart

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges