Hi Augustin,
the correct JavaScript call to make would be
syncDatabase();
That's generated for you into database.js, and includes embed points and so on.
You can attach JavaScript to any menu item, by setting the onClick (JavaScript) template option (on the Click tab of the menu item settings.)
In this case just set it to
'syncDatabase();'
for additional credit you can add a display field to your footer to show the "last sync time". In my app I not only show the time, but if you press on that time it does an immediate sync. And I've also tweaked the "busy graphic" so the user can see both the progress, and status of the sync.
All of this will be covered in my training this year at CIDC (along with a bunch of other stuff) but if you need to see it a bit sooner then ask in a webinar and I'll show you what I've done.
cheers
Bruce
cheers
Bruce