JasonJohnson
8 years agoQrew Assistant Captain
XML error after API commands executed in text formula button
I am receiving the following error when using a text-formula button -
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<qdbapi>
<action>API_AddRecord</action>
<errcode>0</errcode>
<errtext>No error</errtext>
<rid>167</rid>
<update_id>1499802606114</update_id>
</qdbapi>
The code is performing the edit and add record functions.
// Begin button style
var text bgcolor = "#4D2DD2";
var text txtcolor = "white";
var text style = "style=\"text-decoration: none;\n\n box-shadow: 3px 3px 1px #888888; \n\n background:" & $bgcolor & ";\n\n border-radius: 3px;\n\n padding: 5px 8px;\n\n color: " & $txtcolor & ";\n\n display: inline-block;\n\n font: bold 700 24px/1 \"Calibri\", sans-serif;\n\n text-align: center;\n\n text-shadow:none;";
// End button style
"<a " & $style & " href='" &URLRoot() & "/db/"& Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] &
"&_fid_882=1" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & [_DBID_Billing] & "?a=API_AddRecord&_fid_6=" & [Location ID])&
"&rdr="&
"javascript:" &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
&"'>CRAZY</a>
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<qdbapi>
<action>API_AddRecord</action>
<errcode>0</errcode>
<errtext>No error</errtext>
<rid>167</rid>
<update_id>1499802606114</update_id>
</qdbapi>
The code is performing the edit and add record functions.
// Begin button style
var text bgcolor = "#4D2DD2";
var text txtcolor = "white";
var text style = "style=\"text-decoration: none;\n\n box-shadow: 3px 3px 1px #888888; \n\n background:" & $bgcolor & ";\n\n border-radius: 3px;\n\n padding: 5px 8px;\n\n color: " & $txtcolor & ";\n\n display: inline-block;\n\n font: bold 700 24px/1 \"Calibri\", sans-serif;\n\n text-align: center;\n\n text-shadow:none;";
// End button style
"<a " & $style & " href='" &URLRoot() & "/db/"& Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] &
"&_fid_882=1" &
"&rdr=" &
URLEncode(URLRoot() & "db/" & [_DBID_Billing] & "?a=API_AddRecord&_fid_6=" & [Location ID])&
"&rdr="&
"javascript:" &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
&"'>CRAZY</a>