How can we open a page in new tab from microflow?

Hi,   I am using a data grid which has the list of items and this grid has a button to view the details of selected item from the grid, on click of this button, triggers a microflow to process the result and then pass that result as object in a page. I need to open that page in a separate tab.   Do we have any function which will help me to open that page in new tab.   Thanks.  
5 answers

Hello Tina,


It is not ideal but this topic provides a solution for that:


Hope it helps!


Hi Tina,


I have been trying this for a very long time on several levels within my application, without any luck. So in my experience its not possible and looking back costed it me way too much time (and money) than I should have spent on it.


ps: So if someone has the answer, we will get notified by this question. 




I’ve not tried this, but I would think one way to do this would be to have a microflow behind a Deeplink that you can call that will show the data you need. You could then use the FormatString widget from the Marketplace to inject a hyperlink into your page HTML with the target set to _blank so when the link is called it opens the deeplink in a new window. For example...

<a href="${LinkVariable}" target="_blank">Link Text</a>

You would need to do this from a template grid or list view.

Let me know how you get on!




Thank you all for the support and ideas, it really helped.


For me, it worked in the below steps;


1. I have used a DataGrid which has a button (called View) to view the details.

2. then I created a field that will store the URL (string format) in the database.

2. On click of this button, it calls a microflow which processes to create the URL  then commits it, and then shows the popup.

3. This popup has a data view with the same entity I want to view and add widgets

              1. URLRedirector widget to open the link

              2. MicroflowTimer widget to close the popup automatically in 0 interval

4. The URL is then opened in the new tab, further, I had parameterized the URL hence I had to use Deeplink to view the selected item details.





If you can resort to a nanoflow (which can call a microflow for your logic if needed) you can use the OpenURL javascript action from the NanoflowCommons module. Give your detailpage a URL (like described here) Page Properties | Mendix Documentation , retrieve the ID of your object and build the correct URL and pass it to the JS action.