by Unknown user
When I sat down to write add all the new persistence code into my UI example program I realized that while I could load data from the persister into the ManyToManyLinks instance and have those checkboxes appear checked in my listbox, I had no way of communicating the user's selection of a record back to the ManyToManyLinks instance.
...
That meant my ClearLinkBetween method could no longer assume the mere presence of a linking record. I changed the code to this:
Code Block |
---|
CML_Data_ManyToManyLinks.ClearLinkBetween procedure(long leftRecordID,long rightRecordID) code if self.GetLinkRecord(leftRecordID,rightRecordID) self.LinksDataQ.IsLinked = FALSE put(self.LinksDataQ) end |
...
There's still work to be done here, not least of which is adding some measure of error handling. But this code does work. The unit tests pass, and in my UITest program my checkbox settings are preserved between runs.
Next time, a summary of the work done to date.