Describes an issue that can occur when a save for a new record opened from a datagrid is attempted.
Message “The child record you are trying to save does not have any parent record.” displayed when clicking save on a new record created from a data grid.
This issue occurs because the new record is not aware of it’s Foreign Key.
This is a known issue that has been reported to development for resolution in a future release.
This issue, in most cases, can be resolved by modifying the ways that your screens/datasets are linked.
Take the following example:-
1. A screen is created with the main dataview as the Absence table (Child of People Table)
2. Contained on the screen is a datagrid that links to the Job Details table and displays jobs related to the People record selected.
3. It is possible to edit or delete Jobs displayed in the data grid but it is not possible to add new jobs due to the aforementioned issue.
4. Creating this screen in the following manner will resolve the issue:
Main Dataview = People
Two Datagrids – One related to Absence and one related to Job Details.