danjacoby Posted January 29, 2002 Posted January 29, 2002 I've created a calc field containing the contents of a value list that consists of related fields from an external file. It takes a few seconds to come up, but that's another problem. The current problem occurs when I want to export the contents of this field. Unfortunately, when I export more than one record, the field doesn't take the time to recalculate for each record; as a result, the contents of the calc field from the first exported record gets exported over and over. Help.
danjacoby Posted February 3, 2002 Author Posted February 3, 2002 It's unstored. It has to be, since related records can be added/edited.
BobWeaver Posted February 4, 2002 Posted February 4, 2002 Hmmm, deja vu. I seem to remember this topic coming up before. http://www.fmforums.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=16&t=000471&p= The formula won't always update because Filemaker doesn't detect changes to the referenced data when it's referenced by valuelistitems. But, it does update if you reference an aggregate function. So the trick is to add a dummy reference to the related file like this: Left("",Count(RelatedFile::info)) which doesn't add anything to the calculation, but does force it to recalculate. So, your complete formula would be: Valuelistitems("Mainfile","ValuelistName")&Left("",Count(RelatedFile::info)) Don't know if that's the problem in this case, but you could give it a try.
danjacoby Posted February 4, 2002 Author Posted February 4, 2002 Haven't tried it, Bob, but thanx for the thought. I ended up creating a text field and had the export script set the text field to equal the calc field in all records updated since the last export. Then I export the text field.
Recommended Posts
This topic is 8329 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now