Search…
⌃K
Links

waitForSync

To return Yes (true) if the database is synced with the Ninox cloud
With this function, you attempt to synchronize your data with the Ninox cloud.
If the attempt to synchronize your data with the cloud is not possible, it will return No (false). This could be the case if you have no internet connection when using a native app.
It will return Yes (true) if the data is already synchronized or the attempt was successful.
On the web app, this function will do nothing and always return Yes (true). It also has no effect and returns Yes (true) if executed on the server side, e.g. in a do as server block.
This function doesn't work in a formula field because it's modifying data.

Syntax

waitForSync()

Return

boolean

Examples

Add this script in a button.
1
if waitForSync() then
2
alert("Synchronization completed!")
3
else
4
alert("Wait! Ninox is not done yet.")
5
end
Result: Depending on the state of the synchronization, you will receive one or the other alert message.
Last modified 2mo ago