Add URL parameters without refreshing page in web app

I'm looking for a solution in Outsystems to add URL parameters to my browser without refreshing my page.
For example the image below: a reactive screen template from OutSystems.
When I click in the tabs bar on "Active", I need an url parameter that is added.


There are many written solutions on the internet, but I couldn't find the configuration in Outsystems.

I found this one: https://stackoverflow.com/questions/32828160/appending-parameter-to-url-without-refresh/32828207


How to achieve this in Outsystems?

DDK wrote:

I'm looking for a solution in Outsystems to add URL parameters to my browser without refreshing my page.
For example the image below: a reactive screen template from OutSystems.
When I click in the tabs bar on "Active", I need an url parameter that is added.


There are many written solutions on the internet, but I couldn't find the configuration in Outsystems.

I found this one: https://stackoverflow.com/questions/32828160/appending-parameter-to-url-without-refresh/32828207


How to achieve this in Outsystems?

Hi DDK, can you give us more context of what are you trying to achieve? 

On this button "Active" is a filter on the table refreshing to take the active records, are you trying to achieve the same?


Carlos Lessa wrote:

DDK wrote:

I'm looking for a solution in Outsystems to add URL parameters to my browser without refreshing my page.
For example the image below: a reactive screen template from OutSystems.
When I click in the tabs bar on "Active", I need an url parameter that is added.


There are many written solutions on the internet, but I couldn't find the configuration in Outsystems.

I found this one: https://stackoverflow.com/questions/32828160/appending-parameter-to-url-without-refresh/32828207


How to achieve this in Outsystems?

Hi DDK, can you give us more context of what are you trying to achieve? 

On this button "Active" is a filter on the table refreshing to take the active records, are you trying to achieve the same?


What I want to achieve is the following:
When you click on the tab active, then an URL parameter needs to be added to the website link.

For example. Before you click on the tab active:
https://www.outsystems.com/OutSystemsUIWebsite/HorizontalDetail

After you click on the tab active:
https://www.outsystems.com/OutSystemsUIWebsite/HorizontalDetail?Tab=Active


Is this more clear? There are solutions on the internet to achieve this. But I can't find a solution in Outsystems. Many thanks for your help. 


Hi DDK, 

Please, share with us this solutions that you found, maybe we may suggest you how to implement this in OutSystems.


Kind regards,

Leandro.

DDK wrote:

Carlos Lessa wrote:

DDK wrote:

I'm looking for a solution in Outsystems to add URL parameters to my browser without refreshing my page.
For example the image below: a reactive screen template from OutSystems.
When I click in the tabs bar on "Active", I need an url parameter that is added.


There are many written solutions on the internet, but I couldn't find the configuration in Outsystems.

I found this one: https://stackoverflow.com/questions/32828160/appending-parameter-to-url-without-refresh/32828207


How to achieve this in Outsystems?

Hi DDK, can you give us more context of what are you trying to achieve? 

On this button "Active" is a filter on the table refreshing to take the active records, are you trying to achieve the same?


What I want to achieve is the following:
When you click on the tab active, then an URL parameter needs to be added to the website link.

For example. Before you click on the tab active:
https://www.outsystems.com/OutSystemsUIWebsite/HorizontalDetail

After you click on the tab active:
https://www.outsystems.com/OutSystemsUIWebsite/HorizontalDetail?Tab=Active


Is this more clear? There are solutions on the internet to achieve this. But I can't find a solution in Outsystems. Many thanks for your help. 


Well I'm not sure if exist in Outsystems something to do that in the way you want but you can use the action RunJavaScript and use the JS command inside, check in the pic:

I didn't test if this works but if there is a way with JS you can use this action to run the JS code

Hope this can help you let us know if you found a way to do it

Hi DDK.

Do you really need to change the URL? You can update the parameter value without refreshing the URL.


If you really need it, you should use javascript. pushState adds an entry to browser history, replaceState replaces the current entry in History.

Here goes a working example of how simple it is.