cnsSetUserData
Stores user data in a node.
Synopsis
bool cnsSetUserData(string cnsPath, blob userData)
Parameters
Parameter | Description |
---|---|
cnsPath | ID path of the node |
userData | User data which shall be stored in the node. The blob is truncated to 255 bytes if it is too long. |
Return value
TRUE or FALSE indicating success or failure of the operation.
Errors
Possible errors:
-
Wrong ID path
Description
This function stores user data in the given node.
main()
{
blob userData;
userData = "4d7944617461";
cnsSetUserData("System1.View3:Node1", userData);
}
Availability
UI, CTRL