vanhttg
(Vân Nguyễn Thị Thanh)
June 10, 2021, 5:57am
#1
Hi Cuba Team !
I try to remove All elements of an entities before create new element
I using CollectionContainer but getItems() return Null
this’s my code
for (Custom custom: customsDc.getItems()){
dataContext.remove(custom);
}
customsDc.getMutableItems().clear();
I don’t know why? Please help!
martin
(Martin Panter)
June 10, 2021, 9:18am
#2
Hi,
can you post a little more code?
May be you try to remove the items before dataLoader has loaded the collection
(i.e. in the onLoad-event of the mask-controller ).
Regards,
Martin
1 Like
vanhttg
(Vân Nguyễn Thị Thanh)
June 10, 2021, 9:29am
#3
you are right!, I tried to delete it too soon