Hi,
I take it you mean from a grid command???
add in the following code in the AjaxEvents for the grid in question..
<AjaxEvents>
<Command OnEvent="GridCommand">
<EventMask ShowMask="true" Target="CustomTarget" Msg="Loading Article" CustomTarget="={#{ArticlesGrid}.body}" />
<ExtraParams>
<ext:Parameter Name="Command" Value="command" Mode="Raw" />
<ext:Parameter Name="Values" Value="Ext.encode(#{Grid}.getRowsValues())" Mode="Raw" />
<ext:Parameter Name="SelectedRecord" Value="Ext.encode(#{Grid}.getRowsValues())" Mode="Raw" />
</ExtraParams>
</Command>
You'll see i've passed a "command" value which will be the command clicked and also both the values and selected record
then in your GridCommand subroutine simply do a Select Case
Select Case e.ExtraParams("Command")
Case "commandname"
Command Actions go here