Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UI or BO code?
Message
De
25/08/2010 19:50:00
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
25/08/2010 16:25:53
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
01478134
Message ID:
01478510
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform