Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foreign key values not being updated on save
Message
From
27/07/2005 12:46:13
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01035978
Message ID:
01036314
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform