Frank,
>This is the code I was calling:
>
>
public PolicyEntity GetPolicyByPolicyHeaderFK(Guid policyHeaderFK)
> {
> return this.GetEntity("PoliciesSelectByPolicyHeaderFK",
> this.CreateParameter("@PolicyHeaderFK", policyHeaderFK));
> }
>
>
>I found the section on using business processes in the help and tried adjusting my code like this:
>
>
public mmSaveDataResult DailyProcessPolicy(PolicyHeaderEntity oPolicyHeaderEntity, int userPK)
> {
>// do I need to call GetEmptyDataSet first?
> this.oPolicyHeader.GetEmptyDataSet();
> this.oPolicyHeader.GetPolicyHeaderByPolicyHeaderPK(oPolicyHeaderEntity.PolicyHeaderPK);
>
> mmBindingList<PolicyEntity> PolicyList = this.oPolicy.GetPolicyListByPolicyHeaderFK(oPolicyHeaderEntity.PolicyHeaderPK);
>
>
>So I am now returning an Entity List and things apparently work. However I am still a little confused as I still make my changes to the Entity and that is now being reflected in the Entity list and getting saved.
All the entities you retrieve using the business controller object get included in the entity list, so making a change to the entity then saving the list saves the entity too.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com