bena Posted January 29, 2009 Posted January 29, 2009 Hi All here is my issue. I have a script that inserts the current time into a field. The script works fine, BUT filemaker leaves the blinking cursor in this field. I just want the value inserted without filemaker putting the cursor into this field. Is there a script step that can avoid this situation? Hopefully this is a super simple fix. Thx
bena Posted January 29, 2009 Author Posted January 29, 2009 Ah, seems one needs to set that to nothing. Not the most intuitive. Thanks Much.
bcooney Posted January 30, 2009 Posted January 30, 2009 Huh? Try Commit Records at the end of your script.
LaRetta Posted January 30, 2009 Posted January 30, 2009 (edited) I have a script that inserts the current time into a field. Hi Bena, What Barbara is suggesting is that you 'insert the current time into the field' by using the Set Field[] script step instead of using the 'Insert Current Time' script step. The benefit of using Set Field[] is that the field doesn't even need to be on the layout. So it would be: Set Field [ yourTimeField ; Get ( CurrentTime ) ] Also, Set Field[] does not leave the cursor in the field although it DOES maintain possession in multi-user mode unless you 1) move to another layout/table occurrence or 2) Use Commit Record/Request as the final step to 'release' your possession of the field (so others can then modify it if they wish). Edited January 30, 2009 by Guest Added last sentence
Recommended Posts
This topic is 5778 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