Forum Discussion
WallaceYeboah
5 years agoQrew Member
Thanks Mark. Heres my code:
var text = URLRoot() & "db/" & Dbid() & [Record ID#]& "&apptoken=XXXXXX"
I also tried
var text = "&apptoken=XXXXXX"
------------------------------
Wallace Yeboah
------------------------------
var text = URLRoot() & "db/" & Dbid() & [Record ID#]& "&apptoken=XXXXXX"
I also tried
var text = "&apptoken=XXXXXX"
------------------------------
Wallace Yeboah
------------------------------
MarkShnier__You
Qrew Legend
5 years agoThe URL is incorrect. What is the the URL suppose to do, edit a record? Display a record?? Just go to a table?
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
- WallaceYeboah5 years agoQrew MemberAhh okay. And it is supposed to edit a record.
------------------------------
Wallace Yeboah
------------------------------ - WallaceYeboah5 years agoQrew MemberSo I just updated my formula to the following:
var text AppToken = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#]
& "&apptoken=XXXXX";
But still getting an error
------------------------------
Wallace Yeboah
------------------------------- MarkShnier__You5 years ago
Qrew Legend
You have not stated what you want the formula URL button to do. In the formula you posted above you have created what is called a formula variable which means an interim calculation and then you have not said what to do with that formula variable. Also you are asking to edit a record but you are not specifying any fields to be changed. Then lastly after you added a record you will need to redirect the user back to a report or a record otherwise you will see the XML success message be displayed on the screen.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------- WallaceYeboah5 years agoQrew MemberAhh Long list of rookie mistakes. I was able to fix the issue. Thanks Mark!
------------------------------
Wallace Yeboah
------------------------------