Here is the Problem:
import lotus.domino.Document;
import lotus.domino.Name;
import lotus.domino.NotesException;
import lotus.domino.Session;
import de.bcode.utils.Utils;
public class Example {
int x;
Name n = (Name)x.toString(); // i want to do this.
}
I am trying to convert above and i also did it by "typecasting" and it has been failing.
Thank you for reading all the question :-)
The API documentation of IBM Notes explains that a Name object can only be obtained from the Session. "To create a new Name object, use createName in Session. " see this page
Session s = NotesFactory.createSession();
Name n = s.getUserNameObject();