Я абсолютный новичок и работаю и борюсь с ExtJS! Я должен получить список пользовательских записей и опустить их на панели Ext grid. У меня есть внешний интерфейс ExtJS и Grails (Groovy Controllers). Я говорил несколько ссылок, как:Операции ExtJS CRUD на панели Grid Panel и Grails
http://docs.sencha.com/extjs/4.0.7/#!/example/grid/row-editing.html
http://docs.sencha.com/extjs/4.0.7/#!/example/restful/restful.html
http://docs.sencha.com/extjs/4.0.7/#!/example/writer/writer.html
The api property (or) tag (or)attribute (I don't know what it is called) helps me in getting the list of JSON objects to be displayed in the Grid. Also, when I select a row and click on Delete, the request is reaching the delete action in my controller. But my problems begins here: how do I make sure that:
1) the selected row is deleted from Database? How do I pass the identifier or something to controller so that it will delete the record?
2) When I add a row, how do I pass the field values to backend Controller?
Most of the code is same as given in the restful link above. For reference, this is my Datastore:
https://docs.google.com/document/d/1gQyLCt6xWXTm-OUgYu7hku47r5WcS0my5yPBSKj2B7I/edit?usp=sharing
Спасибо, приятель ... Да, теперь вы приятель :) – rajugaadu
Но параметр или идентификатор, который он добавляет по умолчанию к URL-адресу запроса, называется вызовом _dc. Я где-то читал, что его можно переопределить, указав encode: true в DataStore. Это добавило данные формы в запрос. Какой вид мне помог. Но у меня есть еще одна проблема! REST на основе ExtJS GRID для CRUD-операций, которые мы находим на сайте sencha ... Я использовал его, и я вижу, что, когда мы нажимаем «Добавить», он отправляет два запроса. Есть идеи по этому поводу? – rajugaadu
_dc - это просто кеш-биттер, это не идентификатор. – existdissolve