# HG changeset patch # User Torsten Irländer # Date 1372174157 -7200 # Node ID 747d488b92034eaebfad723bef4d3896fb4e0623 # Parent 33aed7dde69f9e6144e07e5ee38e5d7bea9e2fdd Added function getEidi which returns the part of the id of an item which needs to be appended to the store base URL for PUT and DELETE and GET Requests. This function is used to build a custom id. On default it returns the value of getId. diff -r 33aed7dde69f -r 747d488b9203 app.js --- a/app.js Tue Jun 25 14:21:40 2013 +0200 +++ b/app.js Tue Jun 25 17:29:17 2013 +0200 @@ -53,5 +53,8 @@ var data2 = this.getAssociatedData( ); var dataMerged = Ext.Object.merge(data1, data2); return dataMerged; + }, + getEidi: function() { + return "/" + this.getId(); } });