Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
Just use my post which begins with "no problem ....
- MarkCorcoran8 years agoQrew CadetYeah, I've tried it.. It refreshes the screen, but the record is still there.
This is what I have as a Formula-URL Button in an embedded report.
var text URL= URLRoot() & "db/" & Dbid() & "?act=API_DeleteRecord&rid=" & [Record ID#]
& "&apptoken= d7xnw2xdw9v4qnrm2ptkcyndgx3";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0); - QuickBaseCoachD8 years agoQrew CaptainThe code is failing and refreshing the screen.
To debug it when using that JavaScript method, you would just run the URL itself without the JavaScript stuff
Ie, comment out the JavaScript and just instead do $URL
What you will find is an error saying invalid application token.
You will then recheck it until you go cross eyed or until you notice it has an embedded leading space after the = which is causing the code to fail. - MarkCorcoran8 years agoQrew CadetWow.. thanks, I never noticed the leading space on the app token. Thank you, it works like a charm now.