I’ve made a Servoy Solution in which I use the browser bean to show a webpage I made. Now I would like to be able to make a link in my webpage that triggers a method in Servoy.
I’ve tried using deeplinks, but that doesn’t work properly. Above that I don’t want to start another Servoy instance. Servoy is already running and displaying my webpage in the browser-bean.
I noticed a weird thing that may be why the other solution is opened on the deeplink.
When I click “smart client launch” from my solution in Servoy Developer the other solution appears in the Servoy Client.
When I have the right solution opened in the Servoy client and I click the (deep)link in the browser-bean the same (wrong) solution is opened after 3 error messages.
In the solution settings I changed the type from module to normal. Now the link opens the right solution-screen and executes the global method I specified. (I only get the message “failed to copy argument”).
The solution is opened in a new Servoy Client window. I actually want it to change the page of the opened Servoy Client.
I actually want it to change the page of the opened Servoy Client.
Is there a way to do that?
I don’t think so, you are opening a new solution from the browser and not telling Servoy to open a new solution.
I don’t know what/why you do this but why don’t you attach the other solution a module and start it from a form with a button/buttons which in turn start the startup method of that solution
and you are firing this deeplink-method from developer? or really from the client?
From which I understand, if the (localhost) client is already open it should not open a second one!
I do open the link in Servoy Client. Though I fire it from a link in the web-page, in de browser-bean in Servoy Client. Maybe that causes it to open another window??
yeah, but should not matter.
As fas as I understood it, you can launch a deeplink from anywhere (for instance from you local OS scheduler) and than the client should not open twice, but the already opened client should receive this.
What happens if you do this: (make sure every client is closed)
1.) fire a deeplink in your local browser with a method and argument(the client should open, right?)
2.) fire the same deeplink in your local browser. Does Servoy starts a new client?
When i fire the deeplink from my local browser Servoy client opens (actually… it only opens if i still have servoy developer running).
After that when i fire the same link from the same local browser another Servoy client opens.
The way i see it the deeplink always tries to open a new Servoy Client. It will fail if the developer isn’t running.
Hmmm… I do this from a real server, not via developer.
But the difference to Jasper is, that I fire the link from local Browser (outside Servoy Client) and not via Browser Bean (inside Servoy Client). Could this be the problem?