john9210 Posted March 26, 2008 Share Posted March 26, 2008 FM 8.5. I use calculation fields to apply background colors to fields that I want to highlight. The colors are stored in a global repeating field. A typical formula is: Color1=GetRepitition(ColorContainerField,Case(Flag1=1,0,Flag1=0,2)) Flag1 is set by script. The colors compute ok, but they do not appear unless I mouse click on the record outside a field. I’ve added the Refresh Window script step at the end of the script, but this has no effect. Any suggestions on how I can eliminate the need to click with the mouse? Is this a bug with FM? Quote Link to comment Share on other sites More sharing options...
Norma_Snockurs Posted March 26, 2008 Share Posted March 26, 2008 Any suggestions on how I can eliminate the need to click with the mouse?At the end of your script use the Go to Field script step and don't define a field to act on. If you don't have the layout set to save record changes automatically this will likely bring up a 'Save Record Changes' dialogue which may be even more annoying than having to click the mouse. Quote Link to comment Share on other sites More sharing options...
Maarten Witberg Posted March 26, 2008 Share Posted March 26, 2008 perhaps a commit records/requests script step. If that does not work, you'd better post the script or the relevant bits of it. How is the flag field set? is this a networked solution? btw. since you use a boolean value for the flag, by organising them cleverly in the repeating container you might use the calc GetRepetition ( ColorContainerField ; flag+1 ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.