Hi, can anyone help me understand this code as I can’t seem to get it working, it was a way to have a song requests submit fields and then have the requests appear on a different page on a repeater, can anyone help me with this?
import wixData from ‘wix-data’ ;
function getData(){
let query = wixData.query( ‘requests’ )
return query.limit( 1000 ).find().then(results => {
console.log( ‘getData’ , results);
return results.items;
});
}
$w.onReady( () => {
$w( "#songnamewrite" ).onAfterSave( () => {
getData().then((items) => {
$w( "#songrequestslist" ).data = items;
});
});
});
export function button8_click(event) {
Hello Warren,
here it seems like you have copy&paste some code parts from different projects and put them together without any logic.
You should show your DATABASE and describe a little bit the structure of your project. Give some more details to work with.
- All included elements? (forms? dabases? datasets? buttons? dropdowns and so on…
- Names & IDs of Databases, DATASETS and so on…
- Description of the project-flow…like…
when i press on button, this or that happens.
what i want to achieve is …
and so on…
Hi Thanks for replying, would you be able to help me understand what ’ #songrequestslist ’ would link to as this is the issue I am facing, really sorry for the very late reply.
Understand that this forum is a community of Corvid developers and users where various topics are discussed and information shared. It is not a support site.
To learn about programming with Corvid, read the following articles that will help you start working with Corvid:
If you find that you are having difficulty with code and need assistance, you may want to check out the Wix Marketplace - it’s a place where you can look for Corvid experts for hire.
Ok sorry about that, will have a look at that now 