Hello all,
a Notes document contains a Rich Text field. By code an attachment is made to the field:
set rtitem = doc.GetFirstItem( fldName$ )
If( rtitem Is Nothing) Then
Set rtitem = New NotesRichTextItem( doc, fldName$ )
End If
If ( rtitem.Type = RICHTEXT ) Then
Call rtitem.EmbedObject( EMBED_ATTACHMENT, "", fileName$)
Else
msg$ = "The field <" & fldName$ & "> must be of type RichText."
Goto ...errorhandler...
End If
set rtitem = Nothing
Everything works fine. When the document is shown in its form on the screen the attachment is visible at the bottom of the form under a thin graphic line. This happens independently whether the field is placed anywhere on the form or not.
I would like that the document has the rich text item stored in the database, but not be visible to the user.
Why does this happen? How can the visibility of the rich text contents be supressed? Must there been set any flags?
Thanks in advance
Joe
Subject: Showing contents of Notes Richt Text field
Is it possible that your rich text field is not defined in the design of your form ? If so, the attachment appears on your form the way you describe.
If your rich text field is on your forms design, you can use the “hide paragraph” settings of your field to hide it from your users
Subject: Never use “hide paragraph” settings on a rich text field.
See technote in my other response in this thread.
Subject: RE: Never use “hide paragraph” settings on a rich text field.
That’s probably a bit strong, but I understand your sentiment. If you do need to use hide-when settings on a rich text field, you need to understand the implications. See Hiding a rich text field for more thoughts on this. (Not you so much, Andre, as I know you have had plenty of thoughts on this matter, but for other readers)
Subject: RE: Showing contents of Notes Richt Text field
Use a section to hide the rich text field, as described here: http://www-1.ibm.com/support/docview.wss?rs=0&uid=swg21099682
Subject: Showing contents of Notes Richt Text field
Hello folks,
thanks a lot for your answers.
I know all that of hiding paragraphs and section settings. The hint of jan de hertogh gave me the “flash”. I was not aware of the fact that when the field is not placed on the form the contents is shown under the graphic line. Ok - I will place it on the form and hide.
Tanks again!
Joe