- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2017 07:38 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2017 07:52 AM
I prefer to use a Display Business Rule and put the property in to a g_scratchpad variable. You can then use it in an onLoad script.
BR:
g_scratchpad.my_property = gs.getProperty('my.property');
CS:
var myProperty = g_scratchpad.my_property
I believe we covered this in episode 5 of TechNow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2018 12:50 AM
Hi Chuck,
We have got a similar requirement to retrieve a sys_property is UI page client script but the asynchronous GlideAjax returns the value after the page is being rendered which is not expected.Tried calling g_scratchpad but haven't had any luck though.
Any suggestions are truly appreciated.
Regards,
Zabeeulla.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2018 06:35 PM
For standard form behaviors, this, or setting a session variable is how I'd normally accomplish it. However, if I want to use this behavior in the catalog for a specific catalog item, how would I do this?
Thanks,
-Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2020 06:51 AM
Thanks Chuck, I was in need of creating a system property to be available client side and this solution worked perfectly!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2020 06:10 AM
Happy to help. Good to know my old posts are still working. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2021 10:42 AM
What if my clint script isa Catalog Client Script? I think I can not use Business rules for that.
P.D. I'm a big fan of your work and the best practices that you show us