Are there any CWS C# code examples that can be used to rename an object in CS16? In other words change the display name of an existing LL object.
You'd first want to GetNode(long NodeID), then in the resulting object's Node.Name, set it to something else.
If you need to change the description, it would be in the Node.Comment.
Then, pass an UpdateNode(Node yourupdatedNode), to change those attributes on the server.
In C#, the rename would be something simple, like this:
cwsServiceName.Node yourUpdatedNode = docCli.GetNode(ref auth, 12345);
yourUpdatedNode.Name = "My New Name";
docCli.UpdateNode(ref auth, yourUpdatedNode);
How do you rename an existing container (Project, folder) in CS16 CWS? Posted byloren.e.pettijohn.civ@mail.mil (Pettijohn, Loren)On 12/12/2018 11:18 AM Are there any CWS C# code examples that can be used to rename an object in CS16? In other words change the display name of an existing LL object.[To post a comment, use the normal reply function]Forum:Content Web Services ForumContent Server:My Support