PDA

View Full Version : UUID Strategy without Model?



azche
14 Nov 2013, 8:45 PM
Is it possible to implement the UUID strategy without using a model?

My code is:


Ext.define('Myapp.store.mystore', {
extend: 'Ext.data.Store',

config: {
identifier:'uuid',
fields: [
'title',
'description'
],


proxy: {
type: 'localstorage',
id: 'my-store'
},


autoLoad: false
}
});

and Im getting the warning:

[WARN][Ext.data.Batch#runOperation] Your identifier generation strategy for the model does not ensure unique id's. Please use the UUID strategy, or implement your own identifier strategy with the flag isUnique

scottmartin
15 Nov 2013, 10:27 AM
Perhaps using the convert field to calc your *UID
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.data.Field-cfg-convert

Or at the server level?

Not sure what you are looking for ...