Redirect form to list view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 09:54 PM
Hi,
I want to redirect the form to list view when state is active. For that i wrote onLoad client script.
Script:
if(g_form.getValue('state') == '2'){
var URL = 'u_master_file_list.do'
top.window.location = URL
}
top.widow.location opening list view but it doesn't showing navigation panel. So is it possible to redirect the existing form page to list view with left navigation panel.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 09:56 PM
You could use window.location = url;
eg, don’t use “top” because that targets the parent frame.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 10:03 PM
Hi Murali,
You can use below syntax, redirect to list view.
action.setRedirectURL('u_master_file_list.do');
Kindly mark as Answered or Helpful, if applicable.
Regards,
Ashish P.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 10:38 PM
Hi
I would be asking why your customer wants this behaviour? Sounds like it would be confusing to the user - to try to get into a form only to be redirected to a list. What is the value statement, and maybe that will reveal another solution to achieve the end result?
Regards
Bonnie

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 10:57 PM
Maybe try 'nav_to.do?uri=u_master_file_list.do'.