dojo.data.api.Identity.getIdentity
dojo.require("dojo.data.api.Identity");
defined in dojo/data/api/Identity.js
Returns a unique identifier for an item. The return value will be either a string or something that has a toString() method (such as, for example, a dojox.uuid.Uuid object).
Usage
function (item) (view source)
parameter | type | description |
---|---|---|
item | is not an item. |
Examples
Example 1
var itemId = store.getIdentity(kermit);
assert(kermit === store.findByIdentity(store.getIdentity(kermit)));