I would like to delete the myCloudData table using AdvMyCloudDataConnection. I have AdvMyCloudDataConnection and AdvMyCloudDataDataSet on the Data Module. Atter connecting to myCloudData and acivating AdvMyCloudDataDataSet I try to do it this way:
The above code looks OK. I have not been able to reproduce the reported issue.
Where do you see the error message you provided? Can you please provide a log file so I can further investigate this?
Logging can be enabled by setting CloudData.LogLevel to llDetail and CloudData.Loggin to true. The log file is generated automatically in the machine's Documents folder.
I use your demo project ... Public\Documents\tmssoftware\TMS VCL Cloud Pack Demos\myCloudDataDataSetDemo
I just added the button with delete code. I start the application, click Connect button and when it is connected I click the delete button and that generates the error.
<<I have not been able to reproduce the reported issue.>>
I tried this on two different computers and get the same error.
I tried AdvMyCloudDataConnection1.CloudData.Delete( tableName ) and if failed. Is there any other way to delete the table? What code did you use trying to reproduce this error?
Please note that the AdvMyCloudDataConnection.CloudData reference can only be used inside it's OnConnected event.
As deleting tables is not considered functionality directly related to the dataset you'll have to use a separate TAdvMyCloudData control in your application and call the delete command from there.