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

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

Recommended Posts

Posted

Hello,

Is there a way to control which layout a user is taken to after they hit the "return" key to trigger their find?

I know I can take a user to a search screen and give them a "Find Now" button after they enter their search criteria, but if they hit the return key instead, how can I deal with that?

Thanks

Dave

Posted

You could script the find, and have the script pause in find mode to allow search criteria to be entered. When the user hits return, the script will resume and the user can be taken to the appropriate layout.

Dana

Posted

Maybe, I'm totally missing something, but that doesn't work, here's

what I've tried...

Dave

Enter Find Mode [Pause]

If ["Order Status = "Entered""]

Go to ["Primary"]

Else

Go to ["Primary Locked"]

End If

Posted

Is Order Status the field being entered in Find mode? If not, you're not completing the find and it would (I think) go to the Else part of your If every time, since Order Status would be empty in Find mode. You need to add Perform Find [ ] after the pause, so that you're in Browse mode and can go to the appropriate layout.

Posted

OK, I see now. Like this:

Pause/Resume Script []

Perform Find [Replace Found Set]

Enter Find Mode []

If ["Order Status = "Entered""]

Go to ["Primary"]

Else

Go to ["Primary Locked"]

End If

Posted

More like

Enter Find Mode [Pause]

Perform Find [Replace Found Set]

If ["Order Status = "Entered""]

Go to ["Primary"]

Else

Go to ["Primary Locked"]

End If

Again, after you enter find mode, no fields have data in them except globals. So testing if Order Status = "Entered" will always fail.

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