Mar 31, 2010, 6:57 PM
[CLOSED] [1.0] Passing ExtraParams on Store OnRefreshData
Hey, guys.
I'm trying to pass some ExtraParams on a Store OnRefreshData, but I keep getting an JS error. Here is what I'm trying to do:
All strResults_RefreshData is bind the Store based on data that is set into the controls. However, I'm trying to pull some "search criteria" data from a GridPanel that they can add/remove rows from. However, when I try to pass the getRowsValues to the RefreshData as an extra Param, it keeps throwing a JS error of:
"'gpTypes' is undefined."
Any help?
I'm trying to pass some ExtraParams on a Store OnRefreshData, but I keep getting an JS error. Here is what I'm trying to do:
<ext:Store ID="strResults" runat="server" OnRefreshData="strResults_RefreshData">
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="Name" />
</Fields>
</ext:JsonReader>
</Reader>
<DirectEventConfig Timeout="120000">
<ExtraParams>
<ext:Parameter Name="Types" Value="Ext.encode(#{gpTypes}.getRowsValues())" Mode="Raw" />
</ExtraParams>
</DirectEventConfig>
<Listeners>
<LoadException Handler="Dialog.error('Search Error', 'Your search timed out. Please refine your search and try again.');" />
</Listeners>
</ext:Store>
All strResults_RefreshData is bind the Store based on data that is set into the controls. However, I'm trying to pull some "search criteria" data from a GridPanel that they can add/remove rows from. However, when I try to pass the getRowsValues to the RefreshData as an extra Param, it keeps throwing a JS error of:
"'gpTypes' is undefined."
Any help?