Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 40 online users. » 0 Member(s) | 39 Guest(s) Google
|
Latest Threads |
using cdb_auth with Live...
Forum: General
Last Post: JereMiami
12-19-2024, 01:58 AM
» Replies: 0
» Views: 35
|
BLOBs - not possible to a...
Forum: General
Last Post: stamatis
10-06-2024, 06:28 PM
» Replies: 0
» Views: 262
|
Allow users to change the...
Forum: General
Last Post: mark_talluto
01-18-2024, 01:09 AM
» Replies: 8
» Views: 11,445
|
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,254
|
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,937
|
CDBCache sync from local ...
Forum: General
Last Post: Hendricus
01-29-2023, 09:39 PM
» Replies: 2
» Views: 2,780
|
|
|
COVID-19 - Canela's Continuity Plan |
Posted by: mark_talluto - 04-02-2020, 04:49 PM - Forum: Announcements
- No Replies
|
|
We are all facing strange and challenging times. Just like you, we're concerned about the COVID-19 pandemic. We are here to support our customers and communities. Our work environment has changed a bit to secure the safety of our team members. We are working from home and using various technology tools to maintain a high level of productivity. Our phones are directed to our homes so you can still reach us. Please feel free to contact us via email or phone.
We appreciate your continued support of our products and services. Your impressive work inspires us to be the best we can be. LiveCloud is one of those critical services that empower developers to make products and services to better support your customers. With more people working from home, cloud technologies are more important than ever.
Canela is maintaining the same level of diligence in keeping the LiveCloud service stable and reliable. We are improving the technology daily and pushing updates to you when they are ready. You and your customers can rely on us as your database and backend of choice.
COVID-19 is a world problem. In times like this, we can see humanity at its best. With everyone working through this together, we get a sense of world community. United, we are a force that will see this through.
|
|
|
Version 2.5.7 Released |
Posted by: mark_talluto - 04-01-2020, 10:28 PM - Forum: Announcements
- No Replies
|
|
######## VERSION 2.5.7 (2020/04/01)
News: IMPORTANT CHANGES! While not required, it is highly suggested that you export the Toolkit to take advantage of the changes mentioned in this update.
- - - - - - - - - -
Bugfix: cdb_auth will build a new hardwareID if the local file that holds this value is empty.
Bugfix: We changed internal use of codeUnits back to chars. CodeUnits may have negative effects that are not intended. Chars is still a valid command and more accurately reflects what we need.
Improved: cdb_importJSON has been improved to support importing data from older versions of LCM. Special formatting of JSON data must be observed. Please see the documentation for more information.
Improved: cdb_importJSON and cdb_importCSV will automatically build missing keys from your schema of imported data.
Improved: cdb_importJSON and cdb_importCSV will maintain cdbRecordIDs if they are present in the data being imported. This is helpful if you want to maintain database relationships.
Improved: cdb_importJSON and cdb_importCSV will now get an SDK update automatically to ensure we have the last information on table keys for a given table.
Improved: cdb_addKeys, cdb_createTable, cdb_renameKey will not be as restrictive in its illegal char check. We will now allow colons in key names.
Improved: LCM is more efficient when importing CSV and JSON data by removing a final sync that is no longer needed.
As you can see, this update comes with some big improvements to JSON and CSV import. You no longer need to build your keys before importing data. The API will handled it all for you. Other useful tidbits are in there as well. The docs are going to need an update to match the changes. That will come soon.
Enjoy the update!
|
|
|
Query cloud, modify a single key, update cloud |
Posted by: mark_talluto - 04-01-2020, 05:49 PM - Forum: Code Samples
- No Replies
|
|
This code will demonstrate how to query cloud data for a specific key and value. It will then update that value for all the matching records and update the cloud.
Code: on mouseUp
local tInputA, tOutputA, tUpdatedLastName, tTableID
put "Franklin" into tUpdatedLastName
put cdb_tableID("Agents") into tTableID
--QUERY FOR MATCHING DATA
put cdb_query("lastName","=","Talluto","Agents","cloud","recordList") into tOutputA
--REPEAT THROUGH EACH RECORD AND UPDATE THE 'lastName' VALUE FOR EACH RECORD FROM THE QUERY
repeat for each line xRecordID in tOutputA
put tUpdatedLastName into tInputA[tTableID][xRecordID]["lastName"]
end repeat
--UPDATE DATA IN THE CLOUD
cdb_batchUpdate tInputA, "cloud"
end mouseUp
|
|
|
Batch_update a specific key in a number of records |
Posted by: sid - 04-01-2020, 02:11 PM - Forum: General
- Replies (3)
|
|
Hi Guys
I am getting along well , but ran into a bit of a problem.
I have an exchange rate table and want to batch update all of the selected keys with a given value (its the same value )
so here is the code I used ,
First a query getting the records I need and placing all the record ID's into an array. (list Query)
The Message Box says the records don,t exist.....but they do, Am I missing a repeat string here? or is this code completely wrong?
The aim is basically to mass edit a specific key in a selected number of records . (change all the values in the key to the one specified)
Code: local tExchangeInput, tExcCode, tTarget, tcurrencyTypesTableID, tDataE
global gDefaultCurrCountry, gDefaultCurrCode
on mouseUp pButtonNumber
put field "exchangeInput" into tExchangeInput
put "cloud" into tTarget
put cdb_tableID("currencyTypes") into tcurrencyTypesTableID
local tInputA, tOutputA
put cdb_query("currencyCode","=",gDefaultCurrCode,"currencyTypes","cloud","recordList") into tOutputA
put tExchangeInput into tDataA[tcurrencyTypesTableID][tOutputA][exchangeRateNative]
cdb_batchUpdate tDataA,tTarget
end mouseUp
This is a copy and paste from the message box:
(2020-04-01 15:55:00.207): The specified cdbRecordID is invalid: 0786d7b9-55fd-4e15-8287-ea8c5a790af0
27669565-562d-49ea-b653-e3b88857836d
4fb57c38-1aff-4eb8-a7a9-6539adac879e
644ba8a1-98a0-45f2-afc6-3275772684e1
66ce54b7-ae36-48a1-8cd6-e6959bf29113
680b85ff-3b81-47fa-88e1-a64d5728f8bd
735df545-4105-4b5c-ba03-a6d3d261ce3f
795d0ba2-e5ed-4e6f-b349-36b41a647259
98493da8-2e6f-4b2d-ae79-51563ba7ab39
a654bda3-2eca-438f-b5f6-44dc3edc1cdc
fefdb650-015d-4543-a22b-313d3ffe6580
these actually do exist.
Also is there a way to use a checkbox in a datagrid row that can mass edit the records that are checked. It would be great if you can put up an example in the datagrid part of the forum for that. A lot of people will find both of these very useful
Thanks again,
Sid
|
|
|
Canela Best Practices |
Posted by: mark_talluto - 03-31-2020, 05:31 PM - Forum: Announcements
- No Replies
|
|
Every once in a while, we update our best practices document. Our current version is available from this link:
http://www.canelasoftware.com/pub/canela...ctices.pdf
The outline for the document is:
- Programming Style
- 3rd Party Tools
- In-House Tools
- Download Links to Internal Tools
The main takeaway would be to use strict compilation mode and follow certain variable naming conventions.
If you are curious about the tools we use to manage our studio, we list the chief services we find to be invaluable.
If you have any questions about our choices, please feel free to respond here. If you have some you would like to add for everyone's benefit, please write about them here.
|
|
|
Could not read from server cache |
Posted by: Bizbuzz - 03-26-2020, 02:50 PM - Forum: Bug Reports
- Replies (1)
|
|
It's not a bug, but "Could not read from server cache" and reading / contacting instance directly seems to take longer time ...
I know I've read something about the cache before... Anyway to reset that, or what do we do if we find that the cache can not be read?
Br /John
|
|
|
cdb_list() doc has been updated |
Posted by: mark_talluto - 03-16-2020, 05:05 PM - Forum: Announcements
- No Replies
|
|
The function for getting a list of anything from recordIDs to any combination of keys in your table is: cdb_list()
After the rework on the API, we needed to come back an update the docs to explain how to use this API.
https://docs.livecloud.io/List/
This API is unique in that it does not return an array. It is instead a very simple line delimited string. You might find this useful for getting all the recordIDs of a table. Or, you may store data that is used to build text in your UI. The output of this API could be directed to the text of the control without any cleaning. You may want to sort the data if that is important.
It could also be used to count duplicate values. Build an array from the list and have an accurate count of how many of a given value are duplicates.
--GET LIST OF FIRST NAMES IN TABLE Customers
--ACCESS DATA IN THE CLOUD
--FROM THE KEY firstName
put cdb_list("Customers","cloud","firstName") into tOutput
--REPEAT THROUGH THE STRING AND COUNT EACH NAME
repeat for each line xLine in tOutput
add 1 to tCounterA[xLine]
end repeat
The value of tCounterA might look something like this:
tCounterA["Joe"][3]
["Julie"][4]
["Rick"][8]
|
|
|
New API: cdb_importJSON() |
Posted by: mark_talluto - 03-12-2020, 04:14 PM - Forum: Announcements
- No Replies
|
|
You can now import JSON files into your apps programmatically. More modern systems will support JSON export. This new API allows you to integrate with such systems and bring their data into your app.
You can find the doc here: https://docs.livecloud.io/ImportJSON/
You will need to export the toolKit to your project to gain access to this API.
|
|
|
Security message from Digital Ocean |
Posted by: mark_talluto - 03-11-2020, 07:29 PM - Forum: Announcements
- No Replies
|
|
Hi Everyone. When we receive security updates from our data center providers, in this case, Digital Ocean, we want to pass the information to you. If you have any questions, please let us know. The quick takeaway is that Digital Ocean is on top of the recent security threats to datacenters and that we all benefit from their diligent efforts.
We wanted to provide some detail around three new security vulnerabilities and how they could impact your Droplets. These include the Load Value Injection vulnerability, also referred to as LVI, TRRespass, a Rowhammer-type vulnerability, and Snoop-assisted L1 Data Sampling, a L1TF-type vulnerability.
- Load Value Injection. This vulnerability could allow data stored in an Intel SGX enclave to be leaked. Fortunately, DigitalOcean does not use SGX in our production environment. Our infrastructure is not affected, and there is no action required to protect your Droplets.
- TRRespass. This vulnerability could potentially allow attackers to gain privileged access to certain systems using DDR4 memory, though targeting a specific system is very difficult in cloud environments. We are currently working with our hardware manufacturers to evaluate the scope of this vulnerability in our infrastructure and will provide updates if any action is required on your end.
- Snoop-assisted L1 Data Sampling. This is similar to other L1TFvulnerabilities we’ve seen previously. The mitigations we already have in place sufficiently address this vulnerability, and no further action is required to protect your Droplets.
[size=undefined]
Additionally, we’re excited to share that we have finished deploying the mitigations across our fleet for the two Processors Data Leakage security vulnerabilities recently disclosed by Intel. As a reminder, there is no action required from users to protect their Droplets from these two vulnerabilities.
The security of our platform and your data is our highest priority. Thank you for being a DigitalOcean customer and if you have any questions please open a ticket with our Support Team.
Thanks,
Team DigitalOcean
[/size]
|
|
|
|