Questions about embedded Applet view

Hi,

I use a view applet on a form which is embedded.

Q1:

If I select documents to delete and press F9, the documents are still in the database.

How can I delete selected documents without an action “delete” ?

Q2:

How can I prevent that on doubleclick on the embedded view the document opens ?

Thanks and regards,

Bernd

Subject: Questions about embedded Applet view

A1:br>]
You cannot. You will have to have something that tells Domino you want to
delete the documents. Selecting the documents & Pressing F9 will have the same
effect as if you do it in the fat client, you haven’t performed anything that
tells Domino you want them deleted (in the client, you would press the delete
key in between the two keystrokes). Hint: put the action in the view design, it
will not work from the ViewTemplate form.br>]
A2:br>]
You can capture the double-click event and prevent it from bubbling down (or
up) to the applet by placing the following javascript code in the JS header
field of your $$DefaultViewTemplate (or named template) form:br>]
window.ondblclick=“preventOpen()”;br>]
function preventOpen () {br>]
b>  ]return false;br>]
}br>]
br>]
The syntax of capturing is (I believe) browser sensitive so double check the
syntax required for FireFox, Safari, etc if you are supporting multiple
browsers (this example is MSIE compliant)