If ruoOnPost=true, TDAMemDataTable.Post causes an error: “Dataset no in edit or insert mode.”
If I set ruoOnPost=false, TDAMemDataTable.Post succeeds. However, when I, manually, call ApplyUpdates, I get the error: “Dataset no in edit or insert mode.”
This is the only dataset displaying this behavior. There are two lookup fields. One is read only the other is not. What might cause this behavior?
I created a test case; however, I was not able to reproduce that behavior. In my main app, this is the only dataset that I have noticed this behavior, with many others working fine. The error only arises when ApplyUpdates is called, either by me or by ruoOnPost. Is there anything that would cause ApplyUpdates to expect the dataset to be in dsInsert or dsEdit modes? If I call ApplyUpdates, without calling Post, HasDelta returns false, and does not apply.