qSIChartView : qSIChartView Pages : Behavior Page : Actions

Actions
The list form has some pre-defined actions, such as Save, Delete, Copy or Move. You can also write your own custom action and hook it up with the list form.
The Actions page contain the following elements:
 
Table 11. Actions
Custom 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 List Form 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 List Form. See Custom Action Help to see how to write your own custom actions.
Here are some ways that you can use this functionality:
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 12. 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: