Discussions

Expand all | Collapse all

API_DoQuery question

  • 1.  API_DoQuery question

    Posted 03-02-2017 23:34
    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=


  • 2.  RE: API_DoQuery question

    Posted 03-03-2017 01:15
    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


  • 3.  RE: API_DoQuery question

    Posted 03-03-2017 02:39
    Thank you Coach!  That worked great!