gs.info() does not work.

Liuduan
Kilo Expert

          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();

------------------------------------------------------------------

find_real_file.png

----------------------------------------------------------------------------------------------

        The whole script is working fine, but the gs.info() is not working.

-----------------------------------------------------------------------------------------------

find_real_file.png

 ------------------------------------------------------------

          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

1 ACCEPTED SOLUTION

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();

 

View solution in original post

11 REPLIES 11

Elijah Aromola
Mega Sage

Are you sure it's not in the log? Can you try the following script and check for that source in the logs?

gs.info("test", "testsource")

I am very sure that it does not work.

In previous version, I used gs.log(), and it worked well.

I added the lines below:

-----------------------------------------------------------------------

find_real_file.png

------------------------------------------------------------

Here is the log. If I search start with "t", I found many logs:

------------------------------------------------------------------

find_real_file.png

-----------------------------------------------------------

If I search starting with "test-1", none is found.

------------------------------------------------------------

find_real_file.png

 

Actually, your way did work. I tried about 20 times, and it worked 5 times.

Do you have any insight?

Harsh Vardhan
Giga Patron

use gs.log()

 

also in advance reference qualifier it should be like

 

javascript:getMyDepartmentEmployees();