Hi, thanks a lot for the reply, in the meantime i got it to work but not with the same code ive seen here or on the wix dataset api, i dont understand why.
I made an event in the parameter of the buttons so it gave me the code to start and ive add the rest of your code with it, its working now, im so happy i can’t even!
Since wix have the DB and the coding…wow, my website was on hold for like 4 years because the options was to limited for what i wanted to acheive but now i see the light and it’s looking good for me to finish it once and for all!
Anyway, sorry for the long story! lol
Another little question, is there any way to have this dynamic page im working on as part of my menu?
I redid that page on a normal page with datasets, for that reason, i needed it to show in my menu, thus why i was asking about the differences.
As of the code, it’s what it gave me at the end:
// For full API documentation, including code examples, visit http://wix.to/94BuAAs
$w.onReady(function () {
//TODO: write your page related code here…
});
export function line3_viewportEnter(event, $w) {
$w(“#box5”).hide();
}
export function line3_viewportLeave(event, $w) {
$w(“#box5”).show();
}
import wixData from ‘wix-data’;
// …
export function button7_click(event, $w) {
$w(“#IndexDataset”).setSort(
wixData.sort()
.ascending(“construction”)
);
}
export function button26_click(event, $w) {
$w(“#IndexDataset”).setSort(
wixData.sort()
.ascending(“nom”)
);
}
export function button28_click(event, $w) {
$w(“#IndexDataset”).setSort(
wixData.sort()
.ascending(“lieux”)
);
}
export function button63_click(event, $w) {
$w(“#IndexDataset”).setSort(
wixData.sort()
.ascending(“nom”)
);
}