gs.getProperty equivalent for client scripts

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2016 01:11 AM
Hi, I wan't to avoid harcoding sys_id, and gs.getProperty does not work on client script.
Is there a equivalent for gs.getProperty in the client script(I am using onload client script)?
or is there any other workaround here?
Thanks,
Tadz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2016 01:15 AM
Hi Cris,
1.Create a script include.Use gs.getProperty in that script include.
2.Call the previously created script include from client script.
Thanks,
Mihir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2016 01:16 AM
Please define a script include and call it by using glideajax in client script.
Thanks and regards,
Swamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2016 01:27 AM
May be you can create a display business rule which stores the gs.getProperty in g_scratchpad variable
and you can use this variable in your client script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2019 08:04 AM
I am following Chuch's idea of using 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
Chuck Tomasi covered this in episode 5 of TechNow: TechNow Episode List