Skip to main content
Question

New Redirect (Doredirect)

  • April 12, 2021
  • 0 replies
  • 503 views

Forum|alt.badge.img+14
Has anyone used the new 'doredirect' functionality? Are there any examples or instructions for implementing this bit of code that was updated in the last relaese?

I think the basics is ""?a=doredirect&z=" &Rurl())

but I am not sure if you have to specify the table first, or if there is a way to add that code and have it simply redirect to where the person was when they pressed the formula button?

------------------------------
Mike Tamoush
------------------------------

MarkShnierYou
Forum|alt.badge.img+24
Here is an example doing three URL calls and then refreshing the page. It's a silly example where I separately edit the same record three times, but I was just trying to test.



var text URLONE = URLRoot() & "db/" & [_DBID_PARENTS] & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_6=today";
var text URLTWO = URLRoot() & "db/" & [_DBID_PARENTS] & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_11=now";
var text URLTHREE = URLRoot() & "db/" & [_DBID_PARENTS] & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_12="
& not ([Checkbox]);

var text RefreshPage = URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();



$URLONE
& "&rdr=" & URLEncode($URLTWO)
& URLEncode("&rdr=" & URLEncode($URLTHREE))
& URLEncode(URLEncode("&rdr=" & URLEncode($RefreshPage)))

The main point is that you need his whole string to refresh the page

URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();

so, for example if it was just 1 URL to execute and Refresh the page it would be

$URLONE
& "&rdr=" & URLEncode($RefreshPage)

or else in long form that I don't use as I far prefer small code parts to debug ....

URLRoot() & "db/" & [_DBID_PARENTS] & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_6=today"
& "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl())










------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------

Forum|alt.badge.img+17
  • Community Moderator
  • April 15, 2021
Thanks so much Mark for showing those examples, we also updated our original article on redirects to include examples of how the new functions work and you can find it here. If you see any examples that would be helpful we are missing certainly let us know.

------------------------------
Evan Martinez
Community Marketing Manager
Quickbase
------------------------------