Fuge Posted June 23, 2004 Posted June 23, 2004 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
Reed Posted June 23, 2004 Posted June 23, 2004 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
Fuge Posted June 23, 2004 Author Posted June 23, 2004 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
-Queue- Posted June 23, 2004 Posted June 23, 2004 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.
Fuge Posted June 23, 2004 Author Posted June 23, 2004 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
-Queue- Posted June 23, 2004 Posted June 23, 2004 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.
QuinTech Posted June 23, 2004 Posted June 23, 2004 -Queue- said: Errant Pronoun Propagation Annihilator Extraordinaire ... and Script Sequencing Director.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now