Forum Discussion
XavierFan
11 years agoQrew Cadet
No problem. (channeling you here) =)
Basically - you want to replace this line:
"$.jGrowl('email Triggered to Prospect', {life: 5000});" &
with
"location.reload(true);" &
From the jQuery API documentation for $.get: https://api.jquery.com/jQuery.get/
The function being defined is the success function - that is executed if the request succeeds.
So instead of executing the Growl call in the success function, you execute the page refresh call.
I tested this on a test app, and it works even on reports with dynamic filters set.
Let me know if this works for you.
The formula URL would look something this (I used an EditRecord in my test as an example):
var text URL= URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_EditRecord"
& "&rid=" & URLEncode ([Record ID#])
& "&_fid_7=" & URLEncode ([Status])
& "&apptoken=" & "XXXX";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);
Basically - you want to replace this line:
"$.jGrowl('email Triggered to Prospect', {life: 5000});" &
with
"location.reload(true);" &
From the jQuery API documentation for $.get: https://api.jquery.com/jQuery.get/
The function being defined is the success function - that is executed if the request succeeds.
So instead of executing the Growl call in the success function, you execute the page refresh call.
I tested this on a test app, and it works even on reports with dynamic filters set.
Let me know if this works for you.
The formula URL would look something this (I used an EditRecord in my test as an example):
var text URL= URLRoot() & "db/" & [_DBID_TABLE_1] & "?act=API_EditRecord"
& "&rid=" & URLEncode ([Record ID#])
& "&_fid_7=" & URLEncode ([Status])
& "&apptoken=" & "XXXX";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);
QuickBaseCoachD
7 years agoQrew Captain
As far as I know you can refresh the page or jgrowl. Not both.