[CLOSED] [1.0] Passing ExtraParams on Store OnRefreshData

  1. #1

    [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:


    <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?
  2. #2

    [CLOSED] RE: [1.0] Passing ExtraParams on Store OnRefreshData

    Hi,

    Please use BaseParams collection of the Store

Similar Threads

  1. [CLOSED] Setting Store OnRefreshData in code behind
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Dec 02, 2010, 3:30 PM
  2. Replies: 3
    Last Post: Jun 29, 2010, 7:31 PM
  3. Store.OnRefreshData and SortInfo
    By Awrong in forum 1.x Help
    Replies: 1
    Last Post: Dec 30, 2009, 6:04 AM
  4. [CLOSED] Store OnRefreshData callback exectuted twice
    By jeremyl in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 09, 2009, 7:02 AM
  5. Passing parameters with HttpProxy / Store
    By Washburn in forum 1.x Help
    Replies: 1
    Last Post: Jan 12, 2009, 6:18 AM

Posting Permissions