I create a document using the NotesDocument constructor, assign a form name (doc.Form = "FormName") and use the NotesUIWorkspace.editDocument() method to edit it. Until I save the document, the NotesItem.Type property does not return 1 (RICHTEXT) for RichText items, it returns 1280 (TEXT).
It seems that the association between the form and my new document isnt completed until I save the document. I'd expect this to be OK in the postOpen event of the form, but it isnt.
Is this an expected behaviour? If it is, I'm considering saving the document when I create it and use a custom field to know if the document is really new or not, instead of NotesDocument.IsNewNote property.
Thanks in advance,
NotesItem type before new document ... (Alan Evangelist... 27.Apr.12)
Feedback number WEBB8TRDUX created by Alan Evangelista on 04/27/2012
. . Rich text updates funny (Andre Guirard 27.Apr.12)