Jump to content
Sign in to follow this  
giles12345

is there a script step similar to clicking out of a field?

Recommended Posts

Hi,

I have a script that I'm studying. It involves a drop down field that triggers a script on OnObjectModify, then a condition as a result of the value change. This is currently working intermittently, with the drop down still appearing selected. If I deselect it, by clicking in blanc space somewhere on the layout, the condition completes as desired.

It looks to me as if I'm forcing a final update on this extra click. I've tried script steps like Refresh Layout, toggling menus, scrolling but I can't find anything to mimic this step.

Any thoughts?

Giles

Share this post


Link to post
Share on other sites

How about Go To Field[] with no field defined? This works the same as clicking outside a field.

  • Like 1

Share this post


Link to post
Share on other sites

Clicking outside of any field commits the record (unless you have prevented this in layout setup). The equivalent script step is Commit Records[]. However, committing has consequences that go beyond rolling up a drop-down.

Share this post


Link to post
Share on other sites

You can name any object (such as text box, your logo) and then end with GoToObject(). We place an object named 'dummy' on layouts to use. It removes the cursor without committing the record.

Actually, I put text object on almost every layout which declares variables ( borrowed from you, Michael). It controls my record indicators and layout name and usually much more.

Edited by LaRetta

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.