qListView : qListView Pages : Behavior Page : Actions

Actions
This property enables you to define additional buttons in the toolbar or context menu item in the context menu. You can program that button or context menu item to do a series of actions. The listview supports some built-in actions. However, you can write your own custom action using one of the .NET languages, compile it, and call it by the listview. See Custom Action Help to see how to write your own custom actions.
 
Here are some ways that you can use this functionality:
The Actions page contain the following elements:
 
Table 13. Actions
Custom Actions
 
The Custom Actions element contains one Toolbar element and one Context Menu element. These elements can contain one or more Action Item elements. You can associate the Action Item with one or more Action elements. The Action element define a certain operation that is carried out by the action item when it is clicked.When you add an action item, you can configure the following:
 
Table 14. Custom Actions
<CustomActions>
   <Toolbar>
      <ActionItem ID="UniqueID" Text="text" TextResourceID="textResourceID" Position="0" PromptText="promptText" PrompTextResourceID=”prompTextResourceID” ImageUrl=”URL” AccessKey=”AccessKeyCharacter”>
         <Action Type="Delete" />
         <Action Type="Move" TargetFolder="targetFolder" TargetSiteURL="targetSiteUrl" TargetListName="targetListName" />
         <Action Type="Copy" TargetFolder="targetFolder" TargetSiteURL="targetSiteUrl" TargetListName="targetListName" />
         <Action Type="GoToURL" URL="TargetURL">
            <Parameter Name="parameterName" Source="Session" SourceName="fieldName" SessionName=”sessionName” />
            <Parameter Name="parameterName" Source="RowFromAnotherWebPart" SourceName="fieldName" />
            <Parameter Name="parameterName" Source="HttpRequest" SourceName="httpParameterName" />
            <Parameter Name="parameterName" Source="ListItem" SourceName="httpParameterName" />
         </Action>
         <Action Type="GoToSource"/>
         <Action Type="Custom" Class="IUIActionImpl" />
         </ActionItem>
   </Toolbar>
   <ContextMenu>
      <ActionItem ID="UniqueID" Text="text" TextResourceID="textResourceID" Position="0" PromptText="promptText" PrompTextResourceID=”prompTextResourceID” ImageUrl=”URL” AccessKey=”AccessKeyCharacter”>
         <Action Type="Delete" />
         <Action Type="Move" TargetFolder="targetFolder" TargetSiteURL="targetSiteUrl" TargetListName="targetListName" />
         <Action Type="Copy" TargetFolder="targetFolder" TargetSiteURL="targetSiteUrl" TargetListName="targetListName" />
         <Action Type="GoToURL" URL="TargetURL">
            <Parameter Name="parameterName" Source="Session" SourceName="fieldName" SessionName=”sessionName” />
            <Parameter Name="parameterName" Source="RowFromAnotherWebPart" SourceName="fieldName" />
            <Parameter Name="parameterName" Source="HttpRequest" SourceName="httpParameterName" />
            <Parameter Name="parameterName" Source="ListItem" SourceName="httpParameterName" />
         </Action>
         <Action Type="GoToSource"/>
         <Action Type="Custom" Class="IUIActionImpl" />
      </ActionItem>
   </ContextMenu>
</CustomActions>
When you add an action, you can configure the following:
Table 15. Action