October 26, 200223 yr Tried going through my 100 or so saved templates and demos and nothing comes up so far that isn't just a simple enter find mode and perform find type of deal. Pls and thanks!
October 26, 200223 yr Author Well, anything will do, as long as it's not a simple ENTER FIND MODE and PERFORM FIND. I'd just like to start a collection of templates/demos, whatever that have different find scripts, that's all. So no real requirements other than the above. I want to play around with the scripts and learn what different things will do.
October 29, 200223 yr A technique that works well in many situations is to enter all the search request data into global field in Browse Mode and when a "search" button is clicked, enter Find Mode, setup the find and perform it. Enter Find Mode [] SetField [Name, gName] SetField [Address, gAddress] SetField [City, gCity] SetField [state, gState] SetField [Zip, gZip] Perform Find [] If(Status(CurrentFoundCount) = 0) Go to Layout (MyNoneFoundLayout) End If If(Status(CurrentFoundCount) > 1) Go to Layout (MyListLayout) Else Go to Layout (MyFormViewLayout) End If Just threw in the last bit, a set of tests to take you to different layouts depending upon how many records are found. With the new options to extend and constrain the found set, many more options for a find scripting are available. -bd
November 4, 200223 yr Author Thanks, LiveOak! That looks, to my inexperienced eyes, pretty great. I'll give it a try. Worked a lot of overtime this week (unfortunately, not paid), so didn't get a chance at all to work on my solution. Hope to do better this week. Will make a copy of one of my db's and incorporate this script to get a feel for it. Thanks once again!
Create an account or sign in to comment