Forum Discussion

luxjuice's avatar
luxjuice
Qrew Member
4 days ago
Solved

Redirect after API_EditRecord

Greetings, everyone!

I'm at my wits end trying to get a redirect to properly fire in a Formula URL button. I'm using the URL as a "Submit" button that changes the phase of the record, then I want the app to redirect to a report. All I can get is a redirect to the app homepage which is not intuitive and undersirable.

Here is the URL Formula:

var text submitURL = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_34=Items&apptoken=<token hidden>";
var text redirectURL = URLRoot() & "db/" & Dbid() & "/a=q&qid=7";

$submitURL & "&rdr=" & URLEncode($redirectURL)

Can someone help me figure out what's wrong with this implentation?

Thank you!

  • RESOLVED!

    Had to link to /tablereport?a=q&qid=7 instead of ?a=q&qid=7. Go figure...?

4 Replies

  • Mez's avatar
    Mez
    Qrew Assistant Captain

    Just so you have this, they changed the url schema a bit ago, even though legacy url's should remain functional/functioning, building a new formula url you can map to the new path from their guide. 

    https://helpv2.quickbase.com/hc/en-us/articles/26352739460756-URL-changes-in-new-navigation

    • luxjuice's avatar
      luxjuice
      Qrew Member

      Thanks for the info. Is there a document that specifies use of tablereport (and other direct nav options)?

      • Mez's avatar
        Mez
        Qrew Assistant Captain

        Most likely legacy path that still works, for now. This is their guide: URL changes

        "Action itself is unchanged. For example q still refers to reports."

  • RESOLVED!

    Had to link to /tablereport?a=q&qid=7 instead of ?a=q&qid=7. Go figure...?