- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 05:49 AM
Hi all,
I have the following scenario:
From a call I want to create a new request and pass the call reference number. When the call is updated and saved, the user is redirected the the catalogues page (not catalogue items) to select a catalogue. At this point I am passing the call sys_id as a parameter in the URL and that is fine.
However, when I select a catalogue and the relative catalogue items are displayed, the call sys_id is lost because the catalogues themselves have their own URL. To solve this I used the document.referrer which still stores the call sys_id. And this works fine in Chrome, Firefox, and I believe in Opera as well. The issue is IE. In IE, specifically if it is a secure page (https), document.referrer is blank. Also, the use of the referrer is more of a hack.
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2016 04:36 AM
Ok, problem solved. When coming from a call, the link used was 'catalog_home.do?sysparm_view=catalogs_default&sysparm_callsysid=' + current.sys_id. I changed that to:
'catalogs_home.do?sysparm_view=catalogs_default&sysparm_callsysid=' + current.sys_id (note catalogs not catalog)
Then I shifted the customised logic I wanted from the ui page 'catalog_home' to 'catalogs_home'. In so doing I still have the call sysid to do my processing logic. When I select a catalogue and are navigated away to the catalogue item selection, at that point the call sysid is lost but at that point I have my processing done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2016 04:36 AM
Ok, problem solved. When coming from a call, the link used was 'catalog_home.do?sysparm_view=catalogs_default&sysparm_callsysid=' + current.sys_id. I changed that to:
'catalogs_home.do?sysparm_view=catalogs_default&sysparm_callsysid=' + current.sys_id (note catalogs not catalog)
Then I shifted the customised logic I wanted from the ui page 'catalog_home' to 'catalogs_home'. In so doing I still have the call sysid to do my processing logic. When I select a catalogue and are navigated away to the catalogue item selection, at that point the call sysid is lost but at that point I have my processing done.