What’s the best way to avoid problems when one of the four JOINed tables is empty. The page renders fine until I add the fourth table. The only reason I can think of is due to that table being empty.
What I’m trying to do is this:
Each form, once filled out, will be stored in the database. I want a status button that will change from a TODO state to a COMPLETED state.
I was thinking that I could use the ID in each table row of that new record to trigger the HIDE / SHOW for that particular button.
The initial table (starts the process), once it is filled out, that records ID is passed on to the next table as a FK. I am trying to use the initial table’s ID as a JOIN for all other attached tables.
Everything works fine until I JOIN a table that has no data. At which time the complete page renders as a blank page.
Depending on your query you probably need a LEFT (OUTER) JOIN or RIGHT (OUTER) JOIN. Like @updates already is saying, the INNER JOIN only returns results when it matches all tables. See the different types of joins at https://www.w3schools.com/sql/sql_join.asp.
Hi Ken yes i did write the query but query became too long and further below feature does not work properly. record dont filter with each letter typed. records only shows up when when make full selection example. i need to type “AR1” in text filed and usually records filter down with each letter types “A”, “AR” then “AR1” but when i used custom query and build query. the dynamic function only works until i enter full “AR1” nothing happens letter by letter
Thanks Brian. What i did alternatively, i used views in MySql, created full union in view and used view and data source in Wappler. this turned easy for my case