StephenStephen
8 years agoQrew Assistant Captain
Formula URL Button not returning to record or table
I have a table of Files/Links that need to be acknowledged by a subcontractor. I created a Formula URL button using advice from another post that is about 1 year old.
The goal is this: when the contract downloads the files or uses the link, he/she is then to "Acknowledge" having done so. So a formula URL fills in the user name, date/time and a "Status" in a status field and saves the record.
It all worked PERFECTLY except that after the "Acknowledge" button is pressed, despite all the records (Name, Date/time and Status" being properly updated, the result leaves the user on a blank white webpage with the following text:
Instead of returning the user to the table that was showing when the button was pressed, or the record if one record was opened.
I thought the final line of the text would do the trick, but it's not working:
The goal is this: when the contract downloads the files or uses the link, he/she is then to "Acknowledge" having done so. So a formula URL fills in the user name, date/time and a "Status" in a status field and saves the record.
It all worked PERFECTLY except that after the "Acknowledge" button is pressed, despite all the records (Name, Date/time and Status" being properly updated, the result leaves the user on a blank white webpage with the following text:
"API_EditRecord 0 No error 2 1 1492657399140"
Instead of returning the user to the table that was showing when the button was pressed, or the record if one record was opened.
I thought the final line of the text would do the trick, but it's not working:
URLRoot() & "db/" & [_DBID_ART_RELEASE_FILES___LINKS]
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_13 =1-Downloaded" & "&_fid_10=" & ToText(User()) & "&_fid_12=" & ToText(Now()) & "&apptoken=xxxxxxxxxxxxxxxxxxxxxxxxx" & "&z=" & Rurl()