![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've got a couple of workarounds, but would dramatically prefer to know my mistake here. Suggestions? |
#3
| |||
| |||
|
|
I'm converting an FMP5 solution to FMP8.5. A count in a merge field which was working correctly under FMP5 is no longer updating correctly. The field's indexing is correctly marked "do not store-- recalculate when needed". There's a bit more to it. I'm also combining multiple files into a single file with multiple tables. If I leave the files separate, the count still updates correctly, even after conversion to FMP8.5... but not when everything is in a single, multi-table file. Here's what I've got: Table 1: Clients Table 2: Activities The tables are related by a primary key in Clients to a foreign key in Activities. (PKEYClients to fkeyClients) Activities also has a self-relationship (fkeyClients to fkeyClients) which allows Activities layouts to show a portal of other related activities for the currently shown client. The relationship is named R_SelfActivities. Activities also has a field, cActivityCount = Count ( R_SelfActivities::Activity Comments ). This calc field is included in a merge field on the Clients layout. Adding new Activity Comments via the portal on the Clients layout no longer updates the count. The count will update if I move to the next record then back, or change to preview then back, etc. For compatibility with very old data, it has to be this Comments field which is counted. I've got a couple of workarounds, but would dramatically prefer to know my mistake here. Suggestions? Thanks, -Rob Steward |
![]() |
| Thread Tools | |
| Display Modes | |
| |