When I do the Refresh page I treat it just link another URL call so it gets the nested syntax for successivee URL calls.
var text RefreshPage = URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();
$URLONE
& "&rdr=" & URLEncode($URLTWO)
& URLEncode("&rdr=" & URLEncode($RefreshPage))
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.commark.shnier@gmail.com------------------------------
Original Message:
Sent: 06-07-2021 10:31
From: Mike Tamoush
Subject: URL Button keeps me where I am
I believe you can just add this to the end of URLTWO. It's a new feature from QB that essentially 'refreshes' the page the user launched from.
& "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl())
------------------------------
Mike Tamoush
Original Message:
Sent: 06-06-2021 19:51
From: Jordan Beatty
Subject: URL Button keeps me where I am
I have the following button that user can only click on a record while viewing it
var text URLONE = URLRoot() & "db/" & Dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_21=1";
var text URLTWO = URLRoot() & "db/" & [_DBID_TASK]
& "?act=API_AddRecord"
& "&_fid_11=" &URLEncode([Related Sub Company (ref)])
& "&_fid_13=" &URLEncode([Record ID#])
& "&_fid_6=" &URLEncode("I have created the DOA for " & [Worker])
& "&_fid_10=" &URLEncode([First Consultant])
& "&_fid_11=" &URLEncode(User())
& "&_fid_8=" &URLEncode(Today())
& "&_fid_7=" &URLEncode(Today());
$URLONE
& "&rdr=" & URLEncode($URLTWO)
Button does exactly what I want it do. It has been awhile but outside of adding a third URL variable redirecting to the record they are already, is there an easy way to have the user just stay inside the record they are in when they click the button?
------------------------------
Jordan Beatty
------------------------------