Greg Hains Posted July 8, 2015 Posted July 8, 2015 Hi. I have an unusual problem with screen refresh issue. I have a number of calculation fields on a page. I run a script that loads test data (although it's not the test data itself in question) here, and when the script finishes, I have to click somewhere on the page for the fields to re-display. or I can Next-Record or Previous-Record to do the same. The cursor ends up in a field in the portal window (not a calculation field) that is not editable. I have tried a number o things at the end of the script such as Next-Record, Previous-Record, Next-Field, Refresh-Window, Short script delays etc, but none seem to work.I have tried putting a single editable field in there as well, and Go-To-Field but no luck either. What is this behaviour? How can I get around it please? Cheers, Greg
Ocean West Posted July 8, 2015 Posted July 8, 2015 Give the object a name and try this script step http://www.filemaker.com/help/13/fmp/en/html/scripts_ref2.37.62.html
Greg Hains Posted July 8, 2015 Author Posted July 8, 2015 Hi Ocean West. Thanks for this suggestion- yes, I'd tried that, and it didn't help. I've made many solutions but not seen it do this before. Normally going to another object or field would do the trick. I'm curious why a none editable field would allow a I-beam cursor in it, (it doesn't let me change, as expected). Greg
Greg Hains Posted July 8, 2015 Author Posted July 8, 2015 I've found something that works - it's not a fix to the actual problem, but does get me out of the muck. If at the end of the script I: Freeze WindowGo to Layout (any other layout)Go to Layout (screen Ive been viewing)Refresh Window (works as well without this line anyway) Then it doesn't give me grief. Just thought I'd share that. Greg :-)
Kris M Posted July 8, 2015 Posted July 8, 2015 Switching layouts or records causes a commit and that is what is refreshing your calculations. use the commit records step instead of switching because then you dont have to think about record level or layout level script triggers firing to accomplish your goal
Greg Hains Posted July 8, 2015 Author Posted July 8, 2015 Nice. Thanks Kris M. That did the trick nicely!. Thanks to all who replied to me too.
Recommended Posts
This topic is 3426 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