Forum Discussion
JackWoods
Qrew Trainee
The now seem to work but I'm getting an error message when the button is pressed now.
HERE IS THE FOMRULA FOR THE BUTTON:
"javascript:if(confirm ('Are You Sure You Want To Approve This?')){location.assign('/db/" & Dbid()
& "?act=API_EditRecord&apptoken=cppcatecu6khbiyb25chbxtangb"
& "&rid=" & [Record ID#]
& "&_fid_7=Approved"
& "fid_67=now"
& "&rdr=" & URLEncode(URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#]))
&"')}"
------------------------------
Jack Woods
------------------------------
"This XML file does not appear to have any style information associated with it. The document tree is shown below.
<qdbapi>
<action>API_EditRecord</action>
<errcode>0</errcode>
<errtext>No error</errtext>
<rid>2</rid>
<num_fields_changed>0</num_fields_changed>
<update_id>1611595484356</update_id>
</qdbapi>"
HERE IS THE FOMRULA FOR THE BUTTON:
"javascript:if(confirm ('Are You Sure You Want To Approve This?')){location.assign('/db/" & Dbid()
& "?act=API_EditRecord&apptoken=cppcatecu6khbiyb25chbxtangb"
& "&rid=" & [Record ID#]
& "&_fid_7=Approved"
& "fid_67=now"
& "&rdr=" & URLEncode(URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#]))
&"')}"
------------------------------
Jack Woods
------------------------------
MarkShnier__You
4 years agoQrew Legend
It's not an error message, just an unfriendly success message. I'm not an expert on that syntax with the popup confirm, but I do have this alternate code that you can try.
var text URL= URLRoot() & "db/" & Dbid() & "?act=API_DeleteRecord&rid=" & [Record ID#]
& "&apptoken= xxxxxxx";
"javascript: " &
"if ( confirm('Are you sure you want to permanently delete this record ? ') == true ){ "&
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"&
"}"
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
var text URL= URLRoot() & "db/" & Dbid() & "?act=API_DeleteRecord&rid=" & [Record ID#]
& "&apptoken= xxxxxxx";
"javascript: " &
"if ( confirm('Are you sure you want to permanently delete this record ? ') == true ){ "&
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"&
"}"
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
Related Content
- 4 months ago
- 2 years ago