Dec 18, 2014, 3:32 PM
[CLOSED] [#615] When use X.StoreForModel() a few times, then an error occurs
Hi, ext.net team.
I have upgread ext.net 2.5 to ext.net 3.0. But now , when i use X.StoreForModel() in the view 2 or more times, there an error:
[E] Ext.data.schema.Schema.addEntity(): Duplicate entity name "PrivateMessage": PrivateMessage and PrivateMessage
And if there is a window which have a grid, grid set store to StoreForModel, when you open the window first time, it's ok. But if you close the window and open it again, the exception will throw too.
How can I do? Thank you.
BTW: I used ModelAttribute like this:
I have upgread ext.net 2.5 to ext.net 3.0. But now , when i use X.StoreForModel() in the view 2 or more times, there an error:
[E] Ext.data.schema.Schema.addEntity(): Duplicate entity name "PrivateMessage": PrivateMessage and PrivateMessage
And if there is a window which have a grid, grid set store to StoreForModel, when you open the window first time, it's ok. But if you close the window and open it again, the exception will throw too.
How can I do? Thank you.
BTW: I used ModelAttribute like this:
[Ext.Net.MVC.Model(Name = "PrivateMessage")]
public class PrivateMessageModel
{
//.......
}
Last edited by Daniil; Dec 21, 2014 at 10:39 AM.
Reason: [CLOSED] [#615]