Also if I change the data in one of the field and then use the BrowseDialog to select a new record there is no message to save the changes before switching records. What method must I call so that the user will be prompted to save any changed data? If you close the form without saving any changes the user is automatically prompted, I want to duplicate this beheavior. Should I just check the isDirty property of the BO and prompt with my own message?
The best thing would probably be to go through the business objects in the Form.GetListOfSaveBOs(), which will return an array of the business objects that will be included in the save. If any of them are dirty, then show the message and handle the logic accordingly.