Hello guys,
I’ve created a dynamic page (with the help of wonderul people here in forum) which shows Dataset Query results perfectly in a table. I need to show query data with repeaters now! Please guide me !
In short, the code am using is similar to this:
==========================================
import wixData from ‘wix-data’;
export function partySearch_onclick(event) {
let searchValue = $w(‘#partyInput’).value;
let itemsCons = (wixData.query(‘JudgmentNotes’)
.contains(‘title’, searchValue))
.or(wixData.query(‘JudgmentNotes’)
.contains(‘held’, searchValue))
.find()
.then(res =>
{
let foundItems = itemsCons.items;
$w(“#resultsTable”).columns = [
{
id: “col1”,
dataPath: “title”,
label: “Party Name”,
width: 150,
visible: true,
type: “string”,
},
{
id: “col2”,
dataPath: “held”,
label: “Held”,
width: 467,
visible: true,
type: “string”,
}
];
$w('#resultsTable').rows = res.items;
});
}
==========================================
I’ve added a repeater and two text items in it for the repeating query results, but even after multiple attempts couldn’t code to make results display in repeater.
Please guide or share some similar code for repeaters.
Thanking in anticipation.
Anupam Dubey