Dears,
I am currently using the b2019021902 build.
I would like to have some tips on how doing a swap between projects, using a “Menu Tree” component.
I know that the “target” property of the tree can be set, for example, equal to “/myPageUrl/:paramX”, that points to a specific view inside the current project.
How can I do if I want to use the “target” property to redirect to another project (on the same gateway instance)? Is it feasible?
Hi Joe,
thanks for your reply.
I am working on a very similar approach: I am able to change the url path, but the resources of the target project are not loaded in a consistent way.
I am curious to know from IA developers which the best way to proceed.
Thank you again for your kind answer.
I moved from the project called “wTechno” to another one called “wContainer”: the new url is correct, but, as you can see from the tab title, the resources are still the “wTechno” ones.
As far as I know you can’t switch to a different project by specifying the project and its resources as a target, whether you’re using the Menu Tree, Link, or even a perspective.navigate() script because your current project has no concept of other projects ortheir resources, and all “referencing” is done with the expectation that the source of any paths is your current project’s name.
From one of my projects “Base” I tried to supply a resource path of “/…/Reference”, where “Reference” is the name of another project on my Gateway. While this DID resolve correctly in the url bar, it did not load the content from the Reference project, and this could entirely be by design; suppose I had authenticated for the Base project, but then triggered a navigation to a project for which I have not authenticated…
You ARE able to supply the full URL of the project you want to open (“http://<gateway_ip>:<gateway_port>/data/perspective/client/<project_name>”) as a target and this will open the secondary project in a new browser tab.
For future design purposes though, if content is related between two projects, it should either really only be one project, or the shared content should be in your “parent” project - that is, the project from which the two projects which share content inherit from.