Results 1 to 2 of 2

Thread: Looking for a Simple example with .net WCF and EXT JS

  1. #1
    Sencha Premium Member
    Join Date
    Dec 2010
    Posts
    12
    Vote Rating
    0
      0  

    Default Unanswered: Looking for a Simple example with .net WCF and EXT JS

    Hi,

    I am looking for a a simple example that help me work with WCF, JSON, AJAX and the ext.model.data to get only the LOAD method of the data model working. Here is what I am looking for in the example:

    1) Define a simple model using ext.define that extends the ext.data.model.
    2) Proxy has to be AJAX to a WCF svc. that returns JSON.
    3) The service is a simple .NET WCF service.

    My code below always has a record that is null. I have checked everything and feel its better just to find a working example of where someone has successfully got the load method working with a .NET back end. I can then figure out whats going on. Any links or places to look?? Thanks!

    Code:
    var psUser = Ext.ModelManager.getModel('psUser');
                            psUser.load(2, {
                                params: {
                                    id: 2
                                },
                                success: function (record, operation) {
                                    var U = record.data.user_nm;
                                    Ext.Msg.alert(record);
                                },
                                failure: function (record, operation) {
                                    Ext.Msg.alert('Error', 'Failed to load model from the server.');
                                }
    
    
                            });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,318
    Answers
    3883
    Vote Rating
    1291
      0  

    Default

    I have moved to the Ext JS 4 forum.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •