![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
As I see, I have the option to create those fields in the original file as needed (not a good idea, I guess) |
#5
| |||
| |||
|
|
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) |
#6
| |||
| |||
|
|
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) |
#7
| |||
| |||
|
|
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) |
#8
| |||
| |||
|
|
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) |
#9
| |||
| |||
|
|
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 |
#10
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |