Allow deep relationships in reports, lookup-display fields

Allow deep relationships in reports, lookup-display fields

Consider the following:
I have four tables, A, B, C, D
A has two columns: A.ID (primary key), A.BID (foreign key from B)
B has two columns: B.ID (primary key), B.CID (foreign key from C)
C has two columns: C.ID (primary key), C.DID (foreign key from D)
D has one column: D.ID (primary key)

I wish to create a report that displays all columns of the records where the relationship A->B->C->D exists (assume, for the purposes of this discussion, that B, C, and D also have columns that contain useful data and need to be included in the report)

In bone-basic T-SQL (the only kind of T-SQL I'm capable of, ha ha), this is something like:

select * from A
inner join B
on A.BID = B.ID
inner join C
on B.CID = C.ID
inner join D
on C.DID = D.ID

At present, according to Zoho Creator Support, this is not possible without first creating lookup fields in A that create relationships A->C and A->D, with scripts that make sure that A->C and A->D remain in line with B->C and C->D.

This is absurd. To permit Reports to be built that relate multiple tables across multiple relationships, I suggest that the "Select Related Form" element in the "Column Properties" section of the report be made recursive. That is, if I create a report based on A, and I click "select related form", I'll select B and it will show me B's columns. Then, "select related form" will appear at the bottom again, and I'll be able to select C and see C's columns, and so on.

Thank you for your time.

Edited to add: Similarly, it would be extremely useful if Display Fields for Lookups could themselves look inside Lookups. Current workarounds for this issue are more scripts and more bypassing legitimate relationships in favor of badly-designed pseudo-relationships. The existing system encourages kludges and band-aids, and discourages good database design practices.

    Access your files securely from anywhere









                          Zoho Developer Community




                                                • Desk Community Learning Series


                                                • Digest


                                                • Functions


                                                • Meetups


                                                • Kbase


                                                • Resources


                                                • Glossary


                                                • Desk Marketplace


                                                • MVP Corner


                                                • Word of the Day


                                                • Ask the Experts





                                                          Manage your brands on social media



                                                                Zoho TeamInbox Resources



                                                                    Zoho CRM Plus Resources

                                                                      Zoho Books Resources


                                                                        Zoho Subscriptions Resources

                                                                          Zoho Projects Resources


                                                                            Zoho Sprints Resources


                                                                              Qntrl Resources


                                                                                Zoho Creator Resources



                                                                                    Zoho CRM Resources

                                                                                    • CRM Community Learning Series

                                                                                      CRM Community Learning Series


                                                                                    • Kaizen

                                                                                      Kaizen

                                                                                    • Functions

                                                                                      Functions

                                                                                    • Meetups

                                                                                      Meetups

                                                                                    • Kbase

                                                                                      Kbase

                                                                                    • Resources

                                                                                      Resources

                                                                                    • Digest

                                                                                      Digest

                                                                                    • CRM Marketplace

                                                                                      CRM Marketplace

                                                                                    • MVP Corner

                                                                                      MVP Corner







                                                                                        Design. Discuss. Deliver.

                                                                                        Create visually engaging stories with Zoho Show.

                                                                                        Get Started Now


                                                                                          Zoho Show Resources

                                                                                            Zoho Writer

                                                                                            Get Started. Write Away!

                                                                                            Writer is a powerful online word processor, designed for collaborative work.

                                                                                              Zoho CRM コンテンツ






                                                                                                Nederlandse Hulpbronnen


                                                                                                    ご検討中の方