question

Upvotes
Accepted
1 0 0 1

Not possible to change the URL of a tab anymore

I have the following case: I have a main page which triggers an opening of a new tab containing a loading indicator. Then when the main page receives a response, it is expected that the tab is updated with a new content.

Is it possible to achieve this?

This used to be possible when using:

JET.navigate({
    name: "APP ID",
    title: "Simple title",
    url: "..",
    target: "tab"
})

Executing the snippet two times with different urls used to modify the initially opened tab. Right now it seems like it opens two tabs. This behavior was first noticed at the beginning of 2020.

eikoneikon-app-studiojet
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
39.2k 75 11 27

The expected behavior of JET.navigate with "target": "tab" is that it opens a new tab every time the method is executed. Personally I do not recall having seen it behaving any different. But if it ever behaved like you describe (changing the URL in a previously opened tab), that would have been a bug, which must have been later fixed then.
JET does not provide a method to change URL in a tab previously opened using JET.navigate. App Studio partners are advised that App Studio apps should follow single page app design pattern. If the app is available in Eikon Web, you also need to ensure the app can function in an iFrame.

icon clock
10 |1500

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

Click below to post an Idea Post Idea