I have a budget database (dbBudget) that includes:
project name (projectName) - a reference to a projects table
category (category)- a reference to a categories table
budget (budget)- a number
I want to present a table with all data and filter according to the project name, but because of the use in references, the normal filter would not work.
$w(‘#dbBudget’).setFilter(wixData.filter().eq(‘projectName’, ‘Project 1’));
How to create a collection from the database that can be filtered?
I am not sure how this will help…
The reference fields are names (of projects and categories) already existing in other tables. The dbBudget table set budget for the projects in different categories.