I'm trying to open a Servoy solution from FileMaker and pass a value to it to set a global variable. I've been told this is possible using a deeplink.
I've got a URL like this:
"172.18.72.xxx:8080/servoy-client/RIS_archive.jnlp?m=start_remote&a=bob|pw|P999990"
The behavior I want is for it to open a servoy window directly with no browser pop-up, and if it is already open, to simply update the IdPatient variable in Servoy with the P999990 string.
Now, if I open this URL from FM it simply opens a browser window and downloads the a file from the servoy app server; I have to manually click it. Furthermore, if the solution is already open, it doesn't update the value, it simply refreshes with the initial value.
I have tried this for the 'start_remote' function in servoy:
================================================
function start_remote(user, password, patient_id)
{
var sa_args = application.getStartupArguments();
var sa_seed = sa_args[0];
var sa = utils.stringReplace(sa_seed,"|"," ");
var sa_user = utils.stringLeftWords(sa,1);
var sa_pw = utils.stringMiddleWords(sa,2,1);
var sa_idpatient = utils.stringRightWords(sa,1);
globals.IdPatient = sa_idpatient;
application.showForm('a0100__Patient__Appt_nav');
}
===============================================
Also, in the servoy-admin web console, I have set servoy.allowExistingClientActivate: to true.
Any help is appreciated!