Support Article
Unable to open the URL the first time
SA-79097
Summary
At runtime, on clicking the menu item the first time, the URL does not open. The URL opens in a new window on clicking the menu item the second time.
Error Messages
Not Applicable
Steps to Reproduce
- Create a menu to open a URL in a new window.
- Configure the below actions for the menu item:
a. Run the DataTransform that calls an activity which sets the pyURL property
b. Open URL in Window where the Domain URL points to the pyURLproperty
Root Cause
An issue in the custom application code or rules.
All the actions are loaded on the client. When the 'Open URL in Window' is launched, the value is not present on the client. Hence, the 'Open URL in Window' does not have any URL to launch. The value which is set in the last interaction is used in the next interaction. Therefore, the URL opens on clicking the link the second time.
On the first click:

On the second click:

Resolution
Perform the following local-change:
Configure the value such that it is already available on the client when the menu is loaded. For this, call the data transform before launching the menu.
Published August 19, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.