Forum Discussion
AustinK
Qrew Commander
It is possible but I was surprised it worked. As a post above mentioned the role needs to have the ability to delete in that table and suddenly they can refresh it via this link. They do not see the actual button though so I had to create one for them.
I've made a code page and embedded it into a users dashboard and this allowed them to refresh the connected table via my created buttons while not being an admin. I didn't have to do anything crazy, I did a simple post to https://myRealm.quickbase.com/qb/sync/refreshTasks?replicationID="+repID and then checked the response. If the response included currentRefresh.status that was anything other than 2, it failed in some fashion. If it was a 2 then the refresh worked. I also disable the button after they click it to prevent them from spam clicking.
I've made a code page and embedded it into a users dashboard and this allowed them to refresh the connected table via my created buttons while not being an admin. I didn't have to do anything crazy, I did a simple post to https://myRealm.quickbase.com/qb/sync/refreshTasks?replicationID="+repID and then checked the response. If the response included currentRefresh.status that was anything other than 2, it failed in some fashion. If it was a 2 then the refresh worked. I also disable the button after they click it to prevent them from spam clicking.
PatrickDunn
5 years agoQrew Assistant Captain
Thanks for all this great info! The code "javascript:$.post('https://myrealm.quickbase.com/qb/sync/refreshTasks?replicationID=xxxxx')" within a formula URL field works with Chrome; however, it fails to work in FIrefox. When clicked on in Firefox, I end up getting a page that simply says "[object Object]". What am I doing wrong?
------------------------------
Patrick Dunn
------------------------------
------------------------------
Patrick Dunn
------------------------------