Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BusinessProcess apparently not saving
Message
De
17/07/2012 08:14:56
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01547911
Message ID:
01548707
Vues:
48
>Frank,
>
>>have you got any more ideas for me on this, please? The problem is that apparently the child biz objects do not have any changes made in their entity lists. I was making changes in their entities, not the entity lists. Can you tell me how I should be doing this, please?
>
>It looks like you are getting child business objects in this line of code:
>
>
this.oPolicy.GetPolicyByPolicyHeaderFK(oPolicyHeaderEntity.PolicyHeaderPK);
>
>Can you post that code for me?
>
>Best Regards,

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.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform