Deeplink from foxpro to servoy ??

Forum to discuss the Web client version of Servoy.

Deeplink from foxpro to servoy ??

Postby abeermann » Mon Jun 02, 2014 9:15 am

Hello Everybody

I tried to start a servoy webclient solution from a foxpro programm.
I tried 3 different ways.
All work with normal websites?

a)
with THISFORM._shellexecute1
.shellexecute("https://pug-webapp.piepenbrock.de/servoy-webclient/ss/s/mySolution",,"open")
endwith

Servoy shows the logininform.
After entereing user+pass the main form of the solution pops up for some milliseconds and then servoy ends immmediately ???
(=select a solution)

or
b)
* Shell object
lcUrl = "https://pug-webapp.piepenbrock.de/servoy-webclient/ss/s/mySolution"
oShell = CREATEOBJECT("Shell.Application")
oShell.Open(lcUrl)

the loging form pops up for some milliseconds and then servoy ends immmediately ???
(=select a solution)

or
c)
l_wohin = "https://pug-webapp.piepenbrock.de/servoy-webclient/ss/s/mySolution"
loHyperlink = CREATEOBJECT("hyperlink")
loHyperlink.navigateto(l_wohin)

the loging form pops up for some milliseconds and then servoy ends immmediately ???
(=select a solution)


How to call a servoy solution from an Foxpro exe??
Best regards
Albert
abeermann
 
Posts: 106
Joined: Fri Nov 26, 2010 12:46 pm

Re: Deeplink from foxpro to servoy ??

Postby kwpsd » Tue Jun 03, 2014 7:19 pm

Hi, Albert.

Have you considered using the VFP RUN command?

Code: Select all
RUN [/N] WindowsCommand | ProgramName


You can view the RUN command details using the VFP help mechanism.

We use the VFP RUN command to launch a Windows batch file wherein the batch file contains the commands to launch the external program (in your case, a browser).

Does this help?
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: Deeplink from foxpro to servoy ??

Postby robert.edelmann » Wed Jun 11, 2014 9:14 pm

Assuming that
Code: Select all
with THISFORM._shellexecute1
.shellexecute("https://pug-webapp.piepenbrock.de/servoy-webclient/ss/s/mySolution",,"open")
endwith

somehow tries to use shell32.dll, I could open the Solution effortlessly with the following:
Code: Select all
mdatei="http://site.de/servoy-webclient/ss/s/solution"
declare ShellExecute IN shell32.dll Integer, String, String, String, String, Integer
ShellExecute(0,"",mdatei,"","",1)

and it remained open after logging in.
mit freundlichen Grüßen
Robert Stefan Edelmann
User avatar
robert.edelmann
 
Posts: 91
Joined: Wed Aug 14, 2013 6:12 pm

Re: Deeplink from foxpro to servoy ??

Postby omar » Thu Nov 03, 2016 5:25 pm

It's been a while since this was posted but I figured it wouldn't hurt to still answer it. There are two things you need to consider when doing this:

a. That your variable does not go out of scope.
b. That you need a READ EVENTS in VFP to prevent the Foxpro program from ending prematurely.
Intrasoft, Founder
Omar van Galen
omar@intrasoft.nl
+31-(0)6-21234586
Servoy Developer
omar
 
Posts: 377
Joined: Sat Feb 12, 2011 4:51 pm
Location: Intrasoft, The Netherlands


Return to Servoy Web Client

Who is online

Users browsing this forum: Bing [Bot] and 11 guests