Skip to main content
Question

Error in a URL Button

  • January 26, 2022
  • 0 replies
  • 23 views

GeorgeBramhall2
Forum|alt.badge.img+11
Can someone tell me what's wrong with my URL Formula button code: (fid 21 is a date field)

Here is my URL Code 
URLRoot() & "db/" & [_DBID_RECEIPTS] & "?act=API_EditRecord" &
"&rid=" & [Maximum Unsent Receipt Record ID#]& "&apptoken=cz33dcb8h2qfbp4evmdpbw2hd &_fid_21=" & Today()&
"&rdr=" & "&z=" & Rurl())

And here is my error:
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>44</rid>
<num_fields_changed>0</num_fields_changed>
<update_id>1643228728393</update_id>
</qdbapi>


------------------------------
George Bramhall
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
Once the user clocks the button  where are you trying to land the user? On the same page they were on?

------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------

MarkShnierYou
Forum|alt.badge.img+24
var text Update = URLRoot() & "db/" & [_DBID_RECEIPTS] & "?act=API_EditRecord" &
"&rid=" & [Maximum Unsent Receipt Record ID#]&
"&apptoken=cz33dcb8h2qfbp4evmdpbw2hd&_fid_21=" & Today();

var text RefreshPage = URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();

$Update
& "&rdr=" & URLEncode($RefreshPage)


------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------