| Welcome, Guest |
You have to register before you can post on our site.
|
| 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
|
|
|
| business logic in the livecide application |
|
Posted by: miyaa - 07-20-2020, 05:20 PM - Forum: Getting Started
- Replies (4)
|
 |
Dear Team,
livecloud doesn't support user permissions by default.
So I want to write it in livecode.
for example. i want to make rbac.
1. Role: Manager
2. Role: employee
only the employee role can see the employee table or
only the managerrole can see the manager table.
my assumption is if someone gets or knows the recordID then they can freely do it to search.
is it safe if I write rabc logic directly in livecode?
do you have an example to make rbac in livecloud?
if I use parseplatform.org I write it in cloudcode.
Thanks
|
|
|
|
| Both Universal and User Accounts |
|
Posted by: Pebah - 07-20-2020, 04:20 AM - Forum: Getting Started
- Replies (7)
|
 |
In my "book" application I want to have:
1. A universal account--to handle text and other data all users will see
2. A user account--to handle the user's personal data (bookmarks, etc.)
How is this done? I see in the docs, "Accounts and Authorization," descriptions of both, but it seems to describe it as either universal or user; I need both simultaneously.
Thanks!
|
|
|
|
| DigitalOcean Outage |
|
Posted by: mark_talluto - 07-17-2020, 09:57 PM - Forum: Announcements
- No Replies
|
 |
Hello everyone,
I just wanted to report that DigitalOcean, our datacenter provider, had an outage today at 21:33 UTC.
There incident report contained the following details:
Our engineering team is investigating an issue with one of our upstream providers. You may encounter connectivity issues with your DigitalOcean services. We apologize for the inconvenience and will share an update once we have more information.
At 21:43 UTC:
The issue with our upstream provider appears to have been corrected and we are currently monitoring the situation. We will post an update as soon as the issue is fully resolved and do not expect any further issues.
We are sorry for the temporary outage that may have occurred in your region. Everything looks good at the moment.
-Mark Talluto
|
|
|
|
| Verification email sender domain customisation |
|
Posted by: Bizbuzz - 07-17-2020, 06:49 PM - Forum: General
- Replies (5)
|
 |
Hi, as the subject reveals I would need to customise the sender domain. As it is now it uses the project name .com
We would need to change to projectname.se in this case, and in general to be able to set anything.anything would be preferable.
Maybe this is already possible? If not can it be done by you for a particular case by your support?
|
|
|
|
| First sync cloud to local |
|
Posted by: Pebah - 07-14-2020, 06:29 AM - Forum: Getting Started
- Replies (1)
|
 |
I've set up a table in LiveCloud Manager. Now I want to work with a local version of the same table. How do I create that local table that I will later sync back up to the cloud?
|
|
|
|
| Library error |
|
Posted by: Pebah - 07-10-2020, 06:22 AM - Forum: Bug Reports
- Replies (6)
|
 |
Hi, I'm getting this LC script error when I call initializeCanelaDB.
Error: stack "CDB_Header.lib" execution error at line 10 (Function: error in function handler) near "cdbi_create", char 13
Message execution error:
Error description: Handler: can't find handler
Hint: cdbi_setLogMode
I seem to be using the latest library files (I reexported the tools and restarted the program). The two .lib files are dated 6/30/20.
Peter Bogdanoff
|
|
|
|
| Unicode |
|
Posted by: Pebah - 06-25-2020, 07:31 PM - Forum: General
- Replies (5)
|
 |
Hi, is LiveCloud Unicode compliant? Currently (not using LiveCloud yet) I'm storing my text data in arrays as html text. However, to do queries, I suppose it needs to be plain text. I'm dealing with English with diacriticals and Chinese characters. Will I have any issues changing the text storage method?
|
|
|
|
| cdb_update changed/new data - best practices |
|
Posted by: mark_talluto - 06-09-2020, 07:55 PM - Forum: Code Samples
- Replies (1)
|
 |
