[CLOSED] Store migration from 1.0 to 2.0

  1. #1

    [CLOSED] Store migration from 1.0 to 2.0


    I have tried to migrate a store from 1.0 to 2.0. I am not sure about the Parameters, there is no more <BaseParams> in 2.0. I have tried a few things but the parameters wont be passed, only params that are passed are the paging params.

    This is my old 1.0 code:

        <ext:Store ID="ResultsStore" runat="server" AutoLoad="false">
                <ext:PageProxy />
                        <ext:RecordField Name="Id" Type="Int" />
                        <ext:RecordField Name="SortDate" Type="Date" />
                        <ext:RecordField Name="CustomerTourNumber" Type="String" />
                        <ext:RecordField Name="VehicleName" Type="String" />
                        <ext:RecordField Name="Tourtype" Type="String" />
                        <ext:RecordField Name="Extension" Type="String" />
                        <ext:RecordField Name="ReportName" Type="String" />
                <ext:Parameter Name="ReportName" Value="#{ReportName}.getValue()" Mode="Raw" />
                <ext:Parameter Name="ReportExtension" Value="#{ReportExtensions}.getValue()" Mode="Raw" />
                <ext:Parameter Name="FromDate" Value="#{DateFieldFrom}.getValue()" Mode="Raw" />
                <ext:Parameter Name="ToDate" Value="#{DateFieldTo}.getValue()" Mode="Raw" />
           <DirectEventConfig IsUpload="true" />
    The search:

                        <ext:Button ID="ButtonSearch" runat="server" Icon="Magnifier" Text="Search">
                                <Click Handler="#{ResultsStore}.load();" />
    Last edited by Daniil; Oct 09, 2012 at 11:33 AM. Reason: [CLOSED]
  2. #2
    Hi @blueworld,

    Please use the Parameters collection instead of BaseParams, and use StoreParameter instead of Parameter.
  3. #3
    Hi Daniil,

    thank you. Now I have found it in the docs as well, I did not find it before because there is a typo:

    31. Store .BasePrams has been renamed to .Parameters
    Parameter has been renamed to StoreParameter
    Its BasePrams instead of BaseParams.

    Nevertheless, I am still struggling with another 1.0 store implementation, its a combox:

        <ext:Store ID="ReportNameStore" runat="server" AutoLoad="true">
                <ext:PageProxy />
                    <ext:Model runat="server">
                        <ext:ModelField Name="Name" />

                        <ext:ComboBox ID="ReportName" runat="server" Editable="true" TypeAhead="true" QueryMode="Local"
                            StoreID="ReportNameStore" TriggerAction="All" SelectOnFocus="true" DisplayField="Name"
                            AllowBlank="true" ValueField="Name" EmptyText="Bericht" AnchorHorizontal="100%"
                                <ext:FieldTrigger Icon="Clear" HideTrigger="true" />
                                <Select Handler="this.getTrigger[0].show();" />
                                <BeforeQuery Handler="this.getTrigger[0][ this.getRawValue().toString().length == 0 ? 'hide' : 'show']();" />
                                <TriggerClick Handler="if (index == 0) { this.clearValue(); this.getTrigger[0].hide(); }" />
    Serverside signature:

    Protected Sub ReportNameStore_RefreshData(ByVal sender As Object, ByVal e As Ext.Net.StoreReadDataEventArgs) Handles ReportNameStore.ReadData
            * Query * ....
            Dim store As Store = sender
            store.DataSource = queryResult
        End Sub

    Well, this combobox does not get filled, and if I try to open the combobox the browser debugger tells me
    Uncaught TypeError: Cannot call method 'hide' of undefined
  4. #4
    Quote Originally Posted by blueworld View Post
    thank you. Now I have found it in the docs as well, I did not find it before because there is a typo:

    Its BasePrams instead of BaseParams.
    Oh, I was unable to find because of this reason as well:) But I believed it should be there. Thank you for pointing it out!

    Please start a new forum thread for another issue.
  5. #5
    Ok thank you, then close this thread please.

Similar Threads

  1. [CLOSED] Migration from 1.5 to 2
    By IanPearce in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 29, 2012, 12:40 PM
  2. [CLOSED] Razor view migration
    By gets_gui in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 24, 2012, 1:48 PM
  3. [1.0] Any thoughts on migration to asp.net 4.0?
    By michaeld in forum 1.x Help
    Replies: 1
    Last Post: Aug 19, 2010, 1:49 AM
  4. Migration guidelines
    By drgw74 in forum Open Discussions
    Replies: 1
    Last Post: Jul 13, 2010, 4:35 PM
  5. Forum Migration
    By r_honey in forum Open Discussions
    Replies: 4
    Last Post: Jul 07, 2010, 8:00 AM

Posting Permissions