Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Justin James
MVP
768
Views
4
Comments
What's the URL to the current Screen?
Question
Hello -
Odd little issue. I need to get the URL to the *currently executing screen* (not the requested screen, which is what HTTPRequestHandler\GetURL() gives). The problem is, if you use a Screen as a destination in an Action, and in that second screen you call "GetURL()", you get the URL to the first screen due to the transfer.
Any ideas?
Thanks!
J.Ja
Tiago Simões
Staff
Hi Justin,
You can take a look into
GetBookmarkableURL()
built-in function or use HTTPRequestHandler.GetPageName() to create it.
Cheers,
Tiago Simões
Evert van der Zalm
MVP
Hello Justin,
What Tiago is saying is correct only take note that you need to use the GetBookmarableURL in the preparation of the screen. Only there you also get the input pars in you're URL.
If you need the URL in another action (then perp.) save it to a local variable.
Kind Regards,
Evert
Justin James
MVP
That worked perfectly, thanks! Solved one of my most obvious and annoying bugs. :)
J.Ja
Evert van der Zalm
MVP
It also did for me :).
I first solved the problem by adding a EntryPoint and used the getEntryUrl to get the url and set the input parameters. Then use redirectURL to go to the screen.
But this is much better (and little bit quicker).
Kind Regards,
Evert
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...