UI Action to Open UI Page in New Window not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 01:12 PM
Hello!
I have a UI Page called u_print_move_list which I can hit preview on and works great.
When I create a UI Action on a table to open up the UI Page nothing happens. I can see nothing different about this UI action from others that are working fine. Any ideas?
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 09:53 PM
You can use below code in UI action to open UI page.
e.g . I have a ui page named testdriftinformation
here is the code below to get the ui action to load that page in the main window.
sendToNorChange();
function sendToNorChange()
{
//make the url to a new normal change
var url = 'testdriftinformation.do';
//Redirecting the user to the new url
action.setRedirectURL(url);
}
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2020 05:20 AM
Since the other reply didn't answer the question:
Instead of `window.open` you need to remember you are in an iframe and you should use:
`top.window.open`
`top` gives you a reference to the parent frame which has all the global JS Objects.