Need help upgrading from 1.x to 2.x

  1. #1

    Need help upgrading from 1.x to 2.x

    Hi there,

    I'm in the process of upgrading from Ext.Net 1.x to 2.x and need a little help regarding referencing Ext.Net controls in Javascript code. I want to pass the value of some entry fields as parameters to an Ajax Proxy. I used to do the following (dfVon and dfBis are the IDs of two DateFields):

    <ext:AjaxProxy Json="true" Url="http://Someserver/SomeService.svc/SomeFunction">
        <ActionMethods Read="GET" />
        <Reader>
            <ext:JsonReader />
        </Reader>
        <ExtraParams>
            <ext:Parameter Name="machine" Value="PM1" Mode="Value" />
            <ext:Parameter Name="startDate" Value="#{dfVon}.getValue()" Mode="Raw" />
            <ext:Parameter Name="endDate" Value="#{dfBis}.getValue()" Mode="Raw" />
        </ExtraParams>
    </ext:AjaxProxy>
    But using Ext.Net 2.x, this results in the following error:
    Uncaught TypeError: Cannot call method 'getValue' of undefined
    What is now the correct way to do this in 2.x?

    Thanks in advance!
  2. #2
    Follow up: I've just noticed that the placeholders, #{dfVon} for example, are now replaced with App.dfVon in the code sent to the browser. What's that App thing?

Similar Threads

  1. [OPEN] [#60] Upgrading from v1.0 to v2.0
    By jchau in forum 2.x Legacy Premium Help
    Replies: 28
    Last Post: Feb 17, 2014, 11:29 AM
  2. Errors upgrading from Ext.Net 1.0 to 2.0
    By yash.kapoor in forum 2.x Help
    Replies: 2
    Last Post: Nov 08, 2012, 3:10 AM
  3. Upgrading from V1.3 to V2.0
    By Birgit in forum 2.x Help
    Replies: 1
    Last Post: Mar 29, 2012, 4:47 PM
  4. Upgrading RC1 to RC2
    By santosbj in forum 1.x Help
    Replies: 8
    Last Post: Jun 14, 2011, 7:06 AM
  5. upgrading from 0.8.1 to 0.8.2
    By Kamal in forum 1.x Help
    Replies: 4
    Last Post: Apr 08, 2010, 5:52 PM

Posting Permissions