Hi,
I am using the Outsystems Data Grid. In the grid, I have an Action column on the list page. When a user clicks the action link, it redirects to the Details page. However, when the user right-clicks in the browser and selects 'Open in new tab,' it shows the same list page instead of the Details page. Can someone please help with this?
Thanks in advance!
Best regards,
Sathish R
try following javascript in your Date_GridOnInitialize.
var grid = OutSystems.GridAPI.GridManager.GetActiveGrid();
grid.provider.formatItem.addHandler(function(s,e) {
if(e.panel === s.cells) {
var col = s.columns[e.col]
if(col.binding === 'Name') {
$(e.cell).find('a').attr("href", "/Sample_Grid/Detail_Screen")
}
});
you can check here as well
https://personal-u1aragiz.outsystemscloud.com/Sample_Grid/DataGrid_Search?_ts=638756664273417672
Hello @Sathish Kumar
To make this more efficient and collaborative for the community please share a sample OML where that issue can be reproduced. That way someone from the community can take a look without investing more time in implementing the use case.
Cheers,GM
It seams that your Action column is not working properly. It might be possible that your configuration is wrong or html is not proper.
Can you check your browser console for more detail. Like any javascript error ?
Also if possible please share oml file or screenshot of your implementation so we can help you accordingly.
Hi @Gonçalo Martins @Navneet Garg
I have attached a sample OML.
Thanks,
You can do one more thing
Add a Context Menu with ContextMenu\MenuItem_CustomOption with simple handler included a simple javascript to open link in new tab.
check the solution here