I have a name field which stores the persons name. On my xpage I am displaying that name, however I can get @Name to work so that it displays with CN. In my xpage field I have the code below but its not returning anything. I would appreciate any advice on getting this to work right.
@Name(“[CN]”,document.Person);
Subject: try session.createName
var myName:NotesName = session.createName(document.Person)
return myName.getCommon();
Subject: Solved
Thanks for all the help below is the line of code that ended up working
@Name(“[CN]”,document.getItemValueString(“Person”));
Subject: @Name
I think the problem is with how you are specifying the value. If document is the datasource object in the Xpage try using document.getItem(“Person”) and setting that to a var for example.