Can't get a Workspace UI Action in New Application and Now Experience looking at Existing Application to work.

bradwestvig
Giga Guru

find_real_file.png

Using AES I created a NEW workspace experience on an OLD Application in our system.  I'm leveraging the UI lists to display the requests from the OLD app and adding a UI Action to open the Service Portal for the existing application. 

Referencing Ashley's blog, I decided to try a simple UI Action of opening google.com

https://www.ashleysn.com/post/workspace-ui-actions

function onClick(g_form) {
g_modal.showFrame({
url: 'https://www.google.com',
title: 'Google',
size: 'lg',
height: 500
});
}

I'm able to get the UI Action to show up on the request record.  When I click on the button it doesn't do anything that I can see. 

Any thoughts on why the UI Action doesn't fire?  Or how I can validate?

 

1 ACCEPTED SOLUTION

mak1A4
Tera Guru

As already posted on this Question you have to set the client flag on the UI Action to true in order to get it working. Not as obvious as it may sound ^^

@bradwestvig thanks for the mention, appreciate it very much : )

View solution in original post

3 REPLIES 3

bradwestvig
Giga Guru

@Ashley Snyder  Do you have any thoughts on what I could do debug the issue?  UX Action is showing up, but nothing happens when I click on it.  

bradwestvig
Giga Guru

This to Martin in the thread https://community.servicenow.com/community?id=community_question&sys_id=3bf4ccbfdb5e1010fb115583ca961903&view_source=searchResult. His comment there helped resolve me issue. 

"So for anyone who has the issue that g_modal doesn't open, you have to set the client flag to true on the ui action for it to work. That took me a while to figure that out ^^"

mak1A4
Tera Guru

As already posted on this Question you have to set the client flag on the UI Action to true in order to get it working. Not as obvious as it may sound ^^

@bradwestvig thanks for the mention, appreciate it very much : )