Forum Discussion
StevenNelson
4 years agoQrew Member
I figured it out
------------------------------
Steven Nelson
------------------------------
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&_fid_37=Completed" &
"&_fid_39="&Now() &
"&_fid_44="&UserToName(User(),"FF")&
"&rdr=" &
URLEncode(URLRoot() & "db/" & AppID())
------------------------------
Steven Nelson
------------------------------
- MarkShnier__You4 years agoQrew Legend
In fact this should refresh the page you were on ..
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &"&rid=" & [Record ID#] &
"&_fid_37=Completed" &
"&_fid_39="&Now() &
"&_fid_44="&UserToName(User(),"FF")
& "&rdr="&URLEncode( URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl())
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------- StevenNelson4 years agoQrew MemberI changed field 44 to a user field. I need to get rid of the "usertoname" part of the code but when I do it says "&" cannot be applied to a user field. What am I doing wrong?
"&_fid_44="& User()
------------------------------
Steven Nelson
------------------------------- MarkShnier__You4 years agoQrew Legend
"&_fid_44="& ToText(User())
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------
- TateForgey6 months agoQrew Assistant Captain
FYI - As of today this is no longer working for me. This worked for a while, but I can only assume something changed in QB that prevents this from working properly. I am brought to the home page of the app using this code now. :(