Button, button - Where is my button

I have a view with a button. The button is hidden if:!@IsMember(“[QA]”; @UserRoles)

I have that role checked for myself.

I see the button when I use Notes, but I don’t see the button when using Internet Explorer to display the view. What do I need to to to see the button via a browser?

Subject: Button, button - Where is my button

If the button contains ANY code that can’t be used on the web, it will not be generated – regardless of hide-whens. If you’re not able to find what’s preventing service, post your code so we can help.

Subject: RE: Button, button - Where is my button

My button is titled “Delete Selected Document” When the button is clicked, the document and all Response documents are deleted. The button has only one line of code:@PostedCommand([ToolsRunMacro]; “(DeleteSelectedDocument)”)

The agent being executed contains the following code:

Sub Initialize

Dim session As New notessession

Dim db As notesdatabase

Dim doc As notesdocument

Dim collection As notesdocumentcollection

Set db=session.currentdatabase

Set collection=db.unprocesseddocuments

Set doc=collection.getlastdocument

While Not doc Is Nothing

	Call deletedoc(doc)

	Call Collection.DeleteDocument(doc)

	Call doc.remove(True)

	Set doc=collection.getlastdocument

Wend

End Sub

Function deletedoc(doc As notesdocument)

On Error Resume Next

Dim rdoc As notesdocument

Dim rcollection As notesdocumentcollection

Set rcollection=doc.responses

Set rdoc=rcollection.getlastdocument

While Not rdoc Is Nothing

	Call deletedoc(rdoc)

	Call rCollection.DeleteDocument(rdoc)

	Call rdoc.remove(True)

	Set rdoc=rcollection.getlastdocument

Wend

End Function

Subject: RE: Button, button - Where is my button

I changed @PostedCommand([ToolsRunMacro]; “(DeleteSelectedDocument)”)

to

@Command([ToolsRunMacro]; “(DeleteSelectedDocument)”)

That worked.