1. #1
    Sencha Premium Member
    Join Date
    Dec 2010
    Posts
    12
    Vote Rating
    0
    sinclas is on a distinguished road

      0  

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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Answers
    3461
    Vote Rating
    827
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I have moved to the Ext JS 4 forum.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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.

Thread Participants: 1

Tags for this Thread