June 23, 200421 yr 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
June 23, 200421 yr 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
June 23, 200421 yr Author 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
June 23, 200421 yr 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.
June 23, 200421 yr Author 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
June 23, 200421 yr 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.
June 23, 200421 yr -Queue- said: Errant Pronoun Propagation Annihilator Extraordinaire ... and Script Sequencing Director.
Create an account or sign in to comment