Hi
I have a form for editing/adding a new record (based on the music example). It has several DB linked controls (edits, no grids). I am trying to set default values when a new record is created but they are not showing up in the controls.
I am using the code in my form:
EventEditDataset.Close;
EventEditDataset.SetJsonData('{}');
EventEditDataset.Open;
EventEditDataset.Insert;
VenueDataset.Load;
I have a set of default values for most fields and have tried setting them after the .Insert call, after the .Load call and in the dataset AfterInsertEvent. None of these populates the controls.
Any ideas?
Thanks
Russell