One of our beloved LiveCloud developers asked a great question about cdb_update. He wanted to know how to efficiently update only data that has changed. Below is a copy of the email response. Please let us know if you have any questions about this solution.
Suppose the following array (record):
tInputA =
[“firstName”]
[“lastName”]
[“age”]
[“phone”]
Existing record id "435756d6-0576-4a86-8d01-7557168f6528" contains:
firstName: Tom
lastName: Perkins
age: 78
Phone: 123-456-7890
If you pass an array like:
tInputA =
[“firstName”][“Tom”]
[“lastName”][“Perkins”]
[“age”][“78”]
[“phone”][“555-888-9999”]
This will push an update to all the keys in this array even though some of the data may not have changed.
If you pass an array like:
tInputA =
[“phone”][“555-888-9999”]
You are only touching the “phone” key. The other data will stay as it is. The cloud call will be smaller and more efficient (...marginally). The question is how do you know that the phone data has has been updated?
It sounds like you are looking to come up with a method to pass as little data as possible (optimization) by determining what has changed.
This can be an important optimization if your array contains many keys. Or, it you may have heavy data in some of the keys. LiveCloud is not able to determine what is new for you without making a round trip to the cloud and compare. Solving this in your app is best.
People solve this problem in different ways.
Method #1: Develop a flag system to track which fields have been touched by your app
Method #2: Use the set operations in LiveCode to compare the original array with the final version and see if changes have been made
Method #3: Send the full array up using cdb_update and let LiveCloud push both new and old data into place
Method #4: Pick up the changes in a field and call cdb_update as each field is updated with: closeField
I am going to supply you the code to do Method #2 as it is not always apparent how to do this.
Drop this code into a single button. Put breakpoints into the code so you can walk through it. Once you get the hang of it, you can use this API in your own code.
—COPY ALL THE CODE BELOW TO A SINGLE BUTTON IN LIVECODE
//>GLOBALS
global gArrayA1, gArrayA2
on mouseUp
local tInputA, tRecordID
--BUILD THE TWO ARRAYS TO COMPARE
buildArray1
buildArray2
--CALL CUSTOM API TO COMPARE THE TWO ARRAYS
put compareTwoArrays(gArrayA1,gArrayA2) into tInputA
--WE NEED TO CONVERT THIS ARRAY
--THE KEY AND VALUE NEED TO BE IN THE RIGHT PLACE
combine tInputA with lf and empty
split tInputA with lf and comma
--RECORD TO BE UPDATED
put "435756d6-0576-4a86-8d01-7557168f6528" into tRecordID
--DO CLOUD UPDATE
cdb_update tInputA,"myTableName", tRecordID
end mouseUp
function compareTwoArrays pArray1, pArray2
local tArrayA3
/* BREAKPOINT THROUGH THIS TO SEE WHAT IS HAPPENING STEP BY STEP */
--TURN ARRAYS INTO A STRING
--WE ARE TAKING THE ELEMENT AND ITS VALUE AND SMASHING THEM TOGETHER
--gArrayA1 WOULD BE YOUR CURRENT CLOUD OR LOCAL RECORD
--gArrayA2 WOULD BE THE ARRAY CAPTURED FROM YOUR APP THAT MAY HAVE NEW OR UPDATED DATA
combine pArray1 with lf and comma
combine pArray2 with lf and comma
--TURN STRING BACK INTO AN ARRAY
--WE WANT THE COMBINED KEY AND VALUE TO BE THE NEW ELEMENT
--THIS WILL MAKE IT EASY TO COMPARE THE TWO ARRAYS
--IT IS INTENDED THAT THE VALUE WILL BE EMPTY
split pArray1 with lf and empty
split pArray2 with lf and empty
--WE DO A SET OPERATION TO FIND WHICH DATA IS NEW
--DIFFERENCE IS ONLY LOOKING AT THE ELEMENT, NOT THE VALUE OF THE KEY WHEN DOING ITS OPERATION
--WHATEVER IS LEFT IN THE tArrayA3 ARRAY IS NEW
difference pArray2 with pArray1 into tArrayA3
return tArrayA3
end compareTwoArrays
on buildArray1
/* CHANGE THIS ARRAY TO MATCH YOUR TABLE */
put "Tom" into gArrayA1["firstName"]
put "Perkins" into gArrayA1["lastName"]
put "78" into gArrayA1["age"]
put "123-456-7890" into gArrayA1["phone"]
end buildArray1
on buildArray2
/* CHANGE THIS ARRAY TO MATCH YOUR TABLE */
put "555-888-0000" into gArrayA2["phone"]
end buildArray2
|
|
|
|
| searcheable / queryable arrays stored in keys? |
|
Posted by: sid - 05-16-2020, 03:30 AM - Forum: General
- Replies (2)
|
 |
Hi Guys
this is more a question im sure a lot of devs will ask.
If a dev decides to store arrays in a key within livecloud, is it then possible to run a query on the database and include results that are within the array key?
for example, if I were to store invoices as a DGData array in a key called invData, and 3 of the keys in within the stored array is productBought =20 , Customer = Sid, Item=Mask
I want to run a query looking for invoices that were made out to Sid for masks , and want only invoices where he bought over 10 masks.
this is really easy to do if each line item is stored seperately in the livecloud database, but if you store the invoice data as and array key within a key in the database , can it work?
the upside to being able to do this is that the database is nice and compact with each invoice or whatever taking up a single record ,
the downside is the queries being difficult to do, if its possible at all
The upside to storing all the line items as seperate records is the ease of search, and the ability to run really cool queries.
the downside being that individual line items will take up a record and be scattered all over the plave, resulting in zillions of records and writes to the database
Sid
|
|
|
|
| LiveCloud website updated |
|
Posted by: mark_talluto - 05-04-2020, 05:40 PM - Forum: Announcements
- No Replies
|
 |
Hi Everyone. I apologize for the LiveCloud site going down. We have been updating the site and broke it in the process. The website is fully updated and running well at this point.
We want to stress that the website and LiveCloud's network are not connected. The LiveCloud regions were not affected by the website's outage.
|
|
|
|
|