The Zurich release has arrived! Interested in new features and functionalities? Click here for more

g_navigation.openPopup not working on Service Portal

tateroth
Giga Contributor

I am trying to combine over 200 seperate software catalog items into one master form.   The support team uses KACE (so no easy automation) and the software is classified as either Self Installable or not depending on the script they created.  

I created the following Catalog Client Script for the Catalog Item and it works just as expected while in the application.   Once the user selects a software that is u_self_installl (I know, I was having a bad day with the 3 l's) = true they get the alert message and when they click OK they get a popup window to the self installer.   on the Service Portal they still get the alert, but the navigation doesn't happen.   Is there another way to create the popup from the script that would work on the portal?

find_real_file.png

1 ACCEPTED SOLUTION

tateroth
Giga Contributor

Just an update in case anyone else ever needs this information.   I opened a HI ticket and while it's not officially supported,



location.href="url";



works in this situation.   I've tested it and can verify it works in Jakarta's Service Portal.   Thanks everyone for the help!


View solution in original post

13 REPLIES 13

Use window.location to make it work in SP.



AngularJS



Regards,


Sachin


I just tried window.location and it didn't work, the same as window.open.


tateroth
Giga Contributor

Just an update in case anyone else ever needs this information.   I opened a HI ticket and while it's not officially supported,



location.href="url";



works in this situation.   I've tested it and can verify it works in Jakarta's Service Portal.   Thanks everyone for the help!


M_ Elliott Holc
Giga Contributor

Greetings,

 

It seems that using location.href="url"; opens the URL in the same window.

 

Is there a way to make this open a new tab/window?

 

Thanks,

Elliott