Original Message:
Sent: 03-06-2023 21:07
From: Mark Shnier (Your Quickbase Coach)
Subject: Trying to redirect back to report
np, you need a two step button to do your edit and then refresh the page.
var text URL = URLRoot() & "db/" & Dbid() &
"?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&_fid_34=" & true &
"&_fid_35=" & Now();
var text RefreshPage = URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();
$URL
& "&rdr=" & URLEncode($RefreshPage)
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
Original Message:
Sent: 03-06-2023 18:13
From: Julie Meeker
Subject: Trying to redirect back to report
I have a button that sets a checkbox and a timestamp and I would like to redirect back to the report. I have added the native return to where you cam from but I get an error. Here is my formula:
URLRoot() & "db/" & Dbid() &
"?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&_fid_34=" & true &
"&_fid_35=" & Now()&
"&z=" & Rurl()
Here is the error:
<qdbapi>
<action>API_EditRecord</action>
<errcode>0</errcode>
<errtext>No error</errtext>
<rid>3028</rid>
<num_fields_changed>1</num_fields_changed>
</qdbapi>
When I put in the statement to redirect to the saved record, it works. It is setting the fields so the edit is working. How can you redirect back to the report that the button was clicked from?
------------------------------
Julie Meeker
------------------------------