Forum Discussion
var text chk = "&_FID_34=";
var text tk = "token";
"<a class='Vibrant Alert' & href=" &
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&apptoken=" & $tk & "&rid=" & [Record ID#] &
$chk & "1" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#])
& ">Check and Refresh</a>"ā
Just update the FID and the Token in the Var's and you should be good to go.
------------------------------
Blake Harrison
bharrison@datablender.io
DataBlender - Quick Base Solution Provider
Atlanta GA
404.800.1702 / http://datablender.io/
------------------------------
Hi Blake,
Thank you for the response! While this does work, it always redirects back to the form.
This button appear on several reports and I was hoping that the user could click on the button, and then have the page refreshed so that they can see the other options that appear on that report as a result.
------------------------------
Peter Rebholz
------------------------------
- hhersch4 years agoQrew CaptainThe best way to handle this today in a supportable fashion is making multiple buttons. However, we will add some capabilities to formula-url buttons to better handle a redirect.
------------------------------
Harrison Hersch
------------------------------- PeterRebholz4 years agoQrew Member
Ah, I was afraid that might be the case.
Then I think for the moment I the best option is to investigate the browsers that the users are working in and see if we can get them to switch over.
Thank you everyone for all your help!
------------------------------
Peter Rebholz
------------------------------ - BlakeHarrison4 years agoQrew CaptainPeter -
I agree with Harrison and have had this exact use case within a client's app. In these instances, I build individual buttons for each use case, slightly modifying the RDR for each one. If you're going to redirect to a report, it would just be a matter of changing the report ID for each button.
var text chk = "&_FID_34=";
var text tk = "token";
var number qid = #;
"<a class='Vibrant Alert' & href=" & URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&apptoken=" & $tk & "&rid=" & [Record ID#] & $chk & "1" & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=q&qid=" & $qid) & ">Check and Refresh</a>"
ā
------------------------------
Blake Harrison
bharrison@datablender.io
DataBlender - Quick Base Solution Provider
Atlanta GA
404.800.1702 / http://datablender.io/
------------------------------- PeterRebholz4 years agoQrew Member
Turns out that it's happening in Firefox too, which is odd.
I may well have to go the multiple buttons route then. Thanks for the sample code, Blake. Just varying the report number as a variable should help reduce the messiness of multiple buttons.
Thanks!
------------------------------
Peter Rebholz
------------------------------