Question:
Can I get support in troubleshooting Velo code? I’m repeatedly seeing **Failed to load resource
Product:
Dynamic Pages with Velo code
What are you trying to achieve:
I’m trying to create a dynamic page with dropdown and open text search but unable to run the code to test the features due to Failed to load resource: net::ERR_CONNECTION_REFUSED [panorama.wixapps.net/api/v1/bulklog:1]
What have you already tried:
I followed the instructions from this page but it’s clearly not working as expected. https://www.wixfix.com/post/search-dropdown-filter
Additional information:
Below is the code added to the dynamic page. Please advise.
import wixData from ‘wix-data’;
$w(‘#resetButton’).hide();
$w.onReady(function () {
});
export function searchButton_click(event) {
search();
}
function search() {
wixData.query("eqEvents")
.contains("name", $w('#searchInput').value)
// .and(wixData.query("eqEvents").contains("propertieType", String($w('#dropdown2').value)))
// .or(wixData.query("eqEvents").contains("name", $w('#searchInput').value))
.or(wixData.query("eqEvents").contains("venue", $w('#searchInput').value))
.find()
.then(results => {
$w('#eqEventsRepeater').data = results.items;
});
$w('#resetButton').show();
$w('#resetButton').enable();
$w('#searchButton').hide();
}
export function resetButton_click(event) {
$w('#eqEventsDataset').setFilter(wixData.filter());
$w('#disciplineDropdown').value = undefined;
$w('#venueDropdown').value = undefined;
$w('#searchInput').value = undefined;
$w('#searchButton').show();
$w('#searchButton').enable();
$w('#resetButton').hide();
}