I will gloss over the absurdity, for now, of a “low code/no code” platform requriing this kind of technical solution to do something as simple as redirect the user to an external website by clicking a button:
https://asiablog.acumatica.com/2017/08/redirecting-to-external-page-from-button.html
I have implemented the solution described in the article, with a button in the Sales Order toolbar to launch a custom item lookup screen (it’s an external webpage that lives outside Acumatica and communicates to Acumatica via webhook).
That all works well, except for one thing. If I try to pass any query parameters in the url (standard http get request….i.e Redirect8: http://www.mysite.com?myqueryparam=bob, then for whatever reason the query parameters are all stripped when the page loads. This seems to be happening with some sort of Javascript perhaps (I haven’t traced the source yet), because it’s very clear that the url is requested with query params, but then ends up without them. If I load the page from outside Acumatica with the same query params, then everything is fine.
Can someone explain why this is happening and if there is a way to pass query parameters to the redirect exception so that they won’t be stripped? Also, can someone please document this functionality officially outide of the current documentation, which is a blog post?…… https://asiablog.acumatica.com/2017/08/redirecting-to-external-page-from-button.html
Best answer by Marco Villasenor
View original