How to handle an editing issue


Author
Message
Tim Dol
Tim Dol
StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
I'm using a legacy database whereby the customer data was split up into two databases, so I have two BO's, say CustA and CustB.  Relationships are not set right now.

I have a form with the two BO's (CustA and CustB).  CustA is the primaryBO.  I fill CustB within the CustA_Navigated event. Everything is fine when the customer record exists in both tables, however when the customer record does not exits in CustB, which it will on occasion, I get an error indicating that there are no rows in the current datatable (CustB), when I click on the edit button on the maintenance form tool strip.

What I want to do is add some code to automatically perform an 'Add' on CustB when the editing state on CustA changes to 'Edit ', however the error occurs before the event is fired.  I also tried the  CustB's EditingStateChanged event and the FormEditingStateChanged event, but the error occurs before these events are fired as well.

Any idea on how to handle this particular issue?

Thanks

Tim

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search