Hello,
I have a detail in which I have added a column from another table using the "diff" array. Please see below Code. I would like the "Link" column to get hyperlinked. Unfortunately, the code I added does not seem to add hyperlink.
Can someone help please?
getShareLink: function(value) {
return {
url: value,
caption: value,
};
},
onShareLinkClick: function(url) {
if (url != null) {
window.open(url, "_blank", "height=" + this.get("WindowHeight") + ",width=" + this.get("WindowWidth"));
return false;
}
},
//diff array
{
"operation": "insert",
"name": "PsgDataGrid",
"parentName": "Detail",
"propertyName": "items",
"index": 0,
"values": {
"itemType": Terrasoft.ViewItemType.GRID,
"listedZebra": true,
"collection": {"bindTo": "Collection"},
"activeRow": {"bindTo": "ActiveRow"},
"primaryColumnName": "Id",
"isEmpty": {"bindTo": "IsGridEmpty"},
"isLoading": {"bindTo": "IsGridLoading"},
"multiSelect": {"bindTo": "MultiSelect"},
"selectedRows": {"bindTo": "SelectedRows"},
"sortColumn": {"bindTo": "sortColumn"},
"sortColumnDirection": {"bindTo": "GridSortDirection"},
"sortColumnIndex": {"bindTo": "SortColumnIndex"},
"linkClick": {"bindTo": "linkClicked"},
"type": "listed",
"useListedLookupImages": true,
"visible": {
"bindTo": "isImageManagerDetailView",
"bindConfig": {"converter": "getDataGridVisible"}
},
"listedConfig": {
"name": "DataGridListedConfig",
"items": [
{
"name": "Link",
"bindTo": "Link",
"position": {
"column": 16,
"colSpan": 8
},
"caption": Resources.localizableStrings.Link,
"values":
{
"config": {
"className": "Terrasoft.TextEdit",
"linkclick": { bindTo: "onShareLinkClick"},
"showValueAsLink": true,
"enabled" : true,
"href": {
"bindTo": "Link",
"bindConfig": {"converter": "getShareLink"}
}
}
},
}