Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BusinessProcess apparently not saving
Message
 
To
17/07/2012 08:14:56
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01547911
Message ID:
01548749
Views:
41
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform