That's the part that really has me stumped: there are no error icons. I tried creating a new form with the same controls, and now the data is read only. I can't edit any of the data! I'm almost ready to scrap the whole project and start over from scratch.
>Jim,
>
>What error messages are displayed at the icons? Sounds like it's getting broken rules somewhere and the save is aborted. Keep in mind that rules are checked before the save happens.
>
>---J
>
>
>>Kevin,
>>
>>I set the following properties:
>>
>>On ABusinessObject:
>>this.RetrieveAutoIncrementPK = true;
>>this.DatabaseKey = "Address Book";
>>
>>On the Address businessobject:
>>
>>public Address()
>> {
>> this.TableName = "Address";
>> this.PrimaryKey = "iAddress_id";
>> this.ForeignParentKeyField = "iNames_id";
>> this.AutoCancelOnParentCancel = true;
>> this.AutoDeleteOnParentDeleted = true;
>> this.AutoSaveOnParentSaved = true;
>> this.AutoNewOnParentAdded = true;
>>
>>
>>And on the form:
>>
>>
>> public AddressForm()
>> {
>> oNames = (Names)this.RegisterPrimaryBizObj(new Names());
>> oAddress = (Address)this.RegisterBizObj(new Address());
>> this.oNames.RegisterChildBizObj(this.oAddress);
>>
>>
>>I've spent a lot of time tracing the save (best way to learn) and this is the message that's returned:
>>
>>Displays the Error Provider broken rule dialog
>>
>>
>> /// </summary>
>> protected virtual void DisplayErrorProviderBrokenRuleDialog()
>> {
>> mmAppDesktop.MessageBox.Show("Unable to save the current data. See the error icons for details.",
>> "Data Entry Error",
>> MessageBoxButtons.OK,
>> MessageBoxIcon.Information,
>> this.CurrentLanguage);
>> }
>>
>>
>>The database is simple. The key fields are identity columns, and the address table has a foreign key from Names- iNames_id. This should work without problems, but I know I'm missing something. I just don't know what.
>>
>>Jim