1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    1
    Vote Rating
    0
    paulreed4432 is on a distinguished road

      0  

    Default Ext.data.Store - api:grid grid

    Ext.data.Store - api:grid grid


    I have been trying to understand the url’s for example, CRUD – Create, Read, Update and Delete and why in the example (writer.js) they are attached to app.php/users/create......

    For example I am using ColdFusion 9 and have a Ext store build with Ext designer that uses a function ‘convertQueryToExtJSGrid’ that takes the data from a MySQL table and coverts it to json to display in a grid.

    I have been trying to read up on the subject although still can not fully understand how to link the CRUD operations. Do I have to create my own methods and then how do I attach then the the app.php/create?

    Does anyone know of any simple examples that will walk me through how to Cerate, Read, Update and Destroy – so that I can take the value from a ext form and add it to my grid. I have a fair understanding of Extjs 4 and limit knowledge of php, in addition, why in some examples it shows Backend.php – is this an alterative?

    Tom

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,812
    Vote Rating
    834
    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


    The writer example is a fully working CRUD example. If you look at the requests, when you delete a record, it fires a call off to the URL in the api.destroy. Same for create, update and read.
    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