DBKit : a layout with 1 Listbox whose columns display data from several tables

I am developing a small quotation database whose main window resembles the « Search Customers » example from « DBKit Desktop Example » (the one you get after clicking on the “separate” button, where the search results and data entry fields are on two different windows). So I have one window with one large list box with many columns.

My problem is this: my SQLite database has several tables with relational links (unlike the “Search Customers” example). I need to display information in certain columns that are in parent tables of the table displayed in the list box in order to display the values instead of the keys. Looking at the online help, I understand that I need as many connectors as I have tables involved in the relationship.

However, I do not know if DBKit is capable of doing this, nor how to proceed to display the values of the parent tables instead of the keys of the main table in the different columns of a single Listbox.

I just started using Xojo a few days ago and I’m not a development pro, unlike many of those who regularly visit this forum…

To be as specific as possible, using the example from the beginning, let’s imagine that the Listbox displays the “customers” table, as is already the case, but that the name of the city, for example, is in a parent table called “City”, which has a relational link to “customers” and a foreign key in the “customers” table. How can I display the names of the cities instead of the keys?

I don’t use DBKit but normally for data like this you’d use a database View to put all that information together into single table-like place. I do not know if DBKit properly handles views (since they’re read-only).

Hi Philippe,

The ListBox in the current shipping version of DBKit cannot automatically display values from related tables. However, the ListBox in the version that is under development can. I am hoping to have it available sometime in January. It has a LOT of new capabilities and is even easier to use.

While this forum is frequented by full-time professional developers it is also equally the home of those new to Xojo, new to programming and those that have programming experience but don’t do it full-time. All are absolutely welcome.

Thanks to Bob for the views!

And to Geoff for your warm welcome, kindness and help. I can’t wait to see the new version of DBKit coming out in January! This tool is really great for someone like me who is trying to develop their own business software. Thank you for your work and the attention you give to everyone on this forum.