dbTalk Databases Forums  

Autoupdateble Drop-down

comp.databases.filemaker comp.databases.filemaker


Discuss Autoupdateble Drop-down in the comp.databases.filemaker forum.



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

Default Autoupdateble Drop-down - 01-12-2010 , 12:37 PM






Hi...

Please forgive my english!!!

I am making a database to store information on old photos by using FM9/10.

In this DB i have a feld "Person" as a dropdown in the tabel "Arkiv"

This dropdown gets the information from the field "Name" in the tabel
"Person"

When I edit a name in "Person" tabel, it dont update the "person" filed in
"Arkiv" tabel.

Can I make this tabel "autoupdateble"

I hope you understand what i mean, else i will explane some more :-)

//HB Nielsen

Denmark

Reply With Quote
  #2  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Autoupdateble Drop-down - 01-13-2010 , 02:04 AM






HB Nielsen <h.b.n (AT) mail (DOT) dk> wrote:

Quote:
In this DB i have a feld "Person" as a dropdown in the tabel "Arkiv"

This dropdown gets the information from the field "Name" in the tabel
"Person"
Create a number field __kp_PersonID in the person table. Use auto-enter
to give every record a unique number.

Quote:
When I edit a name in "Person" tabel, it dont update the "person" filed in
"Arkiv" tabel.
In the Arkiv table, create a number field _kf_PersonID to store the key
of the person.

Create a relation between the two tables: Person::__kp_PersonID =
Arkiv::_kf_PersonID

Display the related field Person::Name on the Arkiv layout.

Now the name of the person is stored in one place only. As soon as the
name changes, you will see it on the layout.

--
http://clk.ch

Reply With Quote
  #3  
Old   
HB Nielsen
 
Posts: n/a

Default Re: Autoupdateble Drop-down - 01-13-2010 , 11:38 AM



Will this also change already slected names, or only future entries?

//HB

"Christoph Kaufmann" <clk (AT) tele2 (DOT) ch> skrev i en meddelelse
news:1jc8375.851a931rxbcsuN%clk (AT) tele2 (DOT) ch...
Quote:
HB Nielsen <h.b.n (AT) mail (DOT) dk> wrote:

In this DB i have a feld "Person" as a dropdown in the tabel "Arkiv"

This dropdown gets the information from the field "Name" in the tabel
"Person"

Create a number field __kp_PersonID in the person table. Use auto-enter
to give every record a unique number.

When I edit a name in "Person" tabel, it dont update the "person" filed
in
"Arkiv" tabel.

In the Arkiv table, create a number field _kf_PersonID to store the key
of the person.

Create a relation between the two tables: Person::__kp_PersonID =
Arkiv::_kf_PersonID

Display the related field Person::Name on the Arkiv layout.

Now the name of the person is stored in one place only. As soon as the
name changes, you will see it on the layout.

--
http://clk.ch

Reply With Quote
  #4  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Autoupdateble Drop-down - 01-13-2010 , 12:18 PM



HB Nielsen <h.b.n (AT) mail (DOT) dk> wrote:

Quote:
Will this also change already slected names, or only future entries?
I assume already selected names are in data fields in your Arkiv table.
This data is independent from the data in your person table, so it
won't update.

I suggest you give each name in the person table a unique serial number,
create a field in the Arkiv table for this serial number and assign the
relevant serial number to each existing entry. In short: re-do the whole
thing. Then you won't need the existing name fields in the arkiv table,
you just put the related name field from the person table on the layout.
And these will, of course, always update, because it's the original
field itself.
--
http://clk.ch

Reply With Quote
  #5  
Old   
HB Nielsen
 
Posts: n/a

Default Re: Autoupdateble Drop-down - 01-13-2010 , 01:15 PM



Do you mean that I must enter the serial number for each person instead of
selecting the name in a dropdown list?


"Christoph Kaufmann" <clk (AT) tele2 (DOT) ch> skrev i en meddelelse
news:1jc9urr.urg501zwokeiN%clk (AT) tele2 (DOT) ch...
Quote:
HB Nielsen <h.b.n (AT) mail (DOT) dk> wrote:

Will this also change already slected names, or only future entries?

I assume already selected names are in data fields in your Arkiv table.
This data is independent from the data in your person table, so it
won't update.

I suggest you give each name in the person table a unique serial number,
create a field in the Arkiv table for this serial number and assign the
relevant serial number to each existing entry. In short: re-do the whole
thing. Then you won't need the existing name fields in the arkiv table,
you just put the related name field from the person table on the layout.
And these will, of course, always update, because it's the original
field itself.
--
http://clk.ch

Reply With Quote
  #6  
Old   
HB Nielsen
 
Posts: n/a

Default Re: Autoupdateble Drop-down - 01-13-2010 , 01:37 PM



or is it possible to create "update" script that can update i field??
I have 22 dropdown that gets data from the table "person" that need to be
updated when a name i changed.

//HB

"Christoph Kaufmann" <clk (AT) tele2 (DOT) ch> skrev i en meddelelse
news:1jc9urr.urg501zwokeiN%clk (AT) tele2 (DOT) ch...
Quote:
HB Nielsen <h.b.n (AT) mail (DOT) dk> wrote:

Will this also change already slected names, or only future entries?

I assume already selected names are in data fields in your Arkiv table.
This data is independent from the data in your person table, so it
won't update.

I suggest you give each name in the person table a unique serial number,
create a field in the Arkiv table for this serial number and assign the
relevant serial number to each existing entry. In short: re-do the whole
thing. Then you won't need the existing name fields in the arkiv table,
you just put the related name field from the person table on the layout.
And these will, of course, always update, because it's the original
field itself.
--
http://clk.ch

Reply With Quote
  #7  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Autoupdateble Drop-down - 01-14-2010 , 05:51 AM



HB Nielsen <h.b.n (AT) mail (DOT) dk> wrote:

Quote:
Do you mean that I must enter the serial number for each person instead of
selecting the name in a dropdown list?
Basically yes. If you create a value list that lists the serial number
and the name as a second field, have it sorted by the second field and
choose to display the second field only, you get the same experience:
you choose the name, but what gets entered into the field is the serial
number.
--
http://clk.ch

Reply With Quote
  #8  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Autoupdateble Drop-down - 01-14-2010 , 05:51 AM



HB Nielsen <h.b.n (AT) mail (DOT) dk> wrote:

Quote:
or is it possible to create "update" script that can update i field??
If you don't use serial numbers, i.e. a key field with a unique value in
every record, a value that can never ever be changed, you will regret it
sooner or later. You can not build the relation on the names because, as
it appers, they appear to change, and more important, because names are
not unique.

Quote:
I have 22 dropdown that gets data from the table "person" that need to be
updated when a name i changed.
Once the record has the proper serial number all those fields will be
related fields, showing the data of your person table, and therefore
always be updated. Build a proper relation based on a serial number, and
your problems are solved.
--
http://clk.ch

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.