Deep link questions

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Re: Deep link questions

Postby david » Wed Jun 16, 2010 12:20 am

jmcneely wrote:That worked!!! I owe you a beer or something. Do you drink beer? THANKS!!!!


Cool, you're welcome :)

And this is how much I like beer.....

beer.jpg
beer.jpg (48.95 KiB) Viewed 5666 times
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Deep link questions

Postby ROCLASI » Wed Jun 16, 2010 9:47 am

<offtopic>
St Feuillien :D
My favorite (local) belgian beer (a couple of towns over from my place).
</offtopic>
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Deep link questions

Postby david » Wed Jun 16, 2010 5:57 pm

Lucky dude :) We like the triple so much our local pub spent months trying to get that 9-liter delivered for us.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Deep link questions

Postby joetraff » Wed Jul 14, 2010 7:29 pm

david wrote:
jmcneely wrote:Then when they click the button, they end up with a blank browser window showing, with possibly a small hint of a servoy window peeking out from behind it. There simply has to be a better answer than this. I am trying having the script execute an Applescript to force the app to the front, but that is not proving to be so simple either. I'm open to ideas, but I can't just leave it here.


Well if you're just worried about Mac clients the following trickery should work if placed at the end of your deeplinked method:

Code: Select all
var PPID = application.executeProgram('/bin/bash','-c', 'echo $PPID')
application.executeProgram('osascript', '-e', 'tell application "System Events"',
   '-e', 'set theprocs to every process whose unix id is ' + PPID,
   '-e', 'repeat with proc in theprocs',
   '-e', 'set the frontmost of proc to true',
   '-e', 'end repeat', '-e', 'end tell')

It worked just fine.
Keep up the good work.
joetraff
 
Posts: 2
Joined: Fri Jul 09, 2010 11:22 am

Re: Deep link questions

Postby jmcneely » Wed Sep 15, 2010 7:18 pm

David, you are way too funny! If we don't run into each other at some conference or something I will need your address so I can MAIL you a beer.
jmcneely
 
Posts: 45
Joined: Thu May 06, 2010 7:22 pm

Re: Deep link questions

Postby jmcneely » Tue Sep 28, 2010 8:32 pm

OK, so I upgraded to 5.2.1 on the app server. I set it in the web console as in the attachment. It no longer opens up servoy in the existing client, it opens a new client.

Screen shot 2010-09-28 at 11.04.40 AM.png
Screen shot 2010-09-28 at 11.04.40 AM.png (37.99 KiB) Viewed 5518 times
jmcneely
 
Posts: 45
Joined: Thu May 06, 2010 7:22 pm

Re: Deep link questions

Postby jmcneely » Wed Sep 29, 2010 1:03 am

you have to pass a method parameter in the deep link or it will spawn a new instance of servoy. However, if it is the first time it is launched, it will not execute the damned method. Subsequent times, it will skip all the login stuff and run the startup method. I suppose it makes some kind of sick sense, but you have to make sure it runs the called method stuff you want whether in the login/auth solutions or in the actual solution; and there is a question about where to put that because before you log in, you can't access methods in the main solution.

This new security stuff is a pain in the ass. I'm just saying.
jmcneely
 
Posts: 45
Joined: Thu May 06, 2010 7:22 pm

Re: Deep link questions

Postby pbakker » Wed Sep 29, 2010 9:51 am

Hi Jmcneely,

That the deeplink method doesn't get triggered when the Smart Client is started first time, was a bug that we found in our testing for the 5.2.2 release and thus is is fixed in 5.2.2 release, which was released yesterday.

The behavior of firing the deeplink method hasn't changed for a long time (I think it's been like this since 3.5 and maybe earlier): the deeplink method gets fired after successful login and after the firing of the onOpen method of the solution.

I'm not sure where your comment on the new security stuff is coming form, as it's completely not related to anything has to do with deeplinking.

Regards,

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Previous

Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 22 guests

cron