Mar 03, 2010, 4:34 AM
groupid in extra params??
Can anyone help shed any light on how to pass the group id in extra params of an ajaxevent?
<GroupCommand OnEvent="OpenExistRack" Failure="Ext.MessageBox.alert('Loading Rack Window Failed', 'Error during the load of the rack details window.');">
<EventMask ShowMask="true" MinDelay="500" Msg="Loading Rack Details..." />
<ExtraParams>
<ext:Parameter Name="Values" Value="Ext.encode(#{MerchRackGrid}.getRowsValues())" Mode="Raw" />
<ext:Parameter Name="SelectedRecord" Value="Ext.encode(#{MerchRackGrid}.getRowsValues())" Mode="Raw" />
<ext:Parameter Name="SelectedGroup" Value="(#{groupId})" Mode="Raw" />
</ExtraParams>
</GroupCommand>
AS per the example of the groupcommand
<Listeners>
<GroupCommand Handler="Ext.Msg.alert(command, 'Group id: '+groupId+'<br/>Count - ' + records.length);" />
</Listeners>
<GroupCommand OnEvent="OpenExistRack" Failure="Ext.MessageBox.alert('Loading Rack Window Failed', 'Error during the load of the rack details window.');">
<EventMask ShowMask="true" MinDelay="500" Msg="Loading Rack Details..." />
<ExtraParams>
<ext:Parameter Name="Values" Value="Ext.encode(#{MerchRackGrid}.getRowsValues())" Mode="Raw" />
<ext:Parameter Name="SelectedRecord" Value="Ext.encode(#{MerchRackGrid}.getRowsValues())" Mode="Raw" />
<ext:Parameter Name="SelectedGroup" Value="(#{merchgroupview}.getGroupId())" Mode="Raw" />
</ExtraParams>
</GroupCommand>
Querying the grouping view even comes back null....#{Store}.getGroupState();
#{merchgroupview}.lastGroupField;
Hope this helps.<ext:Parameter Name="SelectedGroup" Value="groupId" Mode="Raw"></ext:Parameter>