Populating New Child data via silverlight /w CriteriaPopulating New Child data via silverlight /w Criteria
Old forum URL: forums.lhotka.net/forums/t/6636.aspx
Jack posted on Thursday, March 19, 2009
I have a parent BO that responds to a UI Button AddClick to add a new child. However I need to populate the child with data from the database using params from the parent.
How should one do that asynchronously?
I got it working doing a GetChildObject (args, EventHandler xxx) but the dataportal ends up calling DataPortal_Fetch. So I have DataPortal_Fetch but Child_Insert.
In the fetch I called MarkAsChild.
Should I be doing a CreateNew, MarkAsChild, CommandGet&FillData or is this way okay?
or should it be
Parent.GetChildData() -> CommandGet&FillData -> GetChildData as datareader -> Child.GetChild(dataReader) -> DataPortal_ChildFetch(dataReader)?
thanks
jack
Jack replied on Thursday, March 19, 2009
My problems stemmed from the fact that my codegen wasn't putting in a call to MarkAsChild in the constructor.
Copyright (c) Marimer LLC