How to redirect on Module Script from Arguments?

calamity
Giga Contributor

Hey,

So I created a module and set the link type to "Script (from Arguments:)" When I click the module, it does what it's suppose to and then directs to the background script page. Is there a way for me to redirect it to another page, like the homepage or a table page? Thank you in advance.

1 ACCEPTED SOLUTION

Have you thought about using a UI page? It would be pretty simple to embed your server code in a <g:evaluate></g:evaluate> and then redirect from there. Your module would use Arguments (from URL) to call the UI page.



my_ui_page.do



I've done this before to create records and then take them to the parent record that has just been created.


View solution in original post

14 REPLIES 14

Chuck Tomasi
Tera Patron

Hi Kenny,



I'm sure there is. Can you share your current script?


autoassigntask.png


So, I'm trying to redirect to another page when the script finishes and I'm just testing it with Google for the time being.


Redirect isn't going to work because it sends it to Scripts - Background (basically running async). There's no browser session attached to it so redirection isn't going to happen.


I see. So, is there no way to get it to redirect to another page?