dbTalk Databases Forums  

Creation and Modification date location

comp.databases.filemaker comp.databases.filemaker


Discuss Creation and Modification date location in the comp.databases.filemaker forum.



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

Default Creation and Modification date location - 01-08-2007 , 02:05 PM






Hi,

I am new to FM7+ (currently trying to learn 8.5).

Is it a reasonable approach to create a single table to hold values
for all the files such as:

- Creation date/time
- Modification date/time
- Reject date/time

etc.

In version prior to 7, this was more or less nosense, as there were
other more important priorities to dedicate a file to (given the 50
files limit). But as in version 8.5 there is no such limitation, it
might be more productive to have a single table for those values and
inlcude the foreign keys for tables that might make use of the records
in this table.

Is this completely mad?

I would appreciate your opinion and ideas about this issue.

Thanks

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

Default Re: Creation and Modification date location - 01-08-2007 , 05:03 PM






I don't exactly see what you want. But it is not logical to store a
multitude of dates and times, just to relate to them. And if you need each
record (or each set of date/time) just once there is no reason why you
should split the data from the table where it realy belongs.

Relating data has its purpose in a one to many or a many to many
relationship. When it is strictly one on one just store the data in your
main table.

(Or I'm missing what you are trying to accomplish)


Ursus
"Carlos Pereira" <carlosp (AT) nnhotmail (DOT) com> schreef in bericht
news:tk85q2th3p0064jovbvvbt0t853e0ev495 (AT) 4ax (DOT) com...
Quote:
Hi,

I am new to FM7+ (currently trying to learn 8.5).

Is it a reasonable approach to create a single table to hold values
for all the files such as:

- Creation date/time
- Modification date/time
- Reject date/time

etc.

In version prior to 7, this was more or less nosense, as there were
other more important priorities to dedicate a file to (given the 50
files limit). But as in version 8.5 there is no such limitation, it
might be more productive to have a single table for those values and
inlcude the foreign keys for tables that might make use of the records
in this table.

Is this completely mad?

I would appreciate your opinion and ideas about this issue.

Thanks



Reply With Quote
  #3  
Old   
Carlos Pereira
 
Posts: n/a

Default Re: Creation and Modification date location - 01-09-2007 , 01:24 AM



Thank you Ursus,

Well, it happens that in many ocassions there are several Creation
dates, several Modifications dates, etc. THe reson for this is that a
record might be created by a user, then modified by a second user,
then desactivated (a client might teporarily be put away, then
recovered), then activated, etc.

As I see, I have the option to create those fields in the original
file as needed (not a good idea, I guess) or create a bunch or fields
to be ready for such situations, and create scripts to move the
dates/times from the original field to the Store fields (there can be
only one Creation date at the time, and the user wants to see the
Latest creation date...

What do you think now?


On Tue, 9 Jan 2007 00:03:18 +0100, "Ursus" <ursus.kirk (AT) wanadoo (DOT) nl>
wrote:

Quote:
I don't exactly see what you want. But it is not logical to store a
multitude of dates and times, just to relate to them. And if you need each
record (or each set of date/time) just once there is no reason why you
should split the data from the table where it realy belongs.

Relating data has its purpose in a one to many or a many to many
relationship. When it is strictly one on one just store the data in your
main table.

(Or I'm missing what you are trying to accomplish)


Ursus
"Carlos Pereira" <carlosp (AT) nnhotmail (DOT) com> schreef in bericht
news:tk85q2th3p0064jovbvvbt0t853e0ev495 (AT) 4ax (DOT) com...
Hi,

I am new to FM7+ (currently trying to learn 8.5).

Is it a reasonable approach to create a single table to hold values
for all the files such as:

- Creation date/time
- Modification date/time
- Reject date/time

etc.

In version prior to 7, this was more or less nosense, as there were
other more important priorities to dedicate a file to (given the 50
files limit). But as in version 8.5 there is no such limitation, it
might be more productive to have a single table for those values and
inlcude the foreign keys for tables that might make use of the records
in this table.

Is this completely mad?

I would appreciate your opinion and ideas about this issue.

Thanks


Reply With Quote
  #4  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Creation and Modification date location - 01-09-2007 , 01:45 AM



Why?

"Carlos Pereira" <carlosp- (AT) nnhotmail (DOT) com> wrote

Quote:
As I see, I have the option to create those fields in the original
file as needed (not a good idea, I guess)



Reply With Quote
  #5  
Old   
Ursus
 
Posts: n/a

Default Re: Creation and Modification date location - 01-09-2007 , 03:45 AM



I tend to agree with Bill. Why would you want such a detailed reference?

My guess is that if you really really need such a complicated system, I
would choose for a one to many relationship. Using a recordID to link the
records. But again: WHY?

"Bill Marriott" <wjm (AT) wjm (DOT) org> schreef in bericht
news:05qdnYKEIPYryz7YnZ2dnUVZ_qWvnZ2d (AT) comcast (DOT) com...
Quote:
Why?

"Carlos Pereira" <carlosp- (AT) nnhotmail (DOT) com> wrote in message
news:8hg6q2lkk10lp3df73imurfmqbhs65104c (AT) 4ax (DOT) com...
As I see, I have the option to create those fields in the original
file as needed (not a good idea, I guess)





Reply With Quote
  #6  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Creation and Modification date location - 01-09-2007 , 06:52 AM



No, I can understand the desire to track changes to records. What I was
questioning was why the poster felt it was a bad idea to keep them in the
original/source table. I don't see a drawback to having TableName::Modified
existing in several tables. Conversely, I don't see an advantage (in fact,
several disadvantages) to having them all in a separate table.

"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote

Quote:
I tend to agree with Bill. Why would you want such a detailed reference?

My guess is that if you really really need such a complicated system, I
would choose for a one to many relationship. Using a recordID to link the
records. But again: WHY?

"Bill Marriott" <wjm (AT) wjm (DOT) org> schreef in bericht
news:05qdnYKEIPYryz7YnZ2dnUVZ_qWvnZ2d (AT) comcast (DOT) com...
Why?

"Carlos Pereira" <carlosp- (AT) nnhotmail (DOT) com> wrote in message
news:8hg6q2lkk10lp3df73imurfmqbhs65104c (AT) 4ax (DOT) com...
As I see, I have the option to create those fields in the original
file as needed (not a good idea, I guess)







Reply With Quote
  #7  
Old   
Carlos Pereira
 
Posts: n/a

Default Re: Creation and Modification date location - 01-09-2007 , 07:14 AM




OK. I will try to explain.

A client/contact, etc, may move from Active to Disabled state several
times during its lifetime. The reasons can vary, but this is a real
life situation in the company that is going to use the database I am
building.

I need to record:

Creation User
Creation Date
Creation Time
Modification User
Modification Date
Modification Time
Demoting User*
Demoting Date
Demoting Time

* For Demoting I mean disactivating/disabling the record.

Each of this changes has to be recorded but also need to be available
for auditing (an auditor needs to be able to track who has made the
change and when). The users needs to see only one Creation
User/Date/Time. Thus, this needs to be the last user that modified the
record (or the user who last activated an inactivated record, or the
user who created the record initially - asuming no modifications has
been made).

There is no limit to the number of times that this cicle can go on: a
given record can be enabled/disabled several times (an average of 3
times) in a period, say of a year. I need to keeep track of all this.
I do not know in advance how many changes I need to keep track off.
Therefore, I do not know in advance how many fields I need (assuming
they are kept in the original table). In fact, I do not even know if a
given table is ever going to need this kind of functionality. It can
happen (of course I know for sure some tables do need it).

Does this give you a better picture of the issue?

Thank you for your previous replies.



On Tue, 9 Jan 2007 07:52:13 -0500, "Bill Marriott" <wjm (AT) wjm (DOT) org>
wrote:

Quote:
No, I can understand the desire to track changes to records. What I was
questioning was why the poster felt it was a bad idea to keep them in the
original/source table. I don't see a drawback to having TableName::Modified
existing in several tables. Conversely, I don't see an advantage (in fact,
several disadvantages) to having them all in a separate table.

"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote in message
news:45a3642e$0$75574$dbd45001 (AT) news (DOT) wanadoo.nl...
I tend to agree with Bill. Why would you want such a detailed reference?

My guess is that if you really really need such a complicated system, I
would choose for a one to many relationship. Using a recordID to link the
records. But again: WHY?

"Bill Marriott" <wjm (AT) wjm (DOT) org> schreef in bericht
news:05qdnYKEIPYryz7YnZ2dnUVZ_qWvnZ2d (AT) comcast (DOT) com...
Why?

"Carlos Pereira" <carlosp- (AT) nnhotmail (DOT) com> wrote in message
news:8hg6q2lkk10lp3df73imurfmqbhs65104c (AT) 4ax (DOT) com...
As I see, I have the option to create those fields in the original
file as needed (not a good idea, I guess)






Reply With Quote
  #8  
Old   
Ursus
 
Posts: n/a

Default Re: Creation and Modification date location - 01-09-2007 , 09:28 AM



The way I see it,

Creation User, Creation Date, Creation Time can be made one time when
creating the record.

From there on it depends on what you want to do with those dates and times.
When you only want to review them physicaly (look at them) I would go for
one large field per item. Where each date (or time or user) is stored but on
a seperate line. The field itself would be not editable, but changed through
a script when the user entered this record. So you would have a main layout,
or a search layout where the user has to push a button to start changing the
record. This way you could do with only six fields extra.

All becomes more complicated if you want to take automated actions dependent
on the contents of a field. You could make 10 fields each item (presuming
you would never go over 10 users or changes)

or you could use a field each with 10 repetitions (i would NOT really
recomend this, but then again I'm still not a personal favorite of
repetitions)

Or you could stick with my first suggestion and create a related table, this
is flexible enough to work with, but might get complicated when you need
automated decisions to be made.

Lets look what others might come up with.


Ursus

"Carlos Pereira" <carlosp- (AT) nnhotmail (DOT) com> schreef in bericht
news:uk47q2tgkkvujgm50tgs0nvcn3jmt1ka6p (AT) 4ax (DOT) com...
Quote:
OK. I will try to explain.

A client/contact, etc, may move from Active to Disabled state several
times during its lifetime. The reasons can vary, but this is a real
life situation in the company that is going to use the database I am
building.

I need to record:

Creation User
Creation Date
Creation Time
Modification User
Modification Date
Modification Time
Demoting User*
Demoting Date
Demoting Time

* For Demoting I mean disactivating/disabling the record.

Each of this changes has to be recorded but also need to be available
for auditing (an auditor needs to be able to track who has made the
change and when). The users needs to see only one Creation
User/Date/Time. Thus, this needs to be the last user that modified the
record (or the user who last activated an inactivated record, or the
user who created the record initially - asuming no modifications has
been made).

There is no limit to the number of times that this cicle can go on: a
given record can be enabled/disabled several times (an average of 3
times) in a period, say of a year. I need to keeep track of all this.
I do not know in advance how many changes I need to keep track off.
Therefore, I do not know in advance how many fields I need (assuming
they are kept in the original table). In fact, I do not even know if a
given table is ever going to need this kind of functionality. It can
happen (of course I know for sure some tables do need it).

Does this give you a better picture of the issue?

Thank you for your previous replies.



On Tue, 9 Jan 2007 07:52:13 -0500, "Bill Marriott" <wjm (AT) wjm (DOT) org
wrote:

No, I can understand the desire to track changes to records. What I was
questioning was why the poster felt it was a bad idea to keep them in the
original/source table. I don't see a drawback to having
TableName::Modified
existing in several tables. Conversely, I don't see an advantage (in fact,
several disadvantages) to having them all in a separate table.

"Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote in message
news:45a3642e$0$75574$dbd45001 (AT) news (DOT) wanadoo.nl...
I tend to agree with Bill. Why would you want such a detailed reference?

My guess is that if you really really need such a complicated system, I
would choose for a one to many relationship. Using a recordID to link
the
records. But again: WHY?

"Bill Marriott" <wjm (AT) wjm (DOT) org> schreef in bericht
news:05qdnYKEIPYryz7YnZ2dnUVZ_qWvnZ2d (AT) comcast (DOT) com...
Why?

"Carlos Pereira" <carlosp- (AT) nnhotmail (DOT) com> wrote in message
news:8hg6q2lkk10lp3df73imurfmqbhs65104c (AT) 4ax (DOT) com...
As I see, I have the option to create those fields in the original
file as needed (not a good idea, I guess)








Reply With Quote
  #9  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Creation and Modification date location - 01-09-2007 , 11:10 AM



I understand your desire, as many types of businesses need to do
extensive logging of changes. If you are set on having this log
recorded in a separate table, I would look at using one of the free
script triggering plugins that have been discussed many times in this
group. That way whenever one of your fields of interest gets changed,
the script would automatically run to create the new related Log record.

But my preference really would lean toward a single text field within
the same file. Record a log of changes all within this field by making
it an auto-enter calc that updates itself whenever your desired trigger
fields (local to that table) are changed. For this you don't need the
plug-in and it should provide you a form that is sufficient for viewing
on screen.


