Search code examples
extjs4datastore

How would you add data to a data store from a form in EXTJS 4?


Is there a way to add data into a data store from a textfield based form?

for example:

    Name:______
    Team:______
    Number:_____
    Age:_______

when submitted injects into the data store?


Solution

  • You can use form.updateRecord() and then store.add(record).

    But what you should really do is look at the examples that ship with ExtJS. There are lots of great ideas on how to do most things you need.