![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Working in FM6 (ok, I know, time to upgrade eh?) I am creating a table of publication names using a repeating field with 20 repetitions. This table will then be the source for a value list in a related file. Works great, just like it's suppose to. The repeating field currently uses 5 out of the 20 repetitions. I've used a related file for a couple of reasons. FM 6 does not support repetitions on global fields. |
|
Adding the repeating fields to the main document doesn't work because when the info is added it stays with a specific record, thus there is no permanence to the information. The record could be deleted. Placing this info a separate file and then relating it to the main document also fits with the general database model. I can also secure it. I am working on a script that will allow users to add publications to the repeating field. Is there a way to tell FM 6 to use a specific repetitions within the repeating field or table? When you use the SetField function on a repeating field you can determine which repetion to use but can this be done dynamically? For example, text field 'publications' = repeating field with 20 reptitions. Repetitions 1-3 contain data. I want to add new data to Reptition 4. If I tell FM to use repeation 1, 2, or 3, it will overwrite the existing data. |
#4
| |||
| |||
|
|
In article <4iuhf.130636$S4.105175@edtnps84>, "pcourterelle" someone (AT) ms (DOT) com> wrote: Working in FM6 (ok, I know, time to upgrade eh?) I am creating a table of publication names using a repeating field with 20 repetitions. This table will then be the source for a value list in a related file. Works great, just like it's suppose to. The repeating field currently uses 5 out of the 20 repetitions. I've used a related file for a couple of reasons. FM 6 does not support repetitions on global fields. Really?!?!? FileMaker 5.5 does. If you're right then they must have taken it out, which is more proof that repeating fields are best avoided. Adding the repeating fields to the main document doesn't work because when the info is added it stays with a specific record, thus there is no permanence to the information. The record could be deleted. Placing this info a separate file and then relating it to the main document also fits with the general database model. I can also secure it. I am working on a script that will allow users to add publications to the repeating field. Is there a way to tell FM 6 to use a specific repetitions within the repeating field or table? When you use the SetField function on a repeating field you can determine which repetion to use but can this be done dynamically? For example, text field 'publications' = repeating field with 20 reptitions. Repetitions 1-3 contain data. I want to add new data to Reptition 4. If I tell FM to use repeation 1, 2, or 3, it will overwrite the existing data. I'm not sure I follow all that, but repeating fields aren't usually a good choice. It might be better to have the related file use a separate record for each value, then the user can simply add / delete records to change the value list - that's normally how this sort of thing is done. There's no way to set a variable repetition of a repeating field (another reason not to use them), so that means you're stuck with a long set of nested If-Then statements: If (IsEmpty(GetRepetition(RepeatField, 1))) Set Field (RepeatField -1, MyData) Else If (IsEmpty(GetRepetition(RepeatField, 2))) Set Field (RepeatField -2, MyData) Else If ... ... Else If (IsEmpty(GetRepetition(RepeatField, 20))) Set Field (RepeatField -20, MyData) End If End If ... End If There are other more complicated ways involving the Extend function to set a particular repetition, but they're really not worth the hassle. Helpful Harry Hopefully helping harassed humans happily handle handiwork hardships ;o) |
#5
| |||
| |||
|
|
In article <4iuhf.130636$S4.105175@edtnps84>, "pcourterelle" someone (AT) ms (DOT) com> wrote: Working in FM6 (ok, I know, time to upgrade eh?) I am creating a table of publication names using a repeating field with 20 repetitions. This table will then be the source for a value list in a related file. Works great, just like it's suppose to. The repeating field currently uses 5 out of the 20 repetitions. I've used a related file for a couple of reasons. FM 6 does not support repetitions on global fields. Really?!?!? FileMaker 5.5 does. If you're right then they must have taken it out, which is more proof that repeating fields are best avoided. Adding the repeating fields to the main document doesn't work because when the info is added it stays with a specific record, thus there is no permanence to the information. The record could be deleted. Placing this info a separate file and then relating it to the main document also fits with the general database model. I can also secure it. I am working on a script that will allow users to add publications to the repeating field. Is there a way to tell FM 6 to use a specific repetitions within the repeating field or table? When you use the SetField function on a repeating field you can determine which repetion to use but can this be done dynamically? For example, text field 'publications' = repeating field with 20 reptitions. Repetitions 1-3 contain data. I want to add new data to Reptition 4. If I tell FM to use repeation 1, 2, or 3, it will overwrite the existing data. I'm not sure I follow all that, but repeating fields aren't usually a good choice. It might be better to have the related file use a separate record for each value, then the user can simply add / delete records to change the value list - that's normally how this sort of thing is done. There's no way to set a variable repetition of a repeating field (another reason not to use them), so that means you're stuck with a long set of nested If-Then statements: If (IsEmpty(GetRepetition(RepeatField, 1))) Set Field (RepeatField -1, MyData) Else If (IsEmpty(GetRepetition(RepeatField, 2))) Set Field (RepeatField -2, MyData) Else If ... ... Else If (IsEmpty(GetRepetition(RepeatField, 20))) Set Field (RepeatField -20, MyData) End If End If ... End If There are other more complicated ways involving the Extend function to set a particular repetition, but they're really not worth the hassle. Helpful Harry Hopefully helping harassed humans happily handle handiwork hardships ;o) |
#6
| |||
| |||
|
|
If you're still at the design stage then my suggestion to you is to get rid of the repeating fields. Yes, FileMaker supports them but they are difficult to work with eg. show me a filtered value list of specific types of publications No, there is no way to dynamically tell FM which repetition to use unless you script it something along the lines; If (isempty(rep1) Set rep1 to the data If (isempty(rep2) Set rep1 to the data endif end if |
#7
| |||
| |||
|
|
Working in FM6 (ok, I know, time to upgrade eh?) I am creating a table of publication names using a repeating field with 20 repetitions. This table will then be the source for a value list in a related file. Works great, just like it's suppose to. The repeating field currently uses 5 out of the 20 repetitions. I've used a related file for a couple of reasons. FM 6 does not support repetitions on global fields. Adding the repeating fields to the main document doesn't work because when the info is added it stays with a specific record, thus there is no permanence to the information. The record could be deleted. Placing this info a separate file and then relating it to the main document also fits with the general database model. I can also secure it. I am working on a script that will allow users to add publications to the repeating field. Is there a way to tell FM 6 to use a specific repetitions within the repeating field or table? When you use the SetField function on a repeating field you can determine which repetion to use but can this be done dynamically? For example, text field 'publications' = repeating field with 20 reptitions. Repetitions 1-3 contain data. I want to add new data to Reptition 4. If I tell FM to use repeation 1, 2, or 3, it will overwrite the existing data. Any thoughts would help. Thanks phil |
#8
| |||
| |||
|
#9
| ||||
| ||||
|
|
Don't worry, be happy. In FM 8 it's yet impossible to use dinamic subindex for repeting fields. Worst.......... The EXTEND function isn't working anymore. I have the same problem. I have read hundreds of articles and some books and I've found in all of these, without exception!!! the same comment "Is better not to use repeating fields" In the real world, specifically speaking, Programming world, there is something called ARRAY (Unidimensional, Bidimensional, N-dimensional, wow!) Apparently FM has no notice about it..... yet. |
|
I want to ask to all those people that recomend using relations instead of repeting fields, how you can solve a problem where you want to display a kind of a grid where columns are internal users of the system (not FM security users) and rows are menu items (internal items). Each user has a unique field defined with 1000 repetitions and the "Authorization Layout"shows 30 different users plus the 1000 menu items. How can I put those 30 columns with 1000 rows each using relations? And when I have all the "clicks" in each repetition and I want to copy them back to the original field, I can't because extend function doesn't work anymore ............ |
|
Are someone working now to promise that in FM 15.0 we will have arrays (and in memory please!!!!!!!!!!!!!! not in global fields) |
|
thanks, sorry my english |
#10
| |||
| |||
|
|
Don't worry, be happy. In FM 8 it's yet impossible to use dinamic subindex for repeting fields. Worst.......... The EXTEND function isn't working anymore. I have the same problem. I have read hundreds of articles and some books and I've found in all of these, without exception!!! the same comment "Is better not to use repeating fields" In the real world, specifically speaking, Programming world, there is something called ARRAY (Unidimensional, Bidimensional, N-dimensional, wow!) Apparently FM has no notice about it..... yet. |
![]() |
| Thread Tools | |
| Display Modes | |
| |