Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Services to update the Nickname

Status
Not open for further replies.

oscript

Programmer
Mar 25, 2003
63
GB
I have a requirement in LL 9.7.1 to update the 'Nickname' at document creation time - does anyone know if this is possible using web services (pref Java but C# would be OK) and perhaps could point me in the right direction - ideally with a code example ? It may of course be that the update needs to be made to the Nickname post document add. Many thanks in advance for any ideas.
 
Pretty straight forward really. The following (java in this case but easilly adapted) function does the job:

public static void setNodeNickname(DocumentManagement dm,int nodeId, String svNickname) {
// change the nickname property of the Node
// needs to be unique of course.
Node node = dm.getNode(nodeId);
node.setNickname(svNickname);
dm.updateNode(node);
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top