How can I hide attachments in notes client?

Hi,I am having a lot of problems to hide attachments in a form, in notes client 6.5.

I want to prevent them from appearing on the form (it appears a serie of icons from the attachments below a horizontal line)

when I create the RTF through lotusScript code.

Set ortitem=New NotesRichTextItem(odoc,“aRTF”)

Set oEmbedded = ortitem.EmbedObject( EMBED_ATTACHMENT,“”,filename)

does anyone Know if it’s posible?

I show the names of embedded files in a radiobutton field, and this way, users mark the name of attachment to delete it or to see it. Users don’t want to see the icons.

I have tried to create the rich text field and to hide it form notes 4.6 and later.

This way I get to hide the attachments.

But when I attach and save the document several times, without closing it, I realize that there isn’t the file itself in the RTF.

If I close and open the document again,icon appears. There is an attachment in the document that’s not linked to in a RTF.

So if I try to look for the file in the RTF to delete it:

Set ortitem = odoc.GetFirstItem( " aRTF " )

If ( ortitem.Type = RICHTEXT ) Then

Forall o In ortitem.EmbeddedObjects

If ( o.Type = EMBED_ATTACHMENT ) Then

o.Remove

End If

End Forall

End If

I get an error: type mismatch!! because attachment is in the document but not linked to in a RTF. “ortitem.EmbeddedObjects” is empty.

If I attach, save and close the document,it works fine and Attachments doesn’t appear at bottom of my form!!!

Could avoid users save the document without closing it, but???..I think it’s a poor solution…

Please, any ideas, to resolve this problem? Anyone can help me?

Thanks in advance

Subject: How can I hide attachments in notes client?

Add a hidden text field to your form titled $V2AttachmentOptions. Make it computed for display with “0” as the value.

Subject: How can I hide attachments in notes client?

Have you used the $V2AttachmentOptions field yet? If you put this field on the form and set it to “0” with the quotes around the zero, it won’t display the attachments at the bottom. If it’s set to “1” they appear. You can do a computed for display field, I’ve found that works best.

Enjoy!!

<<<>>>

Subject: RE: How can I hide attachments in notes client?

Thanks a lot, both of you, for your help, but I have a computed for display $V2AttachmentOptions field , and set it to “0”, but it doesn’t work.I have tried also, with “$vattachmentoptions”, but icons still display at the bottom of my form.

However a V2AttachmentOptions field with value “0” in a web form doesn’t display the attachments.

Does anyone knows what I’m doing bad?

Thanks.

Subject: RE: How can I hide attachments in notes client?

I played around with this a little and changed the RTF to store contents as HTML and MIME. That way the field would hide and I could still retrieve the attachment to remove it. Would this help you?

Subject: RE: How can I hide attachments in notes client?

Thanks Judy, but I have tried it and it doesn’t work. The attachments are hidden.I delete one of them, save and close the document. When I open it again the rest of attachments are there at bottom of the form.s

Anyway to set a rich text field to “Save as HTML and MIME”,don’t you lose quite a bit in the bargain?.

It isn’t the common format notes store the attachments, is it?, and the translation is not always great.

Any translation back and forth between two formats will entail loss over time, won’t it?.

Anyway, thanks a lot Judy.

Subject: can’t Notes to resolve this stuff?

Does anyone know if this problem hasn’t any solution?