Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
22
Erster Beitrag:
vor 7 Jahren, 11 Monaten
Letzter Beitrag:
vor 7 Jahren, 10 Monaten
Beteiligte Autoren:
Rich, eps, Giu, Allard, Jimbo, Ola, jem, M. Beaven, Piet van Zanten

WinDev 15 - Run App from web site?

Startbeitrag von Rich am 19.07.2010 23:26

Is it possible to run a WinDev app from a website so that only one copy of the app exists?

Antworten:

I take it from the underwhelming number of replies that is not possible :confused:

von Rich - am 22.07.2010 22:30
Rich

Maybe a little more information on where the WinDev application is installed would help.

I'm guessing it's on a server?

Surely the easy answer would be to have a DB table.attribute which flags when the application starts,if it's not set, set it and allow the application to run. If it's set, display a message and close... On main application exit unset it... or something along those lines...

von eps - am 22.07.2010 22:41
eps,

I was thinking the exe would be on the same server that the MySQL database is on.

I am not sure how it would work. Would the exe actually run on the server or would it be downloaded to the users' computers?

What about multiple users?

von Rich - am 22.07.2010 22:54
Actually it shouldn't matter, where the executive resides.

As long as there is only one DB and they all access the same DB then a lock using a table should work. First in grabs the token and only releases it on exit. Which has been around for a very long time in computing terms.

von eps - am 23.07.2010 06:23
Quote
Rich
Is it possible to run a WinDev app from a website so that only one copy of the app exists?

Thanks,
Rich Scheuermann


I'm don't know exactly what do you want, more information could help. Where are the deploy machines? communication is LAN or WAN? You want a desktop app, or Web?

- If you are talking about share the database.
You can have an application using a local or remote database. You only need to tell the application where the database server is.

- If you are talking about a Windev Application inside a web.
AFAIK, this is not possible. You need to do Windev-Java-Applet for this. A nearer approach, is deploy with HTTP automatic updates. With this, you enter from the final machine to a website, and installs the application from there. Then, when application starts, it searchs in this website if there are some update to the application.

Probably something intermediate is to have an application communicating with WebServices to a server?

For multiuser, you can use Usergroupware thath comes with Windev, or develop your own to fit your needs.

I think more info is needed.

von Giu - am 23.07.2010 08:59
Rich,

It is definitely possibly to have a centrally-located EXE that is run as a "background" or server app via a webdev site. We are in fact doing this in an application that Fabrice designed that uploads an access .mdb file, then launches a Windev .exe to parse through the DB and import into a Hyperfile DB.

In this case the program is called by a simple ExeRun in the server code following the file upload. The executable is located in a subdirectory off the Web Directory, below is the code that is executed on the server. Both the WB and WD projects are set up as multi-platform and share a common analysis.

ExeRun(ComplèteRep(fWebDir())+"Import\webImport.exe "+sTargetDir+"toImport.mdb")



HTH-

Marc

von M. Beaven - am 23.07.2010 14:23
Marc,

What I am wondering is if I can have a WinDev 15 exe on a server along with a MySQL database that users can access and use as if it were a desktop app.

von Rich - am 23.07.2010 20:19
yes you can.

if your Mysql is linux based then you need to setup samba to allow the folder that contain exe to be share to win client

this way on windows you just map it as network drive and execute your app.


von jem - am 23.07.2010 22:41
Hi Rich,

Don't be silly, you should know better.
If that were possible, why would we still be struggling with Webdev, PHP, Flash, Ajax, Java, Silverlight, etc, etc?

Regards,
Piet

von Piet van Zanten - am 24.07.2010 09:08
Piet,

How silly of me [[1]]

von Rich - am 24.07.2010 18:57
Quote
Rich
Marc,

What I am wondering is if I can have a WinDev 15 exe on a server along with a MySQL database that users can access and use as if it were a desktop app.

Thanks,
Rich Scheuermann


Platform?

von eps - am 24.07.2010 19:49
Windows

von Rich - am 24.07.2010 20:00
If it's windows, you can install it on the server and run it from there. Drives are mapped to network ones and windows treats them as part of 'my computer' anyway.

von eps - am 26.07.2010 10:40
Quote
eps
If it's windows, you can install it on the server and run it from there. Drives are mapped to network ones and windows treats them as part of 'my computer' anyway.


This works in LAN, not WAN. And to works in WAN, a VPN is needed.

Rich, I ask you again:

- If you are talking about share the database.
You can have an application using a local or remote database. You only need to tell the application where the database server is. But an application in each machine is needed.

- If you are talking about a Windev Application inside a web.
AFAIK, this is not possible. You need to do Windev-Java-Applet for this. A nearer approach, is deploy with HTTP automatic updates. With this, you enter from the final machine to a website, and installs the application from there. Then, when application starts, it searchs in this website if there are some update to the application.

Are the machines in LAN or WAN?

von Giu - am 26.07.2010 11:13
I'm guessing LAN.. Even so it could be installed on every machine and using a shared DB access limited to one or a set number of users.

A bit more info. would help!!!

I'm still not sure what is being attempted here..

Is the intention to limit the number of concurrent users to a piece of software? or something else?

von eps - am 26.07.2010 12:08
English is not my native language, but I understand (or suppose) Rich is thinking of a setup where a Windev-exe and its (probably hyper file?) data would exist on a windows-based net server PC and then anybody in the world knowing the program's password could use it via internet...

Ola

von Ola - am 26.07.2010 12:27

Hi, YES, that's possible ! Just compile your application as a Java application / applet / web start app. Beware: There are restrictions in the command set and in the command options! However, see:
http://doc.windev.com/en-US/?9000009&name=creating-java-archive

And yes, you can use the database on your server, HFSQL or MySQL.

Kind regards,
Guenter


von Jimbo - am 26.07.2010 12:38
Ola,

Yes, this is exactly what I have in mind. :joke:

Any suggestions?

von Rich - am 26.07.2010 17:06
Hi, if you try this their will be a problem. The java applet ( or the javaprogramm, if you create a link in a website that lauches the java app directly ) will be looking for files on your desktop. You have to create a global procedure with java code. I have asked pc soft how to resolve the problem they came up with this bit of code ( Whatch out this is JAVA-code )

public static void gpjava()
{
//System.setProperty("java.library.path", " \\public_html\pensioen " );


}

This however didinot workl for me. ( the public-html\pensioen bid is the path on the linux webserver )

If you get this to work I would really like to know how you did it for I cannot get it to work like I want.


von Allard - am 26.07.2010 18:10
Quote
Allard
Hi, if you try this their will be a problem. The java applet ( or the javaprogramm, if you create a link in a website that lauches the java app directly ) will be looking for files on your desktop. You have to create a global procedure with java code. I have asked pc soft how to resolve the problem they came up with this bit of code ( Whatch out this is JAVA-code )

public static void gpjava()
{
//System.setProperty("java.library.path", " \\public_html\pensioen " );


}

This however didinot workl for me. ( the public-html\pensioen bid is the path on the linux webserver )

If you get this to work I would really like to know how you did it for I cannot get it to work like I want.


Did you readed my last post about this?

http://forum.mysnip.de/read.php?27131,70678

von Giu - am 27.07.2010 07:40
Hi

Yes I read your last post. However it doesnot work for me. Ít's a pitty but I cannot get it to work. After hours of trying if have stoped trying. I gess windev, for me, is just not the tool for making java applets.

Thanks for your time and help.

von Allard - am 27.07.2010 14:25
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.