PDA

View Full Version : Where is "action" in CRUD request?



Ex_Soft
24 Jan 2012, 3:44 AM
There is no "action" in CRUD request in Ext 4. How can I distinguish between e.g. create and update if I use one handler for all CRUD operations.


proxy: {
type: "ajax",
api: {
create: "SmthHandler.aspx?action=create",
read: "SmthHandler.aspx?action=read",
update: "SmthHandler.aspx?action=update",
destroy: "SmthHandler.aspx?action=destroy"
},

?
Does better way exist?

jay@moduscreate.com
24 Jan 2012, 9:36 AM
I would suggest using a REST API instead of a single handler.