top of page

Forum Posts

amy marr
Aug 23, 2019
In Coding with Velo
This code is right out of the documentation and I'm using it pretty much as is, except for some name changes. Getting errors that say that onItemReady does not exist on myRepeater. Same with data property on the repeater. How do I set the repeater's data to my collection? I imagine it would look something like $w("#myRepeater").data = bikeData; but I'm using a collection so I tried $w("myRepeater").data = "Artists"; gives me the error that data does not exist on myRepeater. The repeater element is a box. import wixData from 'wix-data'; $w.onReady(function () { $w("#myRepeater").onItemReady( ($item, itemData, index) => { $item("#bookTitle").text = itemData.title; $item("#bookSubtitle").text = itemData.subtitle; $item("#bookCover").src = itemData.pic; } ); wixData.query("Books") .find() .then( (results) => { $w("#myRepeater").data = results.items; } ); } ); Thank You, Amy
0
1
73
amy marr
Aug 15, 2019
In Coding with Velo
I have a collection of 70 records. I want to work with all of them. When I query the collection I get a totalCount of 92. 19 of them have undefined data fields and 2 seem to be duplicates of a record I added manually to the collection. I can't see any of the problem records when I view the collection so I can't delete them. Any way to clean up this data? Amy
0
0
20
amy marr
Aug 14, 2019
In Coding with Velo
let Anum = "Amy51"; wixData.query("Artists") .eq("artistNumber", Anum) This query works for testing. This is on a dynamic item page. What I would like to do is get a string from a text page element and use this for the search criteria. I would imagine something like the following would work, but it doesn't. let Anum=$w(#someTextElement).text #someTextElement is connected to data and displays correctly. I'm using $w.onReady so timing shouldn't be the issue. Also, same code in another screen works fine for looking up the data record with data inputted by the user using. The collection field is a text field. Anum = $w("#ArtistNumber").value; Please help. Thank you. Amy
0
0
38
amy marr
Aug 14, 2019
In Coding with Velo
Loading the code for the site. To debug this code, open masterPage.js in Developer Tools. Loading the code for the Artists About (ArtistNumber) page. To debug this code, open c65wy.js in Developer Tools. Sorry - I'm a newbie. Where are these telling me to go? How do I get there? Thanks for taking a look, Amy
0
1
385
amy marr
Aug 09, 2019
In Coding with Velo
uploadedFile.tooltip = $w("#inpPictureTitle").value; $w("#tlp0").text = $w("#inpPictureTitle").value; // works for display of tooltip $w("#img0").src = uploadedFile.url; // displays uploaded picture correctly currentItem.piece0 = uploadedFile; // seemed to work saves to file in update but does not save tooltip Question - How can I store the inputted Picture Title text as the tooltip when writing an uploaded fie to an image field in a collection? Above code works except I can't get that tooltip field to save. Newbie guessing on how to set up that first statement. Please help. Thank you. Amy
0
11
94

amy marr

More actions
bottom of page