Attachement question

Hello all:I have a file attachement button in my form,when a user attaches any file to form then saves and closes the form and then reopens it the attachement appear at the bottom of the form I need the attachement to stay in the rich text field that I have specified

does any one have seen this befor

thanks

Dalia

Subject: Is this a web form?

I have seen some threads on this in this forum and am looking too. It has something to do with having more than one upload control and the attachments appearing in the first RT field on the form.

As an alternative, you could calculate a URL into the field it was attached to (or a text field under it) and display that and hide the attachments at the bottom.

Subject: RE: Attachement question

You have to create the attachment using the front end Notes client methods. If you use NotesRichTextItem.EmbedObject, the update to the rich text field is not reflected in the UI. When they save, the rich text is saved as it’s shown on the screen. So the attachment still exists in the document, but the little flag in the rich text that says “file such and such is attached here” doesn’t get saved.

There are some tricky ways around this, one of which involves setting the SaveOptions field to “0” and attempting to save. This has been discussed in this forum or the Notes 4/5 forum. But in this case is would be easier to just use the @Command([EditInsertFileAttachment]; …) to create your attachment in the front-end.

Subject: RE: Attachement question

I tried using @Command([EditInsertFileAttachment])

but I got the same result although I have both methods working in 2 other databases

still no attachement appear in RT field

Subject: RE: Attachement question

Do you have some LotusScript event code on your form, perhaps in the Querysave event, which is doing something with the rich text field?

Subject: RE: Attachement question

Thanks alot Andre ,you were right and it worked like a charm,thanks again you were much of a help