- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 02:49 AM
I have system property defined as TimeZone. I want to access it my in UI page client script. How do I do it?
Thanks in advance,
G Balaji
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2018 10:03 AM
If you want to access a sys property for example on your UI Page HTML, you can use this syntax:
<p>${gs.getMessage(gs.getProperty('property.name.here'))}</p>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 02:53 AM
You have to create a client callable script include and call the same using glideAjax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 05:25 AM
Thanks for the response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 02:59 AM
HI Balaji,
You need create client script linke this
var ga = new GlideAjax('HelloWorld');
ga.addParam('sysparm_name', 'helloWorld');
ga.getXML(HelloWorldParse);
function HelloWorldParse(response) {
var answer = response.responseXML.documentElement.getAttribute("answer");
alert(answer); }
Script include
var HelloWorld = Class.create();HelloWorld.prototype = Object.extendsObject(AbstractAjaxProcessor, { helloWorld:function() { var property = gs.getProperty(“PropertyName”)return property; } , } });
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 05:25 AM
Hi Chandu,
Thanks for the response. May I reuse one of the Script Include that already exist in my instance. If I can use, I believe I should create another function in that Script Include. Am I right?
Thanks