Delete Selected Documents (Simple actions)

Deletes documents selected in a view.

Defined in

Simple actions

Type

Document (Server)

Syntax

Note: This is the XSP source code. The UI presents the simple action as a dialog with a box for each argument.
deleteSelectedDocuments view="string" "message=string"
Arguments Description UI presentation
view Name of a view. A list of views on the page plus the diamond icon. You can select from the list or click the diamond to dynamically compute the value.
message Prompts the user with a confirmation message. The user responds with OK to continue or Cancel to exit. A text field plus the diamond icon. You can type a message in the field or click the diamond to dynamically compute the value.

Examples

Note: These examples present XSP source code which can be inserted under the Source tab taking care to keep the XML well formed. To use the UI, select or enter the arguments in the simple action dialog.
This button prompts with the text "Delete selected documents?" and OK and Cancel buttons. If the user clicks OK, the selected documents in the viewPanel1 view are deleted.
<xp:button value="Delete Selected Documents" id="button3" 	style="width:183.0px">
<xp:eventHandler event="onclick" submit="true" refreshMode="complete">
<xp:this.action>
	<xp:deleteSelectedDocuments view="viewPanel1"	message="Delete selected documents?">
	</xp:deleteSelectedDocuments>
</xp:this.action></xp:eventHandler></xp:button>