groupid in extra params??
New Community Forums available at http://forums.ext.net
 

Coolite Forums

Welcome Guest ( Login | Register )
 
groupid in extra params??
Subscribe
Last Login: 4/26/2010 7:00:20 AM
Posts: 25,
Posted 3/3/2010 12:34:48 AM

Group: Coolite Early Adopter
 Can anyone help shed any light on how to pass the group id  in extra params of an ajaxevent?
Last Login: 4/26/2010 7:00:20 AM
Posts: 25,
Posted 3/3/2010 3:05:48 AM

Group: Coolite Early Adopter
 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>




Last Login: 4/26/2010 7:00:20 AM
Posts: 25,
Posted 3/3/2010 5:57:46 AM

Group: Coolite Early Adopter
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!!

Last Login: 3/10/2010 6:36:28 AM
Posts: 6,
Posted 3/4/2010 11:45:17 AM

Group: Coolite Early Adopter
Hey, either of these what you are looking for?

#{Store}.getGroupState();

#{merchgroupview}.lastGroupField;


Hope this helps.

Last Login: 4/26/2010 7:00:20 AM
Posts: 25,
Posted 3/5/2010 1:05:09 AM

Group: Coolite Early Adopter
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?
Last Login: 3/10/2010 6:36:28 AM
Posts: 6,
Posted 3/5/2010 5:31:21 AM

Group: Coolite Early Adopter
 Sorry, I misunderstood what you wanted. How about this:


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

Last Login: 4/26/2010 7:00:20 AM
Posts: 25,
Posted 3/8/2010 1:28:50 AM

Group: Coolite Early Adopter
 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!
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -5:00, Time now is 8:42pm