Get type of field ($L.source) with JavaScript in Link file?

Hello HPSM Community,

we tried to identify $L.source fields types to fill some of them dynamically and tried following line:

typeof(system.vars.$L_source[fieldname])

for example in case of ci
typeof(system.vars.$L_source[sm.device.display.name])

we want to see if its a string, boolean, array or structure... unfortunately this line always gives back "object". Any other way/idea to get correct type?

Thx and br

Vesp

Parents Reply Children
No Data