top of page

Forum Comments

Assigning a date picker makes my table jump
In Coding with Velo
Krs Mis
Mar 12, 2019
in my site it stopped suddenly
0
0
TypeError: Cannot read property 'compId' of undefined
In Coding with Velo
Assigning a date picker makes my table jump
In Coding with Velo
WIX Data Query
In Coding with Velo
Krs Mis
Feb 08, 2019
it workes for me but i'm not pro coder. still working. function getguest takes all guest (collection 1) function getoccupiedrooms gets id of all guest that are in rooms but it doeasnt matter its collection 2. So i took all ids from collection2 and in bezstolow function filter collection1 by those ids. It workes but i'm not sure if its very coorect. For sure i dont catch errors and i should. async function bezstolow(x) { let goscie = await getguest(); let zajete = await getOccupiedRooms(); //console.log(zajete); //for (let i = 0; i < goscie.length-1; i++) { var filarray = goscie.filter(filterByID) function filterByID(item) { if (zajete.includes(item.value)) { return false; } // invalidEntries++; return true; } function getOccupiedRooms() { let arr = []; return wixData.query("stoly") .eq("_owner", userId) .find() .then((results) => { let items = results.items; for (let i = 0; i < items.length; i++) { arr.push(items[i].sg1); //sg1 is a name of field in collection. i took here all ids } arr = arr.filter(function (e) { return e }); // i take out emty fields here so maybe you will not need to do it return arr }) } function getguest() { let guestarray = [{ "value": '', "label": 'zwolnij miejsce' }]; return wixData.query("listagosci") .eq("_owner", userId) .ascending("imie") .find() .then((results) => { let items = results.items; for (let i = 0; i < items.length; i++) { guestarray.push(...results.items.map(continent => { return { "value": continent._id, "label": continent.imie }; })) guestarray = guestarray.filter(function (e) { return e }); return guestarray } }) }
0
0
Dissapointed with wix support "help"
In Coding with Velo
Two menus at same page??
In Coding with Velo
Parsing error: Unexpected token in .then in data query
In Coding with Velo
TypeError: Cannot read property 'compId' of undefine
In Coding with Velo
Krs Mis
Feb 02, 2019
really thanks for help. I GOT IT AND ITS EDITOR MISTAKE i think Its very intresting becasue i was switching off function after function and got it. function disableaall() and enableaall() is responsible for this. But its not my mistake. Its something with editor. 1. It happend sudenly, it was working well for month almost and i was not touching those functions 2. it happened only to some diable() functions 3. if You go to KARTOTEKA PAGE. i found elements that make error. its "input 20" and "radioGroup3". When i // them there is no error. So those elements have some compId property that are null. What compId is ?????? Probably wix made some upgrading which made this error. Good think is that it doeasnt affect so far code because seems to work. But who knows when starts affect or if effect in some cases. 4. In some other pages i have like 200 errors so all elemenst disable made it. I tried to switch off all diableaall() and i'm wright. Unfortunetly i made disableall function at all pages becasue when people click during code it stopped. 5. Conclustion. - I have no idea why those elements are different from other. Maybe i copy them and when editor gave them new Id didnt gave them compId or something ......... Solution i need to give to almost all elements new ID but i think they should find in editor problem when You copy element why this compID is null. Should i write to someone about it? I wrote before to wixsupport and no answer for 2 days function disableall() { $w('#imiemlodej').disable(); $w('#input3').disable(); $w('#input5').disable(); $w('#input4').disable(); $w('#input6').disable(); $w('#input7').disable(); $w('#input8').disable(); $w('#input9').disable(); $w('#input12').disable(); $w('#input13').disable(); $w('#input14').disable(); $w('#input15').disable(); $w('#input16').disable(); $w('#input18').disable(); $w('#input19').disable(); // $w('#input20').disable(); $w('#datePicker1').disable(); // $w('#radioGroup3').disable(); $w('#radioGroup2').disable(); $w('#radioGroup4').disable(); $w('#radioGroup5').disable(); $w('#radioGroup6').disable(); }
0
0
TypeError: Cannot read property 'compId' of undefined
In Coding with Velo

Krs Mis

More actions
bottom of page