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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    fileman922 
×

Important Information

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