dbTalk Databases Forums  

Standard Items in Value List

comp.databases.filemaker comp.databases.filemaker


Discuss Standard Items in Value List in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
chris_wood@silverbirches.com.hk
 
Posts: n/a

Default Standard Items in Value List - 05-06-2007 , 08:13 PM






Dear All,

I would like to a create a value list that contains 'standard' rows as
well as rows drawn from a relationship i.e.

Menu Items Table:

Lunch Chicken
Lunch Noodles
Dinner Fish
Dinner Beef
Standard Rolls
Standard Tea

If in a Menus table I select Dinner I want to show in my items popup
list Fish, Beef, Rolls & Tea, similarly if I select Lunch I want to
show Chicken, Noodles, Rolls & Tea. How is it possible to add the
additional 'Standard' catagory.

Thanks for your help

Chris


Reply With Quote
  #2  
Old   
d-42
 
Posts: n/a

Default Re: Standard Items in Value List - 05-07-2007 , 04:37 AM






On May 6, 6:13 pm, "chris_w... (AT) silverbirches (DOT) com.hk"
<chris_w... (AT) silverbirches (DOT) com.hk> wrote:
Quote:
Dear All,

I would like to a create a value list that contains 'standard' rows as
well as rows drawn from a relationship i.e.

Menu Items Table:

Lunch Chicken
Lunch Noodles
Dinner Fish
Dinner Beef
Standard Rolls
Standard Tea

If in a Menus table I select Dinner I want to show in my items popup
list Fish, Beef, Rolls & Tea, similarly if I select Lunch I want to
show Chicken, Noodles, Rolls & Tea. How is it possible to add the
additional 'Standard' catagory.

Thanks for your help

Chris
here are a couple ways: (the capital P refers to the newline symbol,
the "Paragraph" marker in filemaker.)

1) duplicate the rolls and tea data once for lunch and once for
dinner. Its clumsy but effective, and simple.

2) instead of "standard", put in the 2 lines:
dinnerPlunch

It will act as a multiline key, and match both lunch and dinner

3) define a stored index calc field:
keyfield = if(categoryfield = "Standard";
"DinnerPLunch";categoryfield)
and use the calc as the relationship key. It basically the same as 2
above, but lets you retain the 'Lunch, Dinner, and Standard' values.

4) currently you've got a 'lunch or dinner' field, that the user
selects, that drives the relationship. define an unstored calc based
on that:
matchfield = selectionfield & "PStandard"
and define the relationship based on this.

This accomplishes the same thing as 2 or 3 above, except moves the
multiline key to the other side of the relationship.

There is no best solution, although I'd say #4 is better than #3 in
most cases.

-cheers,
Dave



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.