Create new UI action button In dev insatnce.

vinod6
Tera Contributor

I have created a UI action button named 'TO' in the development instance. When the UI action is clicked, it redirects to create a new 'TO' process. When we move this to the production or UAT instance, it should automatically adjust based on the environment (Prod or UAT). Please correct the following script."

Now, feel free to share the script that you want corrected!

 

var baseUrl = gs.getProperty("glide.servlet.url");  // Base URL for the instance
var path = "/alm_transfer_order.do?sys_id=-1&sysparm_stack=alm_transfer_order_list.do";  // Relative path
var url = baseUrl + path;  // Combine the base URL with the relative path
action.setRedirect(url);  // Set the redirect URL

please correct the script. Thanks for Your support

 

 

1 REPLY 1

Mark Manders
Mega Patron

Where is the issue? What URL are you redirected to, using this script? Or aren't you redirected at all? What URL is the button trying to point to? Did you use logging to check where in your script the issue is? Does it get the baseURL part correctly? Is the issue in the calling of the new form?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark