dbTalk Databases Forums  

relationship based on unstored calculation field / dynamic display of unique data

comp.databases.filemaker comp.databases.filemaker


Discuss relationship based on unstored calculation field / dynamic display of unique data in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
wollscheid@gmail.com
 
Posts: n/a

Default relationship based on unstored calculation field / dynamic display of unique data - 04-03-2007 , 08:28 AM






Hi,
I am stuck with the following, maybe simple, problem:

(simplified example)

- one table (T1) with two fields: items (F1,text) and unique/duplicate
(F2,calculation field, unstored, based on a self-joining relationship
in order to mark unique/duplicate)

Problem: I would like to display only the unique items from T1 in a
portal in a second table (T2, relationship:
unique(F2,T1)=unique(f1,T2). I can't do this because I can't establish
a relationship based upon an unstored calculation field.

Current solution: I implemented a second auto enter text field (F3) in
T1( auto enter value from calculation field F2) and based the
relationship on this new text field which I can store and index
(relationship: unique (F3, T1)=unique (f1,T2).

O.k. - great, this works, but this is not good enough.

Now, when I delete an item from T1, the relationship does not get
updated automatically. In other words, let's say I delete an item
which is three times in the database (T1). One is marked unique, the
other two are marked as duplicates. If I delete the one item which is
marked unique, the calculation field (T1,F2) gets updated for the two
other items left correctly (one will be marked unique, the other one
as duplicate), but not the auto-enter field (T1,F3). It looks like the
auto-enter field does not get updated upon changes in an unstored
calculation field. Therefore, the relational database table (T2) is
not going to display the unique items correctly - the formerly
duplicate item which is now unique is not displayed.

How could I solve this dynamic problem? Any help would be really
appreciated.

Bernd


Reply With Quote
  #2  
Old   
Grip
 
Posts: n/a

Default Re: relationship based on unstored calculation field / dynamic display of unique data - 04-03-2007 , 09:05 AM






On Apr 3, 7:28 am, wollsch... (AT) gmail (DOT) com wrote:
Quote:
Hi,
I am stuck with the following, maybe simple, problem:

(simplified example)

- one table (T1) with two fields: items (F1,text) and unique/duplicate
(F2,calculation field, unstored, based on a self-joining relationship
in order to mark unique/duplicate)

Problem: I would like to display only the unique items from T1 in a
portal in a second table (T2, relationship:
unique(F2,T1)=unique(f1,T2). I can't do this because I can't establish
a relationship based upon an unstored calculation field.

Current solution: I implemented a second auto enter text field (F3) in
T1( auto enter value from calculation field F2) and based the
relationship on this new text field which I can store and index
(relationship: unique (F3, T1)=unique (f1,T2).

O.k. - great, this works, but this is not good enough.

Now, when I delete an item from T1, the relationship does not get
updated automatically. In other words, let's say I delete an item
which is three times in the database (T1). One is marked unique, the
other two are marked as duplicates. If I delete the one item which is
marked unique, the calculation field (T1,F2) gets updated for the two
other items left correctly (one will be marked unique, the other one
as duplicate), but not the auto-enter field (T1,F3). It looks like the
auto-enter field does not get updated upon changes in an unstored
calculation field. Therefore, the relational database table (T2) is
not going to display the unique items correctly - the formerly
duplicate item which is now unique is not displayed.

How could I solve this dynamic problem? Any help would be really
appreciated.

Bernd
What version?

G



Reply With Quote
  #3  
Old   
wollscheid@gmail.com
 
Posts: n/a

Default Re: relationship based on unstored calculation field / dynamic display of unique data - 04-03-2007 , 09:41 AM



Filemaker 8.5


On Apr 3, 4:05 pm, "Grip" <g... (AT) cybermesa (DOT) com> wrote:
Quote:
On Apr 3, 7:28 am, wollsch... (AT) gmail (DOT) com wrote:



Hi,
I am stuck with the following, maybe simple, problem:

(simplified example)

- one table (T1) with two fields: items (F1,text) and unique/duplicate
(F2,calculation field, unstored, based on a self-joining relationship
in order to mark unique/duplicate)

Problem: I would like to display only the unique items from T1 in a
portal in a second table (T2, relationship:
unique(F2,T1)=unique(f1,T2). I can't do this because I can't establish
a relationship based upon an unstored calculation field.

Current solution: I implemented a second auto enter text field (F3) in
T1( auto enter value from calculation field F2) and based the
relationship on this new text field which I can store and index
(relationship: unique (F3, T1)=unique (f1,T2).

O.k. - great, this works, but this is not good enough.

Now, when I delete an item from T1, the relationship does not get
updated automatically. In other words, let's say I delete an item
which is three times in the database (T1). One is marked unique, the
other two are marked as duplicates. If I delete the one item which is
marked unique, the calculation field (T1,F2) gets updated for the two
other items left correctly (one will be marked unique, the other one
as duplicate), but not the auto-enter field (T1,F3). It looks like the
auto-enter field does not get updated upon changes in an unstored
calculation field. Therefore, the relational database table (T2) is
not going to display the unique items correctly - the formerly
duplicate item which is now unique is not displayed.

How could I solve this dynamic problem? Any help would be really
appreciated.

Bernd

What version?

G



Reply With Quote
  #4  
Old   
Grip
 
Posts: n/a

Default Re: relationship based on unstored calculation field / dynamic display of unique data - 04-03-2007 , 10:19 AM



You can use an unstored calculation in a relationship, but it will
only work one way, only if the calc is on the 'parent' side. By
parent in 7.0+, I don't mean anything intrinsic to the relationship
itself, but rather how it's being used. If your relationship is
T1::UnstoredCalcField = T2::TextField, then the layout should be based
on T1, showing the portal based on table T2. In essence, Filemaker
can 'filter' stored values through the one instance of the unstored
calc (the live record), but it can't 'pull' all the unstored calc
values.


Grip

On Apr 3, 8:41 am, wollsch... (AT) gmail (DOT) com wrote:
Quote:
Filemaker 8.5

On Apr 3, 4:05 pm, "Grip" <g... (AT) cybermesa (DOT) com> wrote:

On Apr 3, 7:28 am, wollsch... (AT) gmail (DOT) com wrote:

Hi,
I am stuck with the following, maybe simple, problem:

(simplified example)

- one table (T1) with two fields: items (F1,text) and unique/duplicate
(F2,calculation field, unstored, based on a self-joining relationship
in order to mark unique/duplicate)

Problem: I would like to display only the unique items from T1 in a
portal in a second table (T2, relationship:
unique(F2,T1)=unique(f1,T2). I can't do this because I can't establish
a relationship based upon an unstored calculation field.

Current solution: I implemented a second auto enter text field (F3) in
T1( auto enter value from calculation field F2) and based the
relationship on this new text field which I can store and index
(relationship: unique (F3, T1)=unique (f1,T2).

O.k. - great, this works, but this is not good enough.

Now, when I delete an item from T1, the relationship does not get
updated automatically. In other words, let's say I delete an item
which is three times in the database (T1). One is marked unique, the
other two are marked as duplicates. If I delete the one item which is
marked unique, the calculation field (T1,F2) gets updated for the two
other items left correctly (one will be marked unique, the other one
as duplicate), but not the auto-enter field (T1,F3). It looks like the
auto-enter field does not get updated upon changes in an unstored
calculation field. Therefore, the relational database table (T2) is
not going to display the unique items correctly - the formerly
duplicate item which is now unique is not displayed.

How could I solve this dynamic problem? Any help would be really
appreciated.

Bernd

What version?

G



Reply With Quote
  #5  
Old   
wollscheid@gmail.com
 
Posts: n/a

Default Re: relationship based on unstored calculation field / dynamic display of unique data - 04-03-2007 , 11:49 AM



Thanks for the information Grip, but this will not work in my specific
case.

Do I have any other options?

Bernd


Reply With Quote
  #6  
Old   
Grip
 
Posts: n/a

Default Re: relationship based on unstored calculation field / dynamic display of unique data - 04-03-2007 , 12:48 PM



On Apr 3, 10:49 am, wollsch... (AT) gmail (DOT) com wrote:
Quote:
Thanks for the information Grip, but this will not work in my specific
case.

Do I have any other options?

Bernd
This newsgroup (like most and with good reason) does not permit the
posting of files. I recommend going to:

http://www.fmforums.com/forum/

and posting your question with a sample of your file there.

G



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.