Open in New tab when link is clicked from DataGrid

0
We have a requirement to open the data in a new tab when clicked on a Datagrid. I could see no widget which is "PlatForm" supported (which is mandatory) to achieve this functionality. Can someone give some inputs how to achieve this.
asked
3 answers
0

Hi Ajay,

For this, you can put a Link button on datagrid, which will call a nanoflow, and in the nanolow, you can call a Javascript action, which will accept a URL, and it will open the passed URL in a new tab.

Dummy code:

window.open(url, '_blank');

 

Let me know, if you face any issues,

Hope it helps!

answered
1

Hi Ajay,

 

If you trigger a Nanoflow, you can use the NanoflowCommons module from the Marketplace to reach your goal. See example below to build the URL from a String.

 

I do want to warn you that Mendix is not really good at having multiple tabs open in your browser. Information shown in one tab may differ from information shown in another tab, and also cached objects may get out of sync.

 

Good luck!

 

image.png

answered
0

I tried this,

Below is my page settings.

image.png

But when I run it, it is opening in new tab. But a 404 error is served.

 

image.pngSo can you help me what I am missing here?

answered