Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UI or BO code?
Message
From
25/08/2010 19:50:00
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
25/08/2010 16:25:53
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
01478134
Message ID:
01478510
Views:
21
Hi Frank,

I need to look into the mm code to see how some of this works, but I just tested and you can do this. Just add this third line after the first two
        this.EntityList.Clear();
	this.EntityList.Add(newEntity);
	this.SetCurrentEntity(this.EntityList, 0);
Apparently the EntityList.Clear only clears the list and not the current entity reference. The entity list is cleared. Also the EntityList.Add does indeed add the correct entity to the list, but the entity in the entity reference is not changed. by adding the third line you will add the one and only entity in the entity list to the current entity reference. I just tested it.
Thanks
Tim

>
>Tim,
>
>that hasn't made a difference, I am still seeing the old data on the form, not the new blank record (it should be blank because I haven't copied the data from the original entity yet).
>
>While debugging after doing the EntityList.Clear(), this.Entity still shows the original values and does so even after adding the newpolicyentity.
>
>This is beginning to make my head hurt :(
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform