Forum Discussion
NirajShah
7 years agoQrew Cadet
Agreed, thanks for the assistance.
Here is what I have for the reject button:
var text reject = URLRoot() & "db/" & [_DBID_] & "?a=API_EditRecord&apptoken=xxxxx&rid=" & URLEncode ([Record ID#])
& "&_fid_xx=" & URLEncode("Reject")
& "&_fid_xx=" & URLEncode(Now())
& "&_fid_xx=" & URLEncode(User());
var text DisplaySomeRecord =
URLRoot() & "db/xxxxx?a=dr&rid=" & ([Record ID#]);
$reject
& URLEncode("&rdr=" & URLEncode($DisplaySomeRecord))
This works, but redirects to an xml page:
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>1</rid>
<num_fields_changed>1</num_fields_changed>
<update_id>1545343689363</update_id>
</qdbapi>
Here is what I have for the reject button:
var text reject = URLRoot() & "db/" & [_DBID_] & "?a=API_EditRecord&apptoken=xxxxx&rid=" & URLEncode ([Record ID#])
& "&_fid_xx=" & URLEncode("Reject")
& "&_fid_xx=" & URLEncode(Now())
& "&_fid_xx=" & URLEncode(User());
var text DisplaySomeRecord =
URLRoot() & "db/xxxxx?a=dr&rid=" & ([Record ID#]);
$reject
& URLEncode("&rdr=" & URLEncode($DisplaySomeRecord))
This works, but redirects to an xml page:
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>1</rid>
<num_fields_changed>1</num_fields_changed>
<update_id>1545343689363</update_id>
</qdbapi>