I am using QDSCV in my code-behind to manage my data. In the containing class I wrote a method, that is called multiple times and uses AddNew(object) method, to add new items to the collection. When I add only one element it submits properly afterwards. But as soon as I add two or more elements the collection gets into submit mode and does not return. There is no exception but when I close and reopen the program I see that the changes have not been submitted.
This is the executed code (first AddSubscription is executed and afterwards I call SubmitSubscriptions):
var subscription = (pcSubscription) subscriptions.AddNew();
subscription.pcUser = users.CurrentItem
subscription.pcProject = project;
Perhaps you can give me a clue how to get this working with more than one element at a time.