Hi,
I'm creating a new node/tag in this way.
UaVariableNode node = UaVariableNode.builder(getNodeContext())
.setNodeId(m_deviceContext.nodeId(parentName + "/" + tagName))
.setBrowseName(m_deviceContext.qualifiedName(tagName))
.setDisplayName(new LocalizedText(tagName))
.setDataType(nodeType)
.setTypeDefinition(Identifiers.BaseDataVariableType)
.setAccessLevel(accessLevel)
.setUserAccessLevel(userAccessLevel)
.build();
In this node I'm trying to add a new custom property, as I can do in the designer.
Is it possibile code side?
Because I'm trying with this code
final QualifiedProperty<String> fooProperty =
new QualifiedProperty<>(
getNodeContext().getNamespaceTable().getUri(node.getNodeId().getNamespaceIndex()),
"foo",
Identifiers.String.expanded(),
ValueRanks.Scalar,
String.class
);
node.setProperty(fooProperty, "value");
but I can't see the foo custom property in the tag in designer.
Is this the correct way to do that?
How can I read the value the user fill in the new custom property...is this way is possibile.
Thanks,
Stefano