Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UI or BO code?
Message
From
26/08/2010 13:30:22
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
01478134
Message ID:
01478659
Views:
29
>Well, usually Tim is the one helping me out but I'm going to take a stab at this. I hope this helps.
>
>
> public PolicyEntity GetPolicyByPolicyPK(Guid policyPK)
>       {
>           
>            // get the requested entity - leave on the business object for return in the event we need it.
>            this.GetEntity("PoliciesSelectByPK",
>                            this.CreateParameter("@PolicyPK", policyPK));
>
>            // check its status
>            if (oPolicyEntity.StatusFK != (int)StatusCode.Pending)
>            {
>                // if it is not Pending then get this entity into a local reference. 
>                PolicyEntity oOldPolicyEntity = this.GetEntity("PoliciesSelectByPK",
>                            this.CreateParameter("@PolicyPK", policyPK));
>                //Get an empty dataset and add a new row
>                this.GetEmptyDataSet();
>                this.NewRow(this.GetCurrentDataSet());
>                //CopyPolicyEntity(oOldPolicyEntity, this.Entity);
>            }
>            // This will return either the original or the newly created one that is added.
>           return this.Entity;
>}
>
Hi Linda,

could you explain a couple things in your code, please?

What's the reason for oOldPolicyEntity?

I guess after adding the newrow I then need to populate it with the values from the old entity or dataset?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform