Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
this syntax works well as long as there are no redirects in your URL
var text URL = = URLRoot() & "db/" & Dbid()& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_20=1" & "&apptoken= xxxxx";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
The magic is that after it does the edit it will refresh the"page" whether that is a record or a report.
var text URL = = URLRoot() & "db/" & Dbid()& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_20=1" & "&apptoken= xxxxx";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
The magic is that after it does the edit it will refresh the"page" whether that is a record or a report.
- QuickBaseCoachD8 years agoQrew CaptainEdit: (just one = is enough!)
var text URL = URLRoot() & "db/" & Dbid()& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_20=1" & "&apptoken= xxxxx";