[Bug-2419] Perspective URL Params do not update page on subsequent changes

Updated our gateway to v8.1.5 the other day and since then passing parameters through a view URL seems to be broken. It was working prior to the update.

Anyone else seeing this issue?

Edit: Further testing indicates that the view loads from the URL correctly on the first load, but if the URL is changed to reflect a new param, this is not loaded.

We’re aware of this and have an internal ticket to address the issue.

Thanks, do you know which release will include a fix at this stage?

No, there is not ETA at this time.

This issue has been resolved and will be fixed in the 8.1.6 release.


I thought it was, but now we’re running 8.1.7 Nightly Build and having the same issue.

@Carl.Gould, did it reappear somewhere along the way in 8.1.7??

@Carl.Gould, @cmallonee, will this issue be looked at again when rolling 8.1.6 back?

Hmm, I don’t see any indication this actually made it into the 8.1.6 release.

Nevermind, hadn’t fetched upstream recently enough. Looks like it’s in 8.1.6 after all, and should be in some nightly release, so possibly a regression if anything.

I just performed a quick check of this behavior on the latest nightly and confirmed it is working as expected with a basic scenario.

So, is the new 8.1.7 LTS the same as the 8.1.7 Nightly Build? I see both on the download page. I’m assuming they are, and that the next nightly build will be 8.1.8…??

The “8.1.7 LTS Nightly” appears to be identical to the “8.1.7 LTS Stable” download as of this very second. Sometime today I expect we will update our internal systems to begin producing an 8.1.8 nightly.

1 Like

@cmallonee, the scenario I have is that the parameter being passed is then used in a Named Query to populate a ‘Form’. Now, since the 8.1.6 regression, the only way I can make it work is to put

	import time

before the code (not desirable). If I don’t, the resulting dataset from the named query has a getRowCount() of 0.

It seems like the view takes a moment to recognize the parameter that is passed.

Any ideas?

I guess it sort of depends on how this Named Query is being used.
This form that is being populated: is it populated via binding? Change script? Startup script?

If you’re using a binding, I would expect that binding to re-evaluate when the new value is supplied. If you’re using a change script, then this new value should also result in that code being executed again.
I could see how a startup script might not have the passed-in param because it might not have resolved yet.

1 Like

Yes, it’s a startup script.

Unfortunately I don’t think a script at that location will work for what you’re trying to do because the params may not have resolved. If you read the docstring for the PageStartup Event, concentrate on the page portion:

def onPageStartup(page):
	This event is fired when a new page is opened in a tab or window in a
	browser context.

		page: A reference to the newly created page. Note that the other page
		      props will NOT return a valid value on page startup. The props that will
		      return a valid value are: 
			pageId (str): Identifier associated with the target page
			path (str): Represents the Page URL of the page. Example: / or /myPage

Ah, ok. That sheds some light on it.

Thanks @cmallonee! I’ll look at doing it a different way then, possibly a change script.

1 Like