SmartGuid + AureliusDataset

What's the right way to use an SmartGuid generator ID Field within AureliusDataset?
I simply tried to insert/post the record, but I received and exception that the ID field needed a value.
I thought the ID generator would automatically be called when the id field was mapped that way.
Thanks.

The guid is generated when the object is saved to the database, not when an Insert/Append is called in the dataset.
Simply set the Required property of the underlying TField to false.

Hi .. Thanks.

I could Insert/Post through AureliusDataSet by simply assinging
MyDataSetGUIDField.AsString := '';
in the OnNewRecord event.

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.