10-12-2019, 10:09 AM
[attachment=35 Wrote:mark_talluto pid='447' dateline='1570809280']
(10-11-2019, 10:58 AM)paddy.healy@gmail.com Wrote: Hi all
Just starting with livecloud. I have tried various methods based on the docs and I have also used the crud sample stack but I cannot get livecloud and LiveCode to talk. I just keep getting the candela sdk missing please export again. One thing I have noticed is that the api and data folders are not exported?
This is so frustrating
Hi Paddy.Healy,
Welcome to LiveCloud. The reason for getting the error is that the libraries are not being exported or they are not being placed in the correct place.
If the export is the problem, we may be running into an OS security dialog being missed. On Mac, you may get something like I am posting in this response. Windows 10 did not provide me any dialog to allow the export to take place.
If the export is not the problem, then it may be the placement of the export. When you export using 'Create Project' as your method, you get the following:
1. A folder titled with the project's name
2. An already placed CanelaDB folder, pre-made LiveCode stack with initialization code in place, and font for passwords. You run the 'login.livecode' stack, and everything works.
If you do the export using 'Export Toolkit' as your method, you get the following:
1. 'CanelaDB' folder placed where you want. You should place it in the same folder as your mainstack. Please see the screenshot labeled 'Basic Test Stack' for reference.
2. You are also presented with the 'Initialization Script'. This needs to be copied to your clipboard and pasted into your LiveCode stack. This code loads the libraries for your project.
My next training video will detail both of these processes.
I would start with the 'Create Project' method for all new development. Use the 'Export Toolkit' method only to update your project with the latest libraries.
The 'Create Project' method also comes with the login code needed to do cloud work. It handles all of your authentication calls. You just need to tell the pre-made code what to do when auth is successful. Example: go next card. The code will bring up an answer dialog telling you which line of the code you should visit to add your 'go next card' script. This will be covered in the next video, as well.
Please write back if you get stuck. Feel free to send us your project if you need someone here to look at it.
-Mark Talluto
Hi Mark
Thanks very much for the welcome and the very comprehensive reply. Okay so in case it was an OS security issue I am running livecloud as admin, i deleted my original project and started from afresh. I just used the create project dialog. When it is created I open the 'login.livecode' stack but immediately i get the error, "the canelaDB sdk is missing. Please export your canelaDB sdk again".
uCore_EWS.zip (Size: 543.24 KB / Downloads: 1)
screengrabs.zip (Size: 818.88 KB / Downloads: 1)
Thanks again and looking forward to your response
Regards
Paddy