Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 741
» Latest member: alexanderlewis
» Forum threads: 1,176
» Forum posts: 2,010

Full Statistics

Online Users
There are currently 285 online users.
» 0 Member(s) | 283 Guest(s)
Bing, Facebook

Latest Threads
Step Up to the Plate: How...
Forum: Getting Started
Last Post: Innocent Sozonov
11-27-2026, 05:33 PM
» Replies: 0
» Views: 90
Understanding the Physics...
Forum: General
Last Post: rodeoneerer
11-27-2026, 03:02 AM
» Replies: 0
» Views: 108
Escaping Granny's Grasp: ...
Forum: General
Last Post: Anfisa Seleznyova
11-23-2026, 02:02 AM
» Replies: 0
» Views: 144
Olive Young Promo Code [G...
Forum: General
Last Post: yanarip357
11-19-2026, 05:32 PM
» Replies: 0
» Views: 155
Olive Young Discount Code...
Forum: General
Last Post: yanarip357
11-19-2026, 05:31 PM
» Replies: 0
» Views: 133
Olive Young Promo Code [G...
Forum: General
Last Post: yanarip357
11-19-2026, 05:29 PM
» Replies: 0
» Views: 135
【Working Code】Olive Y...
Forum: General
Last Post: yanarip357
11-19-2026, 05:28 PM
» Replies: 0
» Views: 149
Olive Young Discount Code...
Forum: General
Last Post: yanarip357
11-19-2026, 05:26 PM
» Replies: 0
» Views: 133
【Working Code】Olive Y...
Forum: General
Last Post: yanarip357
11-19-2026, 05:25 PM
» Replies: 0
» Views: 129
Olive Young Discount Code...
Forum: General
Last Post: yanarip357
11-19-2026, 05:24 PM
» Replies: 0
» Views: 125

 
  CanelaDB SDK Missing
Posted by: TomNguyen - 04-17-2020, 04:06 PM - Forum: General - Replies (3)

Hello

I am new to Livecloud.  I can not seem to find the API and the Data folder after I Exported the Toolkit  from Livecloud Manager.   However CanelaDB and subdirectry Libraries and Config is created.  Anyone had  the same problem and have the solution please help.  Thank you.


  cdb_addTableToProject
Posted by: JereMiami - 04-17-2020, 02:12 PM - Forum: General - Replies (1)

I am logged in with my developer credentials. I would like to copy (or add) a table within this project to another project. However, I receive the following message: "The table you are trying to add does not exist."

To be more specific: I am trying to link TableA from ProjectX to ProjectY, where the result is TableA is linked to both ProjectX and ProjectY

Is cdb_addTableToProject the command I should use (cdb_addTableToProject "ProjectY","TableA")?

Thanks-


(04-17-2020, 02:12 PM)JereMiami Wrote: I am logged in with my developer credentials. I would like to copy (or add) a table within this project to another project. However, I receive the following message: "The table you are trying to add does not exist."

To be more specific: I am trying to link TableA from ProjectX to ProjectY, where the result is TableA is linked to both ProjectX and ProjectY

Is cdb_addTableToProject the command I should use (cdb_addTableToProject "ProjectY","TableA")?

Thanks-

Nevermind: use cdbLoadTable prior to cdb_addTableToProject  

Wink


  Version 2.6.2 released
Posted by: mark_talluto - 04-16-2020, 05:11 PM - Forum: Announcements - No Replies

This is an interesting update that will affect you at some point. Here is the scenario that brought this to our attention.

We are working on Appli and using LiveCloud Manager on the same computer. Sound familiar? It should as I bet most of you are doing this too.

If you sign in with the same credientials (developer on both apps), you run the risk of your app getting an updated API authentication key. LiveCloud Manager would then be denied access to the data because the same credentials are now using a new API auth key.

LCM did not deal with this situation nicely. The solution was to have LCM recognize that this happened and have it re-auth to get the updated API. To do this, we needed to make the gCSIauthA variable global. We could then have LCM try to auth again when the it ran into the problem. LCM could then continue doing what it needed to do.

Under normal circumstances, your clients would never be able to see this. This will only affect the developers that have an app they are developing open and LCM on the same computer. And, the app would need to have forced a new API key. 

Here is an example of how LCM is handling this when it does a cdb_SDK() call:

get cdb_SDK("myProject")
if not cdb_result() then
    if gCDBresultA["recent"]["response"] = "Error: Failed API Key Authentication" then
         get cdb_auth (gCSIauthA["email"],gCSIauthA["password"],"developer")
         get cdb_SDK("myProject")
         if not cdb_result() then
              return empty --YOU MAY WANT TO HAVE YOUR SOFTWARE GRACEFULLY RETURN TO THE LOGIN SCREEN
         end if
    end if
end if

Some extra thoughts:
You might find that this would have to be littered in many places. This solution is not practical. While our current solution works for our particular case, we may need to improve this further. One consideration is to have a callback for this situation.

You would get a new API that allows you to set the name of the handler to call when the callBack happens. We could then catch this problem reliably in all cases and then deal with it in one place. You would not need to place the example code above everywhere.

The steps we have taken so far allow LCM to work and lays the groundwork to do the full callBack solution.


  Version 2.6.1 released
Posted by: mark_talluto - 04-16-2020, 04:50 PM - Forum: Announcements - No Replies

The update contains a fix to LCM that fixes an issue where we could not delete a project that had more than one word in the name. I think it is a bug in LiveCode that can not deal with sending a word that is also a valid token in LiveCode as a parameter.

Should you need to do that, the solution we came up with was to base64Encode the value before passing it. Should this turn out to be a LiveCode bug, we will generate a bug report.


  Blobs and Datagrids
Posted by: sid - 04-12-2020, 12:52 PM - Forum: Code Samples - Replies (2)

Hi Guys

I have a few questions on BLOBS and datagrids and will appreciate some sample code here.

I have managed to create a form with a datagrid on it , and a image object that retrieves the images from the cloud when a user hilites a line on the grid. This is designed as a cloudcall and not a local call , so its a tad slow.

here is a vid on how this works : https://www.loom.com/share/d609c74551df48309f51723192353039

here is the code:

Code:
local  tBlobGridRef, tPathToBlob, theLine, theSelectedID, tPHtender

getProp uSelectedPicID
 
  put the dgHilitedLines of me into theLine
  return GetDataOfLine(theLine,"blobReference")
 
end uSelectedPicID


on selectionChanged pHilitedIndex, pPrevHilitedIndex
 
  show widget "PHSpinner"
  put empty into tBlobGridRef
  put empty into tPathToBlob
 
  put the uSelectedPicID of group "Tenders" into theSelectedID
  put cdb_readBlob(theSelectedID,"cloud") into tPathToBlob
  set the filename of image "tenderPicViewer" to tPathToBlob
  //set the text of image "tenderPicViewer" to tPathToBlob
  put the text of image "PHTender" into tPHtender
  if tPathToBlob is empty then set the text of image "tenderPicViewer" to tPHtender
  hide widget "PHSpinner"
 
end selectionChanged
 

Here is  question 1. Its a cloud call but the path to the image ends up being a local path? Its pretty slow ,( perhaps because I'm living in a rural farm town) Does the system download the image if its a cloud based call or just look in the local Blobs table if it exists?

so I tried to resize all images to under 10kb and that helped a lot. Much faster, so I tried to put the text of the image into a table key, (not a BLOB table) figuring I can just store the text into the key and then that should speed it up more if its just a 100x80 pixel .png thumbnail. LCM did not seem to allow this? can we actually do that? Or will it totally mess up the performance?

Question 3 , Is it possible to put a thumbnail of a BLOB into a DataGrid? and if so, is it possible to only load the images that will be visible to the user (IE. only when the lines are visible on his screen. Will appreciate some help with this.
I am designing a system with at least 70000 product items and God help a tablet trying to load ...lets say 30000 thumbnails if a query is run. It will probably die...although it will be interesting to test. So the idea is run a LCM Query and put the results into a DataGrid table with a BLOB in one of the columns.

Question 4. Is it possible to have more than 1 Blobs table? because I feel that it important could separate things like documents and High Res images from thumbnails, because you do not want to sync the High Res Blob table with a thing like a POS system or a tablet.

Would really appreciate some sample code for question 3

I have to say that this is the easiest , most productive database design I have ever seen. I'm a total beginner and did not have to learn a single sql query with the code snippet feature . Thanks Livecloud !!!

Keep safe everyone!
Sid


  Post in Announcements fixed!
Posted by: mark_talluto - 04-10-2020, 06:46 PM - Forum: Announcements - Replies (3)

Hi Everyone. A big shout out to Clarence for pointing out that our Announcement forums were locked and would not all posting replies. This has been fixed. Please feel free to reply to any announcement you like. WhenInSpace has already tested it out with his post this morning. 

We are looking forward to hearing your thoughts.


  Version 2.6.0 released
Posted by: mark_talluto - 04-10-2020, 01:12 AM - Forum: Announcements - No Replies

Hi Everyone. We have released version 2.6.0 of LCM. Included you will find the new cdb_calcUpdate() API.

If you want to use the new API in your apps, you will need to export the updated ToolKit and apply it to your apps.
If you have any thoughts on this API, the sooner you report them to us the better. 
If we need to make any changes, it is best to make them before the API starts to get used in apps.


  cdb_sendEmail in the future
Posted by: mark_talluto - 04-10-2020, 12:12 AM - Forum: General - Replies (3)

I received the following question via email. I am bringing it to the forums because we would like to hear your thoughts.

Quote:https://docs.livecloud.io/SendEmail/ 

Hello when I sent the mail it appeared in the spam folder and gmail told me that the email sent might be malicious. Is there  a way to prevent this or that is what will happen. 

We are using a 3rd party provider for the email feature. This is a problem for us as well. We have been working on our email reputation, but it is not perfect. We probably have to pay more money to get a dedicated IP for just our use. But, having everyone use this API will only put it at risk. It may be an API that we eventually have to remove from CanelaDB. It will not serve anyone for serious work.

But, we still have some potential value for everyone. We worked to wrap the SendGrid API for our email feature. We could have anyone that wants to get their own account and feed cdb_sendMail with your own SendGrid Authentication API key. Then, we could send the emails through your account and protect you from other users. That would be a better solution than what we have now.

This is not something we are going to work on just now. We thought it would be good to get people thinking about the direction options we can take on this API.


  New API: cdb_calcUpdate()
Posted by: mark_talluto - 04-09-2020, 07:50 PM - Forum: Announcements - Replies (3)

We added a new API for doing calculations on a key in the cloud and locally. This API is really designed to maximize accuracy and minimize data collisions for math operations on cloud data. Thanks to Sid for suggesting this API.

We just posted the new docs here: https://docs.livecloud.io/CalcUpdate/ and https://docs.livecloud.io/CalcBatchUpdate/

You may expect an LCM update with the API soon.


  What is Appli?
Posted by: mark_talluto - 04-08-2020, 10:50 PM - Forum: Announcements - Replies (2)

We released LiveCloud officially at the last LiveCode conference. We also demoed an early version of Appli during our session. The attendees showed great interest in our work on Appli and even pulled me aside to tell me how they would use this technology. 

We are creating Appli to complement LiveCode and LiveCloud. I view it as the missing story in the trilogy.

You can think of Appli as a focused IDE for business apps. Appli will connect your data to UI and the other way around. 

If you have enjoyed using tools with modern layout elements like Keynote and Adobe XD, you will be happy to hear that Appli is bringing that to LiveCode developers. Appli will enable developers to bring their business apps to life faster than ever before. We know that newcomers to LiveCode that come from low-code environments find UI integration with data in LiveCode to be a hard transition.

I am not going to get into all the features of Appli right now. This announcement is more akin to the smell of cookies when you visit grandma's house. You can't eat the cookies just yet. Sit back and enjoy the aromas as they waft about the forum.

We think this news is very relevant to LiveCloud users because we keep getting requests for examples of how to connect your UI to your data.  For the time being, we will make announcements on our progress with Appli here. We are looking for a soft launch by the end of the summer of 2020.

A video showing aspects of Appli will be released shortly.