PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Replication and Windows Phone
Replication and Windows Phone
Started by John Fligg, Sep., 24 2017 5:27 PM - 14 replies
Posted on September, 24 2017 - 5:27 PM
I have an app developed for Windows Phone.

I have overcome most of the restrictions but I have 2 major headaches which are related.

1. There is no FTP command in W10
2. I use Replication but without FTP this cannot work. How can you perform replication using W10 Phone and an HFSQL database?

Without these I do not see how you can build any meaningful business app using the PCSoft tools.

If anyone has any thoughts and even some example code it would be very much appreciated.

Thx.
Posted on September, 24 2017 - 6:27 PM
Hello John,

Fabrice Harari has a open source replication example.

http://27130.foren.mysnip.de/read.php…

DW
Posted on September, 24 2017 - 9:07 PM
Hi

and it uses only a httprequest for the communication (Available nearly everywhere)

Best regards
Posted on September, 25 2017 - 10:04 AM
Many thanks Fabrice. But how do I download it? I eventually found the page but when I click on Download it requests that I login to view a video. Thx.
Posted on September, 25 2017 - 1:10 PM
Hi John

the "view a video" part is incorrect...
However, the 'login' part is correct.

So you need to create an account (free) if you don't already have one, login, and click on download again

Best regards
Posted on September, 25 2017 - 2:41 PM
Thanks Fabrice. Does this work for iOS and the latest Universal apps?
Posted on September, 25 2017 - 3:27 PM
Hi

iOS: yes (but I'm not sure the last published version contains the small change needed for that one (a utf8tostring conversion)
Universal apps/windows phone: not tested. Considering the size of THAT market, I haven't bothered spending the time.

However, you can at least use that example for the communication process, as httprequest DOES work in that environment.

Best regards
Posted on September, 26 2017 - 9:48 AM
Fabrice please forgive me. I have never used HTTPRequest and looking it up had a thought.

I have extensive code myself for Windows, Android and iOS to deal with Universal Replication. I do not use the automatic tools from PCSoft. So that side of things is sorted and works perfectly. My ONLY problem is the transportation method in Universal Apps.

So I wondered, can HTTPRequest handle sending a file to and from the server? Universal Replication creates a relatively small file and wondered if I could transmit that either way? That's all that is needed. Local and Web Service code handles the rest.

Thx

John
Posted on September, 26 2017 - 10:03 AM
John,

in that case I guess using HTTPDestination() together with HTTPRequest() will do. Check the help for an example.
You have to make sure your replication-file is somewhere on a webserver and then you can grab it from there using these 2 commands..
Posted on September, 26 2017 - 10:10 AM
Ah thanks so much. Yes the Replication file is on the Web Server ready to transmit to the local device and on the local device ready to transmit to the server. Both the local code and Web Service then run the Re0plicaiton commands respectively.

John
Posted on September, 26 2017 - 1:16 PM
Hi John

as I was saying in an earlier post, WXReplication uses httprequest to send and receive data.

What is sent is the content of a buffer and it of course doesn't matter what that content is.
Therefore, you just need to use floadbuffer/fsavebuffer to manage the file aspect, and the httprequest will do the rest.

Best regards
Posted on September, 27 2017 - 1:40 PM
Hi again John

one other reason why I didn't invest any time in windows phones: Even Microsoft is abandonning them:
http://money.cnn.com/2017/09/26/technology/bill-gates-android-phone/index.html

Best regards
Posted on September, 27 2017 - 2:35 PM
OMG. Thank goodness I paid very little for my new MS phone. How very frustrating.

Thx

John
Posted on September, 27 2017 - 2:56 PM
Quote
Fabrice

one other reason why I didn't invest any time in windows phones: Even Microsoft is abandonning them

You're absolutely right. But Windows Universal Apps will replace it in the end...
The ultimate goal of Microsoft is having one application running on any form factor and platform (Intel<>ARM). Therefore: Universal.
The XAML (or HTML) based UI (in case there is an application UI) will just adapt to the form factor of the device, whatever it maybe.

Currently I'm for a specific IoT project building even standard C# apps running even on Raspberry PI (ARM) on Windows IoT (Another community driven M$ freebie) using .Net Core. Windows IoT

IMHO Apple will eventually be doing something similar and roll-out their iOS to be any Apple device compliant (Even laptops and desktops) as its new OS and phase out OSX one day.

The direction Microsoft is taking since Sathya Nadella is the new CEO is promising in many ways aiming for a true platform (.Net Core) that natively runs on any (most) processor architecture and on multiple operating systems using the same code.

To be continued...

Cheers,

Peter
Posted on October, 05 2017 - 7:25 AM
Quote
Peter Holemans
The direction Microsoft is taking since Sathya Nadella is the new CEO is promising in many ways aiming for a true platform (.Net Core) that natively runs on any (most) processor architecture and on multiple operating systems using the same code.



To be continued...
That is interesting. You mean to say that MS's .Net core will compile an app for any OS?