Dear @admin,
I've read many old posts about this very question and just wondered, is this now possible to achieve in the builder itself by simply combining the 2?
Scenario
I have
Organisations,
Clients &
Projects tables. The organisations are
local authorities and schools and can and often do, have
multiple addresses/sites and telephone numbers - therefore, the organisations table stores a main address. Organisations are 'parents' to clients where clients are in essence, a department of the organisation. Organisations become Clients when they are added to a project, at which point a separate address may need to be added.
Therefore, I'm now going to be adding a Contacts table in which to store related addresses with an FK to the client record. I know this may sound over-complicated but, I have 10k + records for organisations to populate and in the interest of keeping the DB normalised, I need to do it this way - so some clients will have 20 contacts (clients table) and others will just have one - their organisation address.
What I'm aiming for
- An organisation fly view that displays all of the organisation details with a grid of secondary addresses from Contacts grouped by Clients (departments0
- Similarly, a client fly view that displays all of it's contact details in a grid
If this isn't possible to achieve in the builder alone, am I right in thinking that I need to;
- Copy all of the referenced vars from the view.html.php file of the grid into the view.html.php file for the fly
- Add the output of the grid from the default.php in the fly view
?
Do I need to add an empty grid to my target fly views?
Also, is there anything I've missed?
Many thanks,
Gez