How to get sys_id in catalog client script

xiaix
Tera Guru

find_real_file.png

 

 

I know you can't use "current" in a client script, but is there any way to get that sys_id in the script?

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

You can try using

 

var a = g_form.getUniquevalue();

alert('Sys id is '+a);

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

View solution in original post

7 REPLIES 7

ChrisBurks
Mega Sage

Just g_form.getUniqueValue() should do it. No need to pass arguments. 

For example: 

var sysid = g_form.getUniqueValue()

Tushar Sharma2
Kilo Guru

Hi,

 

For sys_id.

 try it.

var Sysid = g_form.getUniqueValue();

Regards,

Tushar

xiaix
Tera Guru

Yep, g_form.getUniqueValue(); worked wonderfully.  Changed code to reflect.  Thanks!