On button click how to open the page in another tab in mendix

0
Hi Team,   I have a button inside the data view. On click of button which will open a another page in the same tab. Client wants that if we click on the button in dataview it will open in another tab in the browser. Anyone have an idea how to do that.    
asked
5 answers
2

Hi Atul,

You can create a javascript which accepts a string parameter,

in the java script you can this code:

window.open(url, "_blank");

and pass the URL inside the javascript,

now, on the click of the link, you can call a nanoflow, and use this javascript action in the nanoflow.

 

Let me know, if you have any issues,

Hope it helps!

answered
0

Hi Atul,

 

In the passed i have used the URL Redirector widget for that. It is still available in the Marketplace, so you could give that one a try.

 

Kind regards,

Martijn Hingstman

answered
0

Hi, there is also this widget in the Marketplace "Open link in new tab" that delcares to do exactly what you need

answered
0

Hello Atul,

          Try to use Open Url activity from Nanoflows to open page in other tab

 

Thanks.

answered
0

Hi Atul,

Download Nanoflow Commons from marketplace in your studio pro. Under nanoflow commons->External Activities->Open URL.

In general, give the name and add the parameters name-URL and type as String. On the code tab, 

// BEGIN USER CODE

    window.open(url,'_blank');

    // END USER CODE

 

answered