gs.getProperty('glide.servlet.uri') is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 12:18 AM
Hello all
I used gs.getProperty('glide.servlet.uri') in one of my script and it's not working as expected, it's returning like:
https://<instance-name>/not_found.do?page_url=https://<instance-name>/
And we are observing this issue after upgrading to Xanadu.
also pls refer the script:
var sys_id = current.sys_id;
var url = gs.getProperty('glide.servlet.uri') + "<table-name>?sys_id="+ current.u_return_no + "&sysparm_record_target=<table-name>&sysparm_record_list=";
action.setRedirectURL(url);
action.setReturnURL(current);
//table-name - actual table name
Any assistance in resolving the issue would be greatly appreciated.
Thanks and Regards
Kartik Magadum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 06:08 AM
Hi @Kartik Magadum @Surabhi7 ,
Please try the below code and check:
var sys_id = current.sys_id;
var url = '/' + "<table-name>?sys_id="+ current.u_return_no + "&sysparm_record_target=<table-name>&sysparm_record_list=";
action.setRedirectURL(url);
action.setReturnURL(current);
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 06:16 AM
Thanks for the response. for my issue i got a response from SN support that its a platform issue from Xanadu Patch 3 and is going to be fixed in Patch 4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2024 06:21 AM
Yes, that is correct. We have also encountered the same issue and as a workaround we applied the fix as below:
var url = '/' + '<table_name>' + '.do?sys_id=-1&sysparm_query=task_number='+parent.getValue('sys_id');
gs.setRedirect(url);
Mark this as Helpful / Accept the Solution if this helps.