I want to move to another screen "Matrix" when I click a button "to Matrix". But it doesn't work.
I set in Button as below.
Method property :Navigate
Extended properties: target="_blank"
Could you tell me how to implement it?
Best,
Hi @Tsubasa Yoshikawa,
Instead of a button, you can have a link with the Button style and use that extended properties.
Cleaner solution without js, in my opinion
Hi,
Sometimes target property is not working in OutSystems with "_blank".. Try to change the tab name to "MyWindow1" or some other.
If above method is also not working, implement the same with below JavaScript.
window.open("<Your application URL>\Matrix","blank");
Refer : https://www.w3schools.com/jsref/met_win_open.asp
Thanks, Aadhavan S
I don't know who down voted my answer.. I mentioned below things without using JavaScript.
I faced the same scenario in my past. When I change the target value to "Mywindow1" it worked perfectly.. If you are clicking again from source page, it will again navigate to "Mywindow1" tab..
May this can also help others..
Can you share your OML to investigate a little further?
, of course, there is always the solution from @Luis Filipe Oliveira and others already ask about that too
https://www.outsystems.com/forums/discussion/57621/trying-to-open-url-in-new-tab-target-blank-not-working/
https://www.outsystems.com/forums/discussion/42515/how-to-open-page-in-new-window-upon-clicking-on-the-button/
Kind Regards,
Márcio
Thanks.
I've attached my oml.
I'm trying to make it in Server action when clicking a button using Javascript, but it doesn't work.
In logic of "ToMatrix "action, I'm using RunJavascript .
I set like below."window.open('\Matrix')"
I'm not sure where I'm missing.
Did you tried first with the link approach? that is easy to maintain in the future if it work.
Regarding the javascript approach, you need to put the full URL to work. like HTTP://www.google.com/Matrix
It is missing the aspx
so what you need to do is use this
"window.open('\Matrix.aspx','blank')"
That's why is not working