Carlos Pereira wrote:
Quote:
Hi,

I am new to FM7+ (currently trying to learn 8.5).

Is it a reasonable approach to create a single table to hold values
for all the files such as:

- Creation date/time
- Modification date/time
- Reject date/time

etc.

In version prior to 7, this was more or less nosense, as there were
other more important priorities to dedicate a file to (given the 50
files limit). But as in version 8.5 there is no such limitation, it
might be more productive to have a single table for those values and
inlcude the foreign keys for tables that might make use of the records
in this table.

Is this completely mad?

I would appreciate your opinion and ideas about this issue.

Thanks
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Professional Solutions, Inc. Los Angeles

FileMaker 8 Certified Developer
Associate Member, FileMaker Solutions Alliance


Reply With Quote
  #10  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Creation and Modification date location - 01-09-2007 , 02:19 PM



Interesting this was just announced today:

http://www.worldsync.com/audittrail/

* Capture all Add, Change and Delete actions to separate table [!]
* Keeps field-level change history
* Provide for field- and record-level data recovery
* Supports custom events like user login/out or layout change



"Howard Schlossberg" <howard (AT) antispahm (DOT) fmprosolutions.com> wrote

Quote:
I understand your desire, as many types of businesses need to do extensive
logging of changes. If you are set on having this log recorded in a
separate table, I would look at using one of the free script triggering
plugins that have been discussed many times in this group. That way
whenever one of your fields of interest gets changed, the script would
automatically run to create the new related Log record.

But my preference really would lean toward a single text field within the
same file. Record a log of changes all within this field by making it an
auto-enter calc that updates itself whenever your desired trigger fields
(local to that table) are changed. For this you don't need the plug-in
and it should provide you a form that is sufficient for viewing on screen.


Carlos Pereira wrote:
Hi,

I am new to FM7+ (currently trying to learn 8.5).

Is it a reasonable approach to create a single table to hold values
for all the files such as:

- Creation date/time
- Modification date/time
- Reject date/time

etc.

In version prior to 7, this was more or less nosense, as there were
other more important priorities to dedicate a file to (given the 50
files limit). But as in version 8.5 there is no such limitation, it
might be more productive to have a single table for those values and
inlcude the foreign keys for tables that might make use of the records
in this table.

Is this completely mad?

I would appreciate your opinion and ideas about this issue.

Thanks

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Professional Solutions, Inc. Los Angeles

FileMaker 8 Certified Developer
Associate Member, FileMaker Solutions Alliance



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.