PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Connect Windev Mobile project
Connect Windev Mobile project
Iniciado por guest, 09,feb. 2015 22:30 - 4 respuestas
Publicado el 09,febrero 2015 - 22:30
Hello all,

I have à windev project with the HF/classic database. Now i'm thinking about making à mobile app for à tablet/phone. I have never worked with Windev Mobile. What is the best way to connect to my windev project database wich is on à local pc or à network server.
I want to acces the database to view it and to add à picture or something.
Publicado el 10,febrero 2015 - 10:07
Hi Sammy

the best way is to create a web service. It can be soap or rest depending on your preferences (I prefer rest). If the mobile device connect only 'in house' a local webservice is enough, and it can access the HF classic DB...

If the mobile device has to connect when outside of the lan, then you either need a URL to redirect to your local server, or a replicated set of data on a web server

Best regards
Publicado el 10,febrero 2015 - 20:46
Sammy,
I agree with Fabrice about using a webservice (or webpage) to do the database handling.
Using this extra layer gives you a lot of options to parse the data, do logging, etc before it goes into the database.
This way you can also "trace" more or less what the tablets are doing, without the need for the actual device.
And whenever your db structure changes, this middleware can "jhide" these chagnes from your tablet. Which prevents you from the need to update the talets as well, whenever the database changes. Very handy is certain situations.

That said: you can also choose to convert the HF to a HFCS and connect from the tablet directly to the db. Personally I would do that only in very simple situations. Like in yours where everything is in house?
Publicado el 12,febrero 2015 - 19:16
Thank you Fabrice and Arie!

Need i Webdev also to make the webservice or can i do this with Windev and Windev Mobile?
Publicado el 12,febrero 2015 - 20:51
Sammy,
you can make a webservice with WINdev.
To run the service (on a webserver with IIS of apache) you need a webdev ENGINE (bunch of DLLs and a administration tool)/
You can download it for free an use up to 10 concurrent users. If you need more then you can get a 299 euro license from pcsoft. (but still don't need webdev itself).