Forum Discussion
TonyTony1
9 years agoQrew Cadet
Hi Everyone:
Would this be sufficient to have the auto refresh happen?
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
Or does it need the everything that proceeded? This is what my existing button looks like:
var text pdfid = Case([Company], "UMB", "8", "9");var text fname = Case([Company], "UMB", "UMB Assignment Form", "Assignment Form");
"javascript:void(window.open('" &
"https://www.aws-juiced-client2.com/CompleteMedical_946/PDF Stamper/Default.aspx?"
& "clientid=Q946"
& "&appid=bkkhaw4q7"
& "&msdb=" & Dbid()
& "&msid=" & [Patient Number]
& "&tpdbid=" & [_DBID_DOCUMENT_TEMPLATES]
& "&tpid=" &$pdfid
& "&faid=444"
& "&apptoken=cidsvuqba48bsbbdntgghv5dzec"
& "&fn="&$fname
& "&pdfdte="
& "&rsfid=14"
&"','copy','top=40,left=320,width=730,location=no,menubar=no,toolbar=no,status=yes'))"
So should I just add the javascript after that?
Thanks in advance!
Would this be sufficient to have the auto refresh happen?
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
Or does it need the everything that proceeded? This is what my existing button looks like:
var text pdfid = Case([Company], "UMB", "8", "9");var text fname = Case([Company], "UMB", "UMB Assignment Form", "Assignment Form");
"javascript:void(window.open('" &
"https://www.aws-juiced-client2.com/CompleteMedical_946/PDF Stamper/Default.aspx?"
& "clientid=Q946"
& "&appid=bkkhaw4q7"
& "&msdb=" & Dbid()
& "&msid=" & [Patient Number]
& "&tpdbid=" & [_DBID_DOCUMENT_TEMPLATES]
& "&tpid=" &$pdfid
& "&faid=444"
& "&apptoken=cidsvuqba48bsbbdntgghv5dzec"
& "&fn="&$fname
& "&pdfdte="
& "&rsfid=14"
&"','copy','top=40,left=320,width=730,location=no,menubar=no,toolbar=no,status=yes'))"
So should I just add the javascript after that?
Thanks in advance!
- MCFNeil9 years agoQrew CaptainI could be wrong, but I don't think you can run 2 JavaScript actions in one button...
In this situation I don't think you'll be able to use the standard reload with this.
You main formula is already using a "window.open" call, so you would need to include a close function as part of that main call.
something like
{if (a.closed) {window.location.reload();}}
but I'm not 100% of the syntax in your situation.