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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 349
» Latest member: customrubber
» Forum threads: 240
» Forum posts: 1,069

Full Statistics

Online Users
There are currently 3 online users.
» 0 Member(s) | 2 Guest(s)
Google

Latest Threads
using cdb_auth with Live...
Forum: General
Last Post: JereMiami
12-19-2024, 01:58 AM
» Replies: 0
» Views: 27
BLOBs - not possible to a...
Forum: General
Last Post: stamatis
10-06-2024, 06:28 PM
» Replies: 0
» Views: 261
Allow users to change the...
Forum: General
Last Post: mark_talluto
01-18-2024, 01:09 AM
» Replies: 8
» Views: 11,441
cdb_sendEmail
Forum: General
Last Post: mark_talluto
11-07-2023, 09:57 PM
» Replies: 0
» Views: 688
cdb_sync & cdb_lookupvalu...
Forum: General
Last Post: mark_talluto
11-07-2023, 09:45 PM
» Replies: 1
» Views: 1,241
cdb cdb_sendEmail
Forum: Bug Reports
Last Post: JereMiami
10-05-2023, 01:57 PM
» Replies: 0
» Views: 1,770
LCM: "Please inform Canel...
Forum: General
Last Post: mark_talluto
07-12-2023, 07:58 PM
» Replies: 24
» Views: 23,243
San Franciso Region Outag...
Forum: Announcements
Last Post: mark_talluto
05-09-2023, 03:31 AM
» Replies: 1
» Views: 2,880
Error, CDB_Header checksu...
Forum: General
Last Post: cpuandnet
02-01-2023, 05:00 AM
» Replies: 4
» Views: 3,933
CDBCache sync from local ...
Forum: General
Last Post: Hendricus
01-29-2023, 09:39 PM
» Replies: 2
» Views: 2,779

 
  every now and again SDK becomes unusable...
Posted by: stamatis - 02-27-2021, 12:01 PM - Forum: General - Replies (17)

Hi all,

I've had this recurring issue in developing an app based on LiveCloud -- every now and again, without any clear triggers, the SDK becomes 'unusable'. I'm guessing there is a possible corruption issue?

I just get the message 'the CanelaDB SDK is missing' -- when it's clearly there and has been in use for weeks with no issues...

The SDK folder is stored in a folder containing the LiveCode mainstack; it uses a local DB that syncs with the cloud DB with a custom handler called SyncDB pSource, where the pSource is either local or cloud and will overwrite destination at cloud or local respectively...

This type of issue seems to crop up every 3-4 weeks, I'm unable to explain why... If i download the SDK again, it works but of course my concern is if this will keep happening with the deployed app...

Any suggestions?



Attached Files
.jpg   canela SDK missing.jpg (Size: 96.5 KB / Downloads: 9)

Rainbow Issues with CSV import
Posted by: stamatis - 01-22-2021, 11:50 AM - Forum: General - Replies (4)

Hi Mark and LiveCloud team,

ran into problems importing a CSV file into LiveCloud. This is a large file (122 Mb) with 127K + records

