January 5, 201214 yr I'm working on my first data separation model project and it has an Invoice table. There is also a related Payment table. The Invoice table has a calculation field that sums the Payment::Amount field in related records. It also has a Balance calculation field that subtracts Invoice::SumPayments from Invoice::Total. In the user interface file I've created an Invoice form layout on which I've placed a portal to an occurrence of the Payment table. Rather than the user entering payments directly into this portal the user clicks a button above the portal that runs a script that opens a window containing a layout in which the user enters the new Payment record. I've done this lots of times before and it always works well but in this project I'm experiencing some anomalous behavior. Whenever the New Payment script completes, the Payment record doesn't appear in the portal until I click on the Invoice layout. Also the SumPayments and Balance fields don't recalculate until I click on the Invoice layout. Similar behavior occurs when I delete a Payment. What's happening here? What's the solution?
January 5, 201214 yr I know this will sound really simple, but I have to ask it...Do you have a Commit Record step at the end of the script? That is where I would start.
January 6, 201214 yr Take a look at this blog by Daniel Wood http://fmforums.com/forum/blog/12/entry-63-ditch-those-flush-caches-use-cartesian-join-instead/ it may be your answer,
Create an account or sign in to comment