System.perspective.navigate passing params in new tab

The requirement is to navigate to a new tab, passing view params. I can pass params fine using the view parameter, but newTab param isn’t compatible. The newTab param works for the page param, but I’m not able to successfully pass the view params using this method. The script action creates the new tab and generates the correct page, but the passed parameter isn’t reflected. If this can be done via the popup action, as opposed to the script option, I’m open to that, but passing the parameters also seemed to no work when places after ? at end of URL.

Script as follows:

system.perspective.navigate(
page = "/Generator",
params = {"AssetCode": "#LPI"},
newTab=True)

Page navigation expects parameters to be embedded in the URL (corresponding to the colon-delimited elements in the page config). Those are the only fragments that will be passed on to the page's view's parameters. A view can also separately reference the URL query params in {page.props.urlParams}.

You cannot open a new tab and pass parameters directly to the view as you are attempting.

Note here that the params argument to system.perspective.navigate is documented to only apply to view navigation:

1 Like

Please see Wiki - how to post code on this forum.

1 Like