Solved

Filemaker DB's calculated field containing relationship data ( using list function.)

Posted on 2010-11-29
2
686 Views
Last Modified: 2012-05-10
Hi
    I have a Master & a Relation table. Projects And Teams assigned.

Projects And Teams.
One project will have more than 1 team involved. (One-to-Many relation)

Now in project table i have a calculated field "TeamList" which contain a comma separated list of related data from team table.

For Ex)
ProjectA will contain related data Team1,Team2,Team3

For this im using this calculation  which uses List function.
Substitute ( List ( team::team_name ) ; ¶ ; "," )


Now upto here it is working fine.

Now I need another add another filed as well to this calculated field
(related data from 2 fields appended together)

i.e,. Instead of TeamName1,TeamName2,TeamName3
I need
Team1[NoOfPeople in Team1],Team2[NoOfPeople in Team2],Team3[NoOfPeople in Team3]



Field1[field2], Field1[field2], Field1[field2] from relationship table.

I tried
Substitute ( List ( team::team_name & "[" & team::team_people_count & "]") ; ¶ ; "," )

But we can't have a expression inside List().

So how to do this ?
Team Table
------------------------
TeamName    NoOfPeople   Project   ..........
------------------------
TeamA          2         Project1
TeamB          3         Project1
TeamC          1           .
TeamD          5           . 
TeamE          8           .
TeamZ          12          .
TeamY          7
TeamX          9
-------------------------



Project Table
----------------------
ProjName   TeamList (Calculation as below)
----------------------
Project1    TeamA,TeamB,TeamC
Project2    TeamX,TeamY,TeamZ
----------------------


Calculation
--------------------
Substitute ( List ( team::team_name ) ; ¶ ; "," )

Instead of TeamA,TeamB,TeamC
I need TeamA[2],TeamB[3],TeamC[1]

Open in new window

0
Comment
Question by:BToTheAToTheBABA
2 Comments
 
LVL 25

Accepted Solution

by:
Will Loving earned 500 total points
ID: 34236139
The simplest way to do this is to create a field in  the Team table that concatenates the fields together - TeamDescription =  team_name & "[" & team_people_count & "]") -  and then just reference that calculation field in your list

List ( Team::TeamDescription )
0
 

Author Closing Comment

by:BToTheAToTheBABA
ID: 34236307
This is what you call as, "Thinking In Filemaker"
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question