Support Article

OpenURLInWindow not working in grid with urlencryption='true'



When URL encryption is enabled, OpenURLInWindow is not working when configured as a grid event.

An error is seen: 'NullPointerException in SafeURL.put(key,value) {UserIdentifier}, {null}'
and the new window is coming up as 'No stream to display'.

Error Messages

NullPointerException in SafeURL.put(key,value)

Steps to Reproduce

Setup a grid with an event/action of OpenURLInWindow

Root Cause

When openUrlInWindowis configured at a grid level, the property reference generated in metadata for the openUrlInWindow action has a relative path like ".pyUserIdentifier". The code in cannot resolve this due to lack of context information when URL encryption is turned on


Perform the following local-change:

OpenUrlInWindow will not work with urlencryption='true' at the grid level (i.e., user clicks on a row). It will work if the click event is configured on a specific cell (column). Move the openUrlInWindow event action to a specific cell (like a link) within the grid, instead of configuring as a grid level event.

Published May 17, 2017 - Updated June 20, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.