$V2AttachmentOptions?

OK, I know this is an old chestnut and has been covered many times in this forum. I have read every word that has been written on the subject and I still can’t get this feature to work.

I have a rich text field containing an attachment. When I view the document on the web it shows that incredibly ugly table containing the hideous attachment icon and the awful description. Being a man of good taste, I naturally want to hide this eyesore.

I have been told that all it requires is for me to add a Computed-For-Display field called $V2AttachmentOptions and set the value to “0”

I have tried this, with every possible combination of field and form settings and the attachment table still shows. I’ve even tried turning things off and on again (including dying and being reincarnated) and praying to the great Notes God, but even that doesn’t work.

I’m beginning to think that the $V2AttachmentOptions thing is a joke that is being played on me, and other consultants are secretly sniggering when they see me walking down the road.

Has anyone got any ideas before I pull my remaining hair out ? Thanks in advance.

p.s. I’m sure I will be awfully embaressed when someone points out the simple answer !

Subject: $V2AttachmentOptions ???

Have you tried this?

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/930c5f6a1673eb2585256e98003061c4?OpenDocument

Subject: RE: $V2AttachmentOptions ???

Thanks Stan, but I’ve tried spelling it in lowercase as $v2attachmentoptions and it doesn’t work.

Subject: RE: $V2AttachmentOptions ???

If nothing else works and you don’t mind an unterminated element in your HTML, you can always add in passthru HTML at the very bottom of your form. The attachment stuff will still be served, but most of your users will never see it.

Subject: RE: $V2AttachmentOptions ???

Sorry Stan, that didn’t work either. I’ve also checked to see if I’m doing something very silly - like modifying the wrong form - but I’m not. Domino is determined to display this awful table.

BTW, I’m using 6.5.1IF1 (Win32)- I wonder if it’s a bug. Perhaps I should upgrade.

Subject: RE: $V2AttachmentOptions ???

Let me clarify what $V2AttachmentOptions does.

You have 2 forms in a Domino database. One form is named “Article” and is only available to Lotus Notes clients. Another form is named “wArticle | Article” and is only available to web clients.

Both forms have a Title field.

The “Article” form has a rich text field named Body. The web-only form “wArticle | Article” does not have a “Body” field.

Create some new documents in Lotus Notes, and add attachments to the Body field.

Now view those documents with a web browser. The documents will be displayed with the “wArticle | Article” form. Why? Because it has the alias “Article”, and the other form is hidden from the web.

The “Body” field is not on the web-only form. The file attachments will appear as V3-style icons at the very bottom of the web page. The file attachments are inside the Body field, but the web server doesn’t have anywhere to put them, and so they go to the bottom of the page.

To prevent these rogue attachments from appearing on your web page, you can create a hidden “text” field named “$V2AttachmentOptions”, computed for display, with a formula of “0”.

Note: This isn’t real security. The web user could still download the file attachments if they knew the filenames.

Subject: RE: $V2AttachmentOptions ???

Many Thanks to you Doug. This explains the problem and puts me out of my misery !

Subject: $V2AttachmentOptions ???

Exactly which attachment table are you talking about here?There is one with a series of icons and links below a horizontal line. There is another where there is a two cell table for each attachment with an icon and a link in the left cell and attriblutes like “name” and “type” in the right cell.

The latter results from mime attachments in the document and I don’t think it is affected by the $v2attachmentoptions field.

I guess if there were a class or id attribute on the table you could turn it off with a style sheet, but unfortunately there isn’t

Subject: RE: $V2AttachmentOptions ???

Thanks Mark, it is indeed the latter version i.e. a 2 cell table with the name and type. Do you know how can I get the first version to appear - the one that will be affected by $V2AttachmentOptions ?

Subject: RE: $V2AttachmentOptions ???

The rendering you are seeing is used when the item is MIME and there are attachments in the mime stream.

The other rendering is used when there are objects in $FILE that are not otherwise referenced in the rich text.

If you could transform the note to get rid of the references to the attachments it might work, but it might also have other undesirable side effects: like not being able to delete the attachments, or not having the attachments copied when the note is copied, or regenerating the mime references if the note is edited from the web. So I really couldn’t recommend that approach.

Subject: SOLUTION: $V2AttachmentOptions ???

Hi Tom,

It is annoying, isn’t it? And yes I agree the table is ugly!

It is a bug with RT field on the web ONLY if “Display using Java applet” is selected.

Here is a solution

http://www-10.lotus.com/ldd/nd6forum.nsf/ShowMyTopicsAllFlatweb/51f0a0a4706d602985256e44006055eb?OpenDocument

M.

Subject: RE: SOLUTION: $V2AttachmentOptions ???

Many Thanks for your response, but I’m not displaying with the Java applet.