hello) - this is my page - not finished at all yet -
What i try is that the field: “Großer Titel” next to the picture of Piko gets filled by a database.
The database i created with title and time shows the right time corresponding to the title Piko when i try the webpage in the preview, but when i publish the page it doesnt make the connection between database and website.
Also i made the code to update the time for Piko with the button “pikoDead” but it doesnt seem to work (my database is called Bosstimer):
export function Piko_Dead(event) {
var options = { timeZone: ‘Europe/London’ , timeZoneName: ‘short’ };
let optionsUpdate = {
“suppressAuth” : true ,
“suppressHooks” : true
};
const today = new Date();
let toUpdate = {
“title” : “Piko” ,
“time” : today.toLocaleTimeString( “en-GB” , options)
};
wixData.update( ‘Bosstimer’ , toUpdate, optionsUpdate)
}