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

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

Recommended Posts

Posted

I have a relationship to filter a portal. I want to use OnObjectKeystroke to update the portal as I type. The script is firing, but the Refresh command (with and without the two switches) isn't refreshing the portal. The only way it updates is if I tab out of the field. What is the solution?

Thanks,

Will

Posted

OnObjectModify is indeed a better choice here, IMHO - with OnObjectKeystroke, one would have to deal explicitly with non-text keystrokes, such as backspace.

If the input field is participating in the relationship, then committing the record should be all it takes to refresh the portal.

Posted

Thanks guys. The Commit Record did the trick, but I thought I had tried that prior to my post. I don't understand why it didn't work then.

Good to know the difference between OnObjectModify and OnObjectKeyStroke.

- W

Posted

If the input field is participating in the relationship, then committing the record should be all it takes to refresh the portal.

Interesting. I'd been playing around, trying to "perfect" my technique and couldn't figure out why I'd need the Refresh[] sometimes but not others.

Some of the test used a second, calculated, field as a the key (to show all records when the entry field was blank).

Posted

Your script should set the filter field to itself.

This topic is 5661 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.