Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto set parent key field in child -- when?
Message
From
18/08/2008 14:22:27
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Auto set parent key field in child -- when?
Environment versions
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01339607
Message ID:
01339607
Views:
72
Hi Kevin/All,
assuming (yeah I know...) I've set correctly as per the docs in my child object.partial ForeignParentKeyField="myparentid" and AutoSaveOnParentSaved=true, and in my form I've done parent.RegisterChildBizObj(Parent, "Parent").

When adding a new row (mmButtonNew) to a child object, can you tell me when/in what event the child.parentid will get set automatically?

Currently seems to fail after a save attempt (field required) but gets filled after I acknowledge the error dialog, so I can then save.

I can take care of it by setting the field myself in a postnewrow event, but I'd like to handle the mm way if possible.

thanks,

-Larry
Next
Reply
Map
View

Click here to load this message in the networking platform