Issues:
1. only 103,000 of the 127,000 records were imported
2. the text was exported from an SQL query system that encloses text components in double quotes; there are leading or trailing double quotes (or both) in all fields. However it seems random if these are leading, trailing or both...
3. several fields also have a leading comma in their text (ie. the field starts with ,"field text"


Any advice? (i mean other than programmatically importing the data file to LiveCode and writing a handler to do this)

Many thanks
Stam


  batchSync
Posted by: stamatis - 01-07-2021, 07:00 PM - Forum: General - Replies (5)

Hi all and LiveCloud team...

Just a quick question about BatchSync - I am using cdb_batchSync to update the cloud database from the local database at certain intervals... 
It certainly does the job, BUT... it seems to be a 'blocking' command, meaning that everything in the app stalls until the command completes.

Is there a 'non-blocking' version of this, or am i doing this wrong?

this is my algorithm for syncing the entire db in either direction:

command syncDB pSource
   local tTableNames, tTableID, tInputA, tMessage
   put cdb_tableNames() into tTableNames
   repeat for each line tTable in tTableNames
       put cdb_tableID(tTable) into tTableID
       put "*" into tInputA[tTableID]["cdbRecordID"]
       put pSource into tInputA[tTableID]["source"]
       put true into tInputA[tTableID]["allowDeletes"]
       put false into tInputA[tTableID]["detectCollisions"]
   end repeat
   get cdb_batchSync(tInputA)

   if cdb_result() is not true then
       put "Error syncing cloud <-> local database: " & cdb_result("response"into tMessage
       answer tMessage
   end if
end syncDB


I think it may just be a bit too complex to try and maintain a system that flags changes and only syncs them, not in the least as the data is relational involving multiple tables and is still being developed, so i would prefer a system that would just sync everything 'in the background' if that were possible... 

As it stands, the process to sync does not appear asynchronous and blocks the interface - grateful for any advice/tips (or if appropriate a feature request for an asynchronous sync!)

Many thanks
Stam


  standalone not logging in...
Posted by: stamatis - 11-08-2020, 01:27 AM - Forum: General - Replies (28)

Hi all,
I'm having difficulty with getting a standalone to use LiveCloud...

i've adapted the login set up from the 'create project' from LCM's toolkit dialog. I use the same interface/code and if successful login it navigates to another card. 

Inside LiveCode (Indy 9.6.1) this works great. 
However when building standalone this just doesn't work and no error is generated.

I've made sure all external files for the app and livecloud's required libraries are included.
In particular: Internet, tsNet, mergJSON, SSL & Encryption, as well as the app's CanelaDB toolkit folder are definitely included (I've also tried just adding the 3 subfolders of the /CanelaDB/ folder instead, but no difference)

I've added some debug code to try and figure out where the app fails in the standalone. 
Running the 'login' command below gets as far as calling cdb_auth, then nothing else happens in standalone, whereas in LiveCode it works as expected, completing the authorisation and navigating to the correct card. If i try to create a new account, nothing happens again.

The login code called by clicking 'log in' is (comments indicate what works inside LC and in Standalone)

Code:
command login
  local tInputA, tLayer, tAuthStatusA, temp
 
  if not _verifyLoginData() then
     exit login
  end if

  answer "about to send cdb_auth" //debug code -- this works in LC and Standalone

  get cdb_auth(fld "Email-input" of grp "login",fld "Password-input" of grp "login","User")
  put cdb_authStatus() into tAuthStatusA
 
  answer "Response: " & cdb_result("response")  //debug code -- does nothing in standalone; no response, no error. In LC this answers authorisation completed
 
  repeat for each key tKey in tAuthStatusA //debug code -- no response here either. In LC it answers cloud: true, local: true
     put tKey & ":" && tAuthStatusA[tKey] & return after temp
  end repeat
  answer temp
 
  if tAuthStatusA["cloud"] then
     go to card "card1" //works in LiveCode, but not standalone
  else if tAuthStatusA["local"] then
     go to card "card2" //works in LiveCode, but not standalone
  else
     answer "Error authenticating user:" && cdb_result("response")
  end if
end login

Based on this it seems like after cdb_auth, the process stalls somewhere in the standalone, as the next 'answer' debug line never fires but does inside LC.

Looking at my firewall, the app doesn't seem to be attempting to connect to the internet at all (according to Little Snitch)

What am I missing? Any help would be greatly appreciated...


  Panic! cdbUsers table empty!
Posted by: Bizbuzz - 10-29-2020, 12:47 PM - Forum: Bug Reports - Replies (3)

Hi,

Been developing a system for a while now with mobile apps and PC/Mac software.

All my users seems to be gone in the cdbUsers table! All other tables (each user have 2 tables) are still there. What is this? 

Do you have logs or something to see when it was emptied? Could be somewhere in the latest 7 days this happened. Do you keep backups ?

Besides of that the LiveCloud Manager is working very slowly. UK region.

Br /John

Added. Maybe cdbUsers is not empty just unresponsive ? attached a screenshot from LiveCloud Manager trying to create user.



Attached Files
.png   Screenshot 2020-10-29 at 14.29.42.png (Size: 159.03 KB / Downloads: 5)

  BatchMerge
Posted by: stamatis - 10-16-2020, 04:57 PM - Forum: General - Replies (3)

Hi all,

Just been looking through the API and came across batchMerge. 
While this may be potentially quite useful, I found the documentation fairly impenetrable and difficult to ‘grok’. 
Does anyone have a high level overview of this and when it’s used?


  Query Operators "filter"
Posted by: miyaa - 10-14-2020, 01:38 AM - Forum: General - Replies (3)

Hai

i didn't find the "filter" function in the query. is it really not available?



Attached Files
.png   Screen Shot 2020-10-14 at 08.35.26.png (Size: 32.43 KB / Downloads: 3)

  help with query
Posted by: stamatis - 10-07-2020, 11:09 PM - Forum: General - Replies (3)

Hi all,
I’m trying to convert an existing project from a relational database.

I’m hoping I can get some help constructing a query that’s fairly straightforward in SQL...

In this scenario there are 3 tables:
- table 1 has a list of dates
- table 2 has encounter data that includes a foreign key for person and links to table 1 by date (table1.date = table2.date)
- table 3 has person data and links to table 2 with personID (table2.personID = table3.personID)

So basically selecting a date in from table 1 should retrieve all encounters in table 2 with the same date and in each retrieved result, the personID foreign key should retrieve person data from table 3 when presenting the data.

in SQL i’d just use a SELECT with JOIN statements to retrieve this in one go.

Is this feasible with liveCloud? Or would i need to construct an array running 2 separate queries?
Alternatively, should the data structure change to include all person data in the encounter table for example?

grateful for any pointers/suggestions...


  RESTapi for livecloud
Posted by: miyaa - 10-03-2020, 01:47 PM - Forum: General - Replies (1)

My customer considerations using LiveCloud is the limited RestApi so it will be difficult to connect some of the services we have built.
I hope this can be a feature.

Thanks


  there is no package in the subscription section
Posted by: miyaa - 10-02-2020, 02:55 AM - Forum: Bug Reports - Replies (4)

like the screenshot I attached.



Attached Files
.png   Screen Shot 2020-10-02 at 09.49.02.png (Size: 33.04 KB / Downloads: 7)
.png   Screen Shot 2020-10-02 at 09.48.49.png (Size: 96.11 KB / Downloads: 7)