Hi Folks --
I had time this weekend to explore the app I've been working on (which I posted
about last week). I finally figured out how to do what I wanted to do--the
stuff about having a template-like display via nested datasets. The reason
Delphi wasn't behaving the way I thought it "should" was that I am (a)
saving/loading directly to disk via the ClientDataSet LoadFromStream and
SaveToStream methods, and (b) ClientDataSet's LogChanges property had been set
to true. Turning that property off changed everything, and it was smooth
sailing after that--finally!
At this point I've got just one small question left. I can't figure out how to
delete a record. The main ClientDataSet's Delete method generates an exception:
"Cannot delete master record with details."
Looking around on the web, deleting nested records seems to require that the
DataSet provider's poCascadeDeletes property(?) be set to True. As I described
above, though, I'm not using a DataSetProvider component--so I don't know how
to allow my app to cascade deletes.
Any thoughts about what I should do? Hopefully this is an easy one!
Thanks, as always -- Al C.
_________________________________________________________________
Personalize your Live.com homepage with the news, weather, and photos you care
about.
http://www.live.com/getstarted.aspx?icid=T001MSN30A0701
_______________________________________________
Delphi-DB mailing list
Delphi-DB@elists.org
http://www.elists.org/mailman/listinfo/delphi-db