Thanks Yoav,
Itried but couldn’t succeed being new novice in coding. Please guide how to use $w.LinkableMixin’, couldn’t find any related example code.
Following is the code am using for ‘title’/‘party name’ search:
export function partySearch_onclick(event) {
let searchValue = $w(‘#partyInput’).value;
wixData.query(‘JudgmentNotes’)
.contains(‘title’, searchValue)
.find()
.then(res =>
{
let foundItems = res.items;
$w(“#resultsTable”).columns = [
{
id: “col1”,
dataPath: “title”,
label: “Party Name”,
width: 150,
visible: true,
type: “string”,
linkPath: “link-JudgmentNotes-_id-title”
//linkPath is set to the dynamic url field in the dataset.
//How can this link value be set to something similar to:
//https://www.daaman.org/JudgmentNotes/{link-JudgmentNotes-_id-title}
//OR
//linkPath: “https://www.daaman.org/JudgmentNotes/{ID}/{Referrence}”
//How to set both the link and target attributes to enable it open in new window?
},
{
id: “col2”,
dataPath: “court”,
label: “Court”,
width: 150,
visible: true,
type: “string”
},
{
id: “col3”,
dataPath: “date”,
label: “Date”,
width: 150,
visible: true,
type: “string”
},
{
id: “col4”,
dataPath: “citation”,
label: “Citation”,
width: 150,
visible: true,
type: “string”
},
{
id: “col5”,
dataPath: “held”,
label: “Held”,
width: 467,
visible: true,
type: “string”
},
{
id: “col6”,
dataPath: “_id”,
label: “ID”,
width: 0,
visible: false,
type: “text”
},
{
id: “col7”,
dataPath: “referrence”,
label: “Referrence”,
width: 0,
visible: false,
type: “text”
}
];
$w(‘#resultsTable’).rows = res.items;
});
}
Please help.
Anupam Dubey