Hello,
I have a button in perspective SCADA that opens a new iterface tab. I am using system.perspective.navigate()
with the parameter newTab = True
.
My problem is that reopening it causes the proeject to have to be reloaded from scratch, so it repeats the long loading process every time. Is it possible to open a tab with url perspective that will not require reloading the whole project?
Based on the parameters passed in the url I have built the whole interface so it is not possible to use popup etc.
Does anyone have any idea?
Best regards,
Michał
I don't think so.
This strikes me as odd. You should share more, so we can help you refactor to make a popup possible.
I use in the url a lot of parameters that affect the operation of the interface as a result in the popup will fail to run the specified screen correctly. Inside this reopen interface there are components that affect the passing of parameters via url. This leaves me with no idea how this could be done using the popup. I would have to change the whole interface to one that does not pass parameters via url.
Any view that you use with a page, where URL parameters are extracted to view parameters, can also be nested (embedded) in any other view that can also supply those parameters. Or, perhaps, simply receive those parameters via other means.
The only thing that can get tricky is that view navigation doesn't update the browser's URL bar. I would solve that with my pageVarMap()
functions, fwiw. (Make all parameterized URL pages immediately populate navigation information in the pageVarMap(), then use page navigation to hop to a parameter-less page that extracts from pageVarMap() to set up an embedded view, or do immediate view navigation from that.) Perhaps I should make an example project for this.