Oct 09, 2012, 8:45 AM
[CLOSED] Store migration from 1.0 to 2.0
Hello,
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:
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">
<Proxy>
<ext:PageProxy />
</Proxy>
<Reader>
<ext:JsonReader>
<Fields>
<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" />
</Fields>
</ext:JsonReader>
</Reader>
<BaseParams>
<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" />
</BaseParams>
<DirectEventConfig IsUpload="true" />
</ext:Store>
The search: <ext:Button ID="ButtonSearch" runat="server" Icon="Magnifier" Text="Search">
<Listeners>
<Click Handler="#{ResultsStore}.load();" />
</Listeners>
</ext:Button>
Last edited by Daniil; Oct 09, 2012 at 11:33 AM.
Reason: [CLOSED]