API_DoQuery question

  • 2
  • 1
  • Question
  • Updated 2 years ago
  • Answered
What can I add to the rdr=... (redirect) that will just display the record(s) found by the query?  Without a rdr=, I receive the message:
"This XML file does not appear to have any style information associated with it. The document tree is shown below."

URLRoot() & "db/" & [_DBID_WORK_ORDERS] &"?act=API_DoQuery" &"&apptoken=bcceeidcwsqrifdef7s72cqiqhy" &
"&query={'6'.OBF." &[Pay Period Ends] & "}"     //  Work Order Date on or before Pay Period 
& "&rdr="
Photo of JimLieder

JimLieder

  • 344 Points 250 badge 2x thumb

Posted 2 years ago

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

QuickBaseCoach App Dev./Training, Champion

  • 51,436 Points 50k badge 2x thumb
Hi Jim,

Let me suggest a low tech approach


Make your perfect report which had an ask the user. for the pay period ending date.


Answer the question and observe the URL.


On another tab, build this formula to mimic the URL


URLRoot() & "db/" & dbid() & "?a=q&qid=xx&nv=1&v0=" & ToText([Pay Prriod Ending])


That will run the report and answer the ask the user question from data on the record.

Substitute the query id# for the xx
(Edited)
Photo of JimLieder

JimLieder

  • 344 Points 250 badge 2x thumb
Thank you Coach!  That worked great!