Hello everyone,
in my home page, i have an icon for plumber and i want that, when i click on the icon, it should display the list of all plumbers that i stored in my DB.
var Observable = require("FuseJS/Observable"); var data = Observable();function goToPlumber() {
try {
var obj = query(“SELECT * FROM wp_usermeta WHERE meta_valeu = ‘plumber’”);
var toJson = JSON.parse(obj);
console.log(data.replaceAll(toJson));
router.push(“PlumberPage”);
}
catch (e) {
console.log("\n" + e);
}
}
module.exports = {
goToPlumber: goToPlumber,
}
<DockPanel>
<StatusBarbackground Dokpanel.Dock=“Top“ />
<ScrollView ClipToBounds=”true”>
<StackPanel>
<Each Items=”{toJson}”>
</Each>
</StackPanel>
</ScrollView>
But it’s not working and i don’t really know how i con continue. Any help will be very appraciated