I use a computed link hotspot to use a javascript function ! this works great !
But I would like to call this function from a button in an action bar (on the form), and I don’t know how to this ! I cant copy the “computed formula”
in my button fomula action !?
here is the computed formula I have on my link hotspot :
“javascript:sendSMS(´”+ @Text(@DocumentUniqueID)+“´”
and here is my javascript functions :
function sendSMS(noUnique)
{
windowOpener(getCurrentDBName() + ´/WSMS?OpenForm&´ + noUnique , ´EnvoiSMS´, ´toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=200 top=10 left=10´
}
popupWins = new Array();
function windowOpener(url, nom, arguments)
{
if ( typeof( popupWins[nom] ) != “object” )
{
popupWins[nom] = window.open(url,nom,arguments);
}
else
{
if (!popupWins[nom].closed)
{
popupWins[nom].location.href = url;
}
else
{
popupWins[nom] = window.open(url,nom,arguments);
}
}
popupWins[nom].focus();
return popupWins[nom];
}
thanks in advance
Fabian