dbTalk Databases Forums  

Newbie: use ComboList with description & ID

comp.databases.filemaker comp.databases.filemaker


Discuss Newbie: use ComboList with description & ID in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nick
 
Posts: n/a

Default Newbie: use ComboList with description & ID - 05-19-2011 , 03:57 AM






I'm Newbie of Filemaker Pro 11, I became from MS Access.
I'm trying to create a combo box connected to a table. (product form
with categories field)
I want to use the ID in the categories table joined with the
correspective IDCategories in the Product table.
In a Form I create a comboList that use the table of the categories,
but I can view always only the ID of the categories and not the
description.
Can i have (like in Access) one filed in a form joined with the ID but
displaying the description of the field?

Thanks for any suggestion
Best regards
Nick

Reply With Quote
  #2  
Old   
Josh Ormond
 
Posts: n/a

Default Re: Newbie: use ComboList with description & ID - 05-19-2011 , 11:21 AM






On a Mac it works fine with a Pop-up...but not on Windows the last time I tried it.

2 options:
1. Also include the description as a second field in the value list, and then place the related field right next to it, so it displays the description along side the ID in the value list.

2. Show only the second field in the value list. Place the ID field underthe related description field, so it hides it. Make the description fieldso you can enter it in browse mode (uncheck the box in the Inspector), that way when you click on the description, it actually enters the ID field...which shows you the value list with the descriptions listed for you.

Reply With Quote
  #3  
Old   
cortical
 
Posts: n/a

Default Re: Newbie: use ComboList with description & ID - 05-19-2011 , 06:47 PM



On 19/05/11 6:27 PM, Nick wrote:
Quote:
I'm Newbie of Filemaker Pro 11, I became from MS Access.

Quote:
I'm trying to create a combo box connected to a table. (product form
with categories field)
I want to use the ID in the categories table joined with the
correspective IDCategories in the Product table.
In a Form I create a comboList that use the table of the categories,
but I can view always only the ID of the categories and not the
description.
Can i have (like in Access) one filed in a form joined with the ID but
displaying the description of the field?

Thanks for any suggestion
Best regards
Nick


you need a relationship, i.e. a Categories TOC (table occurrance)
attached to Product TOC via category_id

TOC:

Product::category_id to Categories::category_id


if the product was entered into a invoice line item table for example,
then a 'hopped rel' would be required to display the line items with
product category in a portal on an invoice form :

Invoice::invoice_id to InvoiceLines::invoice_id and
InvoiceLines::category_id::Category::category_id



' combolist' is called 'Value List' in FM


When you attach the VL to the Product::category_id , if you add it as a
PUM ( not as a DDL) to the Product::category_id field , and define the
VL to show the category_id (first) and category_name (second) and show
only second field, the PUM will list only the category names, but
actually enter the category_id into the Product::category_id field. Add
a second Product::category_id field , without the attached VL, as a
test to show this working.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.