Following documentation in the form SDK I try to get the uuid of an entity.
camForm.on('form-loaded', function() {
...
varManager.fetchVariable(objVar);
...
})
camForm.on('variables-fetched', function() {
...
console.log(idObj, varManager.variableValue(objVar))
...
})
The output is the serialized form of the object (the object in this case is an UUID Object). How to deserialize and use toString() to obtain the real uuid in string format? I read any kind of example related to this situation, without any clue on what I’m doing wrong. Have I to convert it into a String before passing to form?