Making a button to perform API_SetDBVar action

  • 0
  • 1
  • Question
  • Updated 5 months ago
  • In Progress
Is there a way to set a button that will set an app variable to a value in a field? I know about the API_SetDBVar, what I do not know is just how it is suppose to be written out in a Formula Rich Text Field in order to perform the proper function.

Any help is appreciated.
Photo of Mark Warstler

Mark Warstler

  • 70 Points

Posted 5 months ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,306 Points 50k badge 2x thumb
This works

"https://yqc.quickbase.com/db/xxxxxxxxxx?act=API_SetDBvar";
& "&varname=" & URLEncode("Test Application Variables")  
& "&value=" & URLEncode([some text])


where xxxxxx is the application level (Home) application ID 
(Edited)
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,306 Points 50k badge 2x thumb
Let me know if you need helpp in adding some code to this to either put up a message on the page or To refresh the page
(Edited)