Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foreign key values not being updated on save
Message
De
27/07/2005 12:46:13
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01035978
Message ID:
01036314
Vues:
8
Hi Kevin,

>Did you check out the MM .NET Help topic "ForeignParentKeyField: Child Object Foreign Parent Key Field"? If you have set the ParentForeignKeyField property in the child business object but the value is still not getting updated, I recommend setting a breakpoint in mmBusinessObject.PopulateForeignParentKeyField() to see if this code is being executed.
>
Need to restate this from previous post, _ForeignParentKeyField is populated but _ParentKeyValue is not:

Stepping through from mmBusinessObject.PopulateForeignParentKeyField(), it does execute but _FParentKeyValue = null so it fails here :)


protected virtual void PopulateForeignParentKeyField()
{
if (this.ForeignParentKeyField != null && this.ParentKeyValue != null)
{
this.PopulateKeyField(this.ForeignParentKeyField, this.ParentKeyValue);
}
}

So, I'm missing where _ParentKeyValue gets populated. I see where it should be populated with the debugger but the value is always undefined. Any insight?

Thanks,

Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform