Can you sync data from desktop to device?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jpottsx1
Posts: 46
Joined: Thu Jun 04, 2009 12:46 am
Contact:

Can you sync data from desktop to device?

Post by jpottsx1 » Thu Aug 11, 2011 2:38 am

Sorry for the silly question, but is their two way synchronization of your data between the iOS and the desktop when using sqlite or other databases? I was looking for something that worked like data synchronization on the Palm OS or Windows Mobile.

Thanks
Jeff G potts

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Can you sync data from desktop to device?

Post by Mark » Thu Aug 11, 2011 9:55 am

Hi Jeff,

You can make a server and a client app that exchange data.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jpottsx1
Posts: 46
Joined: Thu Jun 04, 2009 12:46 am
Contact:

Re: Can you sync data from desktop to device?

Post by jpottsx1 » Thu Aug 11, 2011 4:48 pm

Sounds simple enough, but as a rank amateur programmer, what would that entail? Has anyone done this? Are there any examples to follow?
Jeff G potts

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Can you sync data from desktop to device?

Post by Mark » Thu Aug 11, 2011 5:26 pm

Hi Jeff,

First, you need to understand how sockets work. Here's a very simple and basic example.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jpottsx1
Posts: 46
Joined: Thu Jun 04, 2009 12:46 am
Contact:

Re: Can you sync data from desktop to device?

Post by jpottsx1 » Sat Aug 13, 2011 8:29 pm

I guess this solution is a little too complicated for a newbie.

I thought maybe someone had already done this before.

Jeff
Jeff G potts

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Can you sync data from desktop to device?

Post by Mark » Sat Aug 13, 2011 8:42 pm

Hi Jeff,

Synchronisation is always something rather specific. There is no general solution. One way or another, you'll need to learn how to use sockets.

An alternative way could be to synchronise withi a DropBox folder. That would only require a way to download the data. Perhaps you can use the put url command, if that's supported on iOS already.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jpottsx1
Posts: 46
Joined: Thu Jun 04, 2009 12:46 am
Contact:

Re: Can you sync data from desktop to device?

Post by jpottsx1 » Sun Aug 14, 2011 12:36 am

So from the link to the Telnet example, I assume then that I am trying to telnet to the device and through this connection act upon the desired files?

Jeff
Jeff G potts

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Can you sync data from desktop to device?

Post by Mark » Sun Aug 14, 2011 10:14 am

Hi Jeff,

No. This is just an example to show you how sockets work. Once you understand that, you can start thinking of how to synchronise data.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply