Hello, for some reason my table element is taking a long time to show the information inside my database. (There's only 4 items within my database)
Is there a reason why this is happen I like to know, also this a search code running in the background could that be the problem?
Website Link:
https://egbertomaciel.wixsite.com/form-demo
Hi,
It seems like an issue with the collection permissions:
Click here to learn more about collection permissions. Click here to learn how to set permissions for a database collection.
Best,
Tal.
This is the code that now the running in the background...
import wixData from 'wix-data'; import {local} from 'wix-storage'; import wixWindow from 'wix-window'; //Search Box Code-------------------------------------------------------------------------------- $w.onReady(function () { }); export function searchButton_click() { wixData.query('Client_Info_02') .contains('title', $w('#searchInput').value) .or(wixData.query('Client_Info_02').contains('date', $w('#searchInput').value)) .or(wixData.query('Client_Info_02').contains('keyDates', $w('#searchInput').value)) .or(wixData.query('Client_Info_02').contains('statementsOfFactsUpdated43018AdditionalUpdatesToFollow', $w('#searchInput').value)) .find() .then(res => { $w('#table1').rows = res.items; }); console.log("Dataset is searching for now " + $w('#searchInput').value); } //Next & Previous -------------------------------------------------------------------------------- const linkField = "link-Cliente-Info-02-_id"; // replace this value $w.onReady(function () { if(wixWindow.rendering.env === "browser") { $w("#dataset1").onReady(() => { const numberOfItems = $w("#dataset1").getTotalCount(); $w("#dataset1").getItems(0, numberOfItems) .then( (result) => { const dynamicPageURLs = result.items.map(item => item[linkField]); local.setItem('dynamicPageURLs', dynamicPageURLs); } ) .catch( (err) => { console.log(err.code, err.message); } ); } ); } } );
Hey
You are doing something that does not let the loading finish. Please share the code on this page that populates the tables.