- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2017 07:31 PM
I'm trying to get an icon list widget that exists on a user profile page to call a catalog item and pass it the user's name that is on the user profile page.
Can I use g_scratchpad? This is on Helsinki Service Portal.
...Can I use a filter?
If not, what's the best way to pass a value to a catalog item so that it autopopulates things like username, phone, etc.
or is there a no/low code way?
I was trying this:
// inside catalog item - a catalog client script onLoad that will load the u_user from the scratchpad
function onLoad() {
var user = g_scratchpad.u_user;
if (user){
//do stuff
}
}
// client script: this client script is run from the icon list widget that the user clicks on to go to the catalog item named:
g_scratchpad.u_user = data.name; //where data.name is the variable i use throughout rest of scripts for the name of the user.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2017 07:41 PM
Hi Mike,
Please note that g_scratchpatch will not work in service portal,
You will have to select data variable in your server script of service portal and then use it in your HTML code.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2017 07:41 PM
Hi Mike,
Please note that g_scratchpatch will not work in service portal,
You will have to select data variable in your server script of service portal and then use it in your HTML code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2017 10:40 PM
thank you for clarifying!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2017 10:43 PM
HI Mike,
If i have answered your question can you please mark the answer as correct so that it is removed from the unanswered queue.
Check this link to mark answers correct
How To Mark Answers Correct From Community Inbox