- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019 12:44 PM
gs.info() does not work.
The gs.info() function is not working. I cannot get log, and log is essential for any programming. Actually, I am not sure whether the glideSystem is working.
I used it in a server-side script. I am making a Catalog Item, and one of the variables is a Reference type, so the data will be obtained from a MySQL table. Under Type Specifications, Use reference qualifier: Advanced.
Reference qual: sys_id=javascript:getMyDepartmentEmployees();
------------------------------------------------------------------
----------------------------------------------------------------------------------------------
The whole script is working fine, but the gs.info() is not working.
-----------------------------------------------------------------------------------------------
------------------------------------------------------------
The script was made in Madrid version, and the system is upgraded to New York. The log is not working. I used to use gs.log(), and it was working. Now gs.log() is not in New York, and I used gs.info(), but it does not work.
Did anyone have similar problem?
Thank you.
Duan Liu
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019 10:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019 01:41 PM
I tried your way just a few minutes ago, but it did not work. Do you have any insight?
The script is returning a list of sys_ids.
------------------------------------------------
It works like this:
sys_id=javascript:getMyDepartmentEmployees();
it does not work like this:
javascript:getMyDepartmentEmployees();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019 01:53 PM
This way does not work neither:
javascript:"sys_id=" + getMyDepartmentEmployees();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2019 10:25 PM
First try with below line
javascript:"sys_idIN"+getMyDepartmentEmployees();
if still it's not working return in your script include like below
eg: return 'sys_idIN'+userList
javascript:getMyDepartmentEmployees();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2019 08:47 AM
It works in this two ways:
sys_id=javascript:getMyDepartmentEmployees();
javascript:"sys_idIN"+getMyDepartmentEmployees();
In addition, if you use javascript:"sys_idIN"+getMyDepartmentEmployees();
the following all work:
gs.info('test, 2');
gs.error("test");
gs.warn("test");
ps. gs.log() is no longer in New York version.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2019 08:58 AM
I can use gs.log() in my newyork dev instance.
javascript:"sys_idIN"+getMyDepartmentEmployees();
if still it's not working return in your script include like below
eg: return 'sys_idIN'+userList
javascript:getMyDepartmentEmployees();