- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2015 12:20 AM
Hi All,
Please help me out !!
In an "UI page",I have a button. Onclick/onsubmit of that ui page I need to map to another "UI page".
I tried using anchor tag but it is not working.
<a href="ui_page.do?name=render_chart"><button>Run</button></a>
Tried client script also but not getting how can I write the functionality to map to another UI page.
Thanks in advance.
Jenny.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2015 04:24 AM
Hi Jenny,
Do this:
In first UI Page, write this:
<g:ui_form>
<p>Click OK to run the processing script.</p>
<g:dialog_buttons_ok_cancel ok="return true" />
</g:ui_form>
In Processing Script of first UI Page, write this:
response.sendRedirect("ui_page.do?sys_id=<sys_id_of_second_ui_page>");
Copy sys_id of second UI Page and put it in <sys_id_of_second_ui_page>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2015 02:12 AM
Hi Jennifer,
Have you tried using gs.setRedirectURL(newpage URL) in the processing part of first UI page?
Thanks,
Mandar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2015 03:03 AM
Hi Mandar,
I tried using gs.setRedirectURL(newpage URL), but it didn't work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2015 03:06 AM
Hi Jennifer,
Try this and let me know the outcome.
response.sendRedirect("test.do"); //Replace test with the UI page name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2015 03:19 AM
Hi Pradeep,
In UI page response.sendRedirect is not working. Can you provide a snippet of the code where you tried?
Thanks,
Jenny.