Forum Discussion

JamesCarr's avatar
JamesCarr
Qrew Cadet
11 months ago
Solved

API_AddRecord Then Redirec To Dashboard

Greetings, I have been searching and experimenting for some time now.  I have given up and decided to try posting, as everything I have found is not working so far.  I have a dashboard that I would ...
  • JamesCarr's avatar
    2 days ago

    I finally picked this back up and just wanted to advise of the solution:

    Dashboard URL needs to be constructed a particular way, otherwise, you won't be redirected back to it.  As I stated, I was able to come up with the URL for calling the API_AddRecord, but I couldn't get it to navigate back to my dashboard instead of showing the XML result of the API call.  I discovered that I had to use:

    <Your_URL_For_The_API> & "&rdr=" & URLEncode(URLRoot() & "/nav/app/" & DBID() & "/action/showpage?pageID=" & YOUR_PAGE_ID#)

    This works perfectly.  I was already using the suggestion above to put together my URL by using a formula text field to come up with everything.  Then I copied the resulting URL text and pasted into the URL of the button widget I added in my dashboard once I saw the resulting link worked.  I hope this helps anyone else who needs it in the future.  Let me know if I can help in anyway.