groupid in extra params??

  1. #1

    groupid in extra params??

    Can anyone help shed any light on how to pass the group id in extra params of an ajaxevent?
  2. #2

    RE: groupid in extra params??

    Can anyone help???

    i've tried the following
    
    <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>
  3. #3

    RE: groupid in extra params??

    Can anyone help, I'm really stuck here.. I've even tried querying the groupingview

    <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....

    I'm really stuck here so if anyone can shed any light or offer a pointer then i would appreciate it!!

  4. #4

    RE: groupid in extra params??

    Hey, either of these what you are looking for?

    #{Store}.getGroupState();
    
    #{merchgroupview}.lastGroupField;
    Hope this helps.

  5. #5

    RE: groupid in extra params??

    Thanks for getting back to me,

    I've tried what you suggested but both return the field name "merch_rack_no" but not the value i.e. 500

    Anyone else have any ideas?
  6. #6

    RE: groupid in extra params??

    Sorry, I misunderstood what you wanted. How about this:

    <ext:Parameter Name="SelectedGroup" Value="groupId" Mode="Raw"></ext:Parameter>
  7. #7

    RE: groupid in extra params??

    Thanks Mate,

    Solved the problem, simply too... cant believe i never tried that!!!

    Had to split the string on ("-") to return the field to an array with [fieldname] (0) and [fieldvalue](1)

    But otherwise solved.

    Thanks for your help!

Similar Threads

  1. [CLOSED] Store SubmitData Extra Params not working
    By alexkay in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 12, 2010, 7:21 PM
  2. Get GroupID from GridCommand
    By Cr@iG in forum 1.x Help
    Replies: 0
    Last Post: Mar 02, 2010, 12:05 PM
  3. Autoload.Params bug
    By Kaido in forum 1.x Help
    Replies: 1
    Last Post: Jun 16, 2009, 4:57 PM
  4. [CLOSED] How To: Proxy Extra Params
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 19, 2009, 6:46 AM
  5. Autoload params ???
    By heysol in forum 1.x Help
    Replies: 2
    Last Post: Apr 02, 2009, 1:24 PM

Posting Permissions