Tabidoo seems like a really powerful tool, but sadly, I have 0 experience in javascript, I only did some work in uni with relation databases which I could simply nest together, but I found that in Tabidoo, the linked tables dont get transferred when you continue linking
So, first of all. I am sharing a diagram of my application.
My aim: Start up table “fakturace” choose a user from table “Osobní údaje”
That will filter out table “Opravované zařízení” to only show records that have the user ID associated.
And when I choose a device in “Opravované zařízení” It will automatically pull data from tables “Fakturovatelné úkony” and “Náhradní díly” to then start report in “fakturace”
What I thought of so far-
load the form and manually select a customer from table “Osobní údaje”
Get ID of that customer and filter out table “Opravované zařízení” Which will let me choose what device from the customer I want to select. Based on selecting the device ID, select records from table “Fakturovatelné úkony” and “Náhradní díly”
JS is where I am loosing it. I have no idea how to select object parameter in filtering table
My code snippet and resulting output in console:
let zakaznik_id = await doo.model.zakaznik.value.id;
console.log(zakaznik_id); //confirms that I have selected a proper ID
let load_zarizeni = await doo.table.getData("opravovanazarizeni");
console.log(load_zarizeni);
I can see, that the customer ID is being selected properly, But I cant find a way to filter out the table “opravovanazarizeni” to only select records containing user ID.
Any suggestions/tips/tricks would be gladly appreciated.