Hi,
I would like to add a hyperlink (titled "Details" below) in edit page of a record. When clicking the hyperlink it should redirect to another page in a new tab.
Right now clicking "Details" the page opens in new tab. My issue is that along with the required page, a new tab opens at https://{sitename}/0/Nui/ViewModule.aspx as well. Thus 2 new tabs are opened when I click on the link now.
Below is what I have (Today's agenda is not a detail; it's a control group):
Below is my code:
methods:{
onDashboardDetailsButtonClick:function(){
let url = ;
window.open(url, '_blank');
}
},
diff: /**SCHEMA_DIFF*/[
{
"operation": "insert",
"name": "DashboardDetails",
"values": {
"layout": {
"colSpan": 7,
"rowSpan": 1,
"column": 7,
"row": 2,
},
"itemType":Terrasoft.ViewItemType.HYPERLINK,
"enabled": true,
"caption":"Details",
"click": {"bindTo": "onDashboardDetailsButtonClick"},
},
"propertyName": "items",
"index": 2
}
]
Can you please tell me what I'm doing wrong and how to resolve this?