Jump to content
Sign in to follow this  
bena

Issue with Script inserting Time

Recommended Posts

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

Share this post


Link to post
Share on other sites

Yes, use Set Field script step.

Share this post


Link to post
Share on other sites

Ah, seems one needs to set that to nothing. Not the most intuitive.

Thanks Much.

Share this post


Link to post
Share on other sites

Huh? Try Commit Records at the end of your script.

Share this post


Link to post
Share on other sites

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 by Guest
Added last sentence

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.