0
I’ve been using Iphi xe6 for a few days now and I’m racking my brain with a problem. I have here the trio: Sqldataset -> Clientdataset -> Datasetprovider.
When I open my application, I call cdsPessoas.Open
(Clientdataset).
So far so good, it displays my records all right. But at the time I call the cdsPessoas.Append
, it returns me the error saying that Clientdataset is not active. The problem is that at no time I close it, IE, I do not know why the hell it is closing alone.
I use these components within a data module along with two more Clientdataset and Sqldataset doing the Master Detail. I tried to take the master Detail, but it’s not the problem, because the data is displayed correctly.
Does anyone have any idea what it might be?
Transcribing the user comment @Ewerton-Dutra, "It would be good if you passed part of the code, because you’re saying you’re not closing. But maybe you’re doing something that’s closing."
– Filipe.Fonseca
Update the question with a little code. But by the symptoms shown, I would say that a
Open
in thecdsPessoas
before theAppend
would solve... Using components from a Data Module, as well as a designed form, generate several problems by hiding the code. It is difficult to be sure of property values when starting execution.– Guill