21 posts in this topic
How to display related field from another table on a layout?
Hi there, I've only been using Filemaker Pro 13 for two weeks. Most of what I've written is working well but I am really stumped on a very simple problem:
I have a field in my products table where the user can select a size from another table. This field shows the size name and works correctly. I then want to display related fields from the size table, so that after the user has selected a particular size, the height and width will automatically be displayed on the products layout. I have set up a relationship between the two tables, and set the height and width of the products table to be calculations, but the height and width never show up on the products screen.
How to fix this?
Using non-primary key as match field.
Hello all! Â First time poster here. Â I've built several Filemaker databases over the years, but have never had this issue. Â By the way, using Filemaker 13 on OS X 10.9.
I'm building an inventory database for my wife's company. Â Her business sells retail widgets. Â She usually has several thousand times in stock. Â The unusual aspect (for my purposes) of this business model is that every widget is unique and has it's own serial number. Â The serial number contains data with related info for that particular widget. Â I am trying to create this solution so that as an invoice is created, the widget's bar code is scanned and entered into the line item portal on the invoice, the related data (category, description, price) from the Widgets table is displayed on this line item.
When I tab to the line item in the portal, I enter the serial number in appropriate field, but I cannot get get the remaining, related fields I am looking for to display. Â The ID_SerialNumber field is indexed, but it is not the primary key for the Widgets table. Â I have a field call ID_Widget (serialized, auto-enter on creation) which is the primary key.
I have found a workaround (see pictures), by which I include a field in the portal, LineItems::IDf_Widget. Â By entering the associated number for the primary key, the remaining data autofills in the portal fields just like I want. Â However, this is not a practical solution because the intent is to scan barcodes to generate the invoices rapidly. Â With thousands of serial numbers, I cannot see a convenient method to enter only the related primary key field.
I have attached a picture of the database relationships and a shot of the invoice entry layout. Â I appreciate any and all help.