Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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


This topic is 4498 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

  • Like 1
Posted

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.

Posted (edited)

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

This topic is 4498 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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