Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi All,
I'm trying to set in a JS service the value of an attribute with basetype PASSWORD but I can't find how to do it. Any idea ?
Thanks a lot,
Seb
To reproduce :
On a thing create an attribute 'password' with type PASSWORD
In a service add : me.password= '1234';
=> : 'Unable To Convert From java.lang.String to PASSWORD'
Solved! Go to Solution.
Try using the following
var params = {
data: undefined /* STRING */
};
// result: STRING
var result = Resources["EncryptionServices"].EncryptPropertyValue(params);
and then use the result to set the Property value.
Try using the following
var params = {
data: undefined /* STRING */
};
// result: STRING
var result = Resources["EncryptionServices"].EncryptPropertyValue(params);
and then use the result to set the Property value.
It works perfectly ! Thanks a lot.
Seb