BO not getting Dirty...


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
I have a form with 2 BO Parent and Child, I have done this many time using a ChildFormDialog, what have changed in this case is that in the ChildForm I need to add many records at the same time, not just one as usual in a ChildFormDialog situation. So I have done is in the child form I added another instance of the child BO and add all the records there, then I use the BO.CopyFrom to update the translated child BO, but at this stage the translated child bo does not get dirty, so when saving, all those records are not saved.



This is the code in the "OK" commandbutton of the child form:



Private Sub cmdOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOK.Click

Me.BizInventoryItems1.Filter = ""

Me.BizInventoryItems1.CopyDataFrom(Me.BizInventoryItemsForListView, MicroFour.StrataFrame.Business.BusinessCloneDataType.AppendDataToTableFromDefaultView)



DialogResult = Windows.Forms.DialogResult.OK

End Sub




What am I missing here that will not set the me.BizInventoryItems1 bo dirty so it can be properly saved at the parent form?

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search