PDA

View Full Version : [CLOSED] store is not committing?



aditya
Nov 19, 2013, 10:58 AM
i am using these code


ChangeRecords<InsightsLists> insights = new StoreDataHandler(e.ExtraParams["data"]).BatchObjectData<InsightsLists>();

foreach (InsightsLists created in insights.Created)
{
this.AddInsight(created);

ModelProxy record = Store1.GetByInternalId(created.PhantomId);

//remember record instance in variable to avoid searching on each method calling
record.CreateVariable = true;

record.SetId(created.InsightId);
record.Commit();
created.PhantomId = null;
}


store is not committing(always showing red corner signal) after successfully executing above code. any help?

Daniil
Nov 19, 2013, 5:15 PM
Hi @aditya,

You are basing on this example, right?
http://examples2.ext.net/#/GridPanel/Update/Batch/

Similar code appears to be working in that example. So, it is hard to say what is wrong in your case.

Do you see "...commit()" in a response of saving DirectEvent?

Could you, please, provide a full test case?

aditya
Nov 20, 2013, 5:11 AM
thanks Daniil,
there was error in my markup. my code is running very well. please mark it closed or delete this post.