July 30, 200124 yr Hey I just discovered something cool... this is version 5.0v3 but it may also work in v4 too (I expect it will but not tried it yet). I have a scripted search -- users clicks "search" button, script changes to search layout and into find mode then pauses to allow entry of criteria, when script resumes it performs find and changes to browse layout. I've just discovered that while in Find mode I can use IF statements to look at field entries in the find request, and perform text manuiplations them on-the-fly using SET FIELD statements. Heh Heh. This is way cool. I was having trouble with a find in a portal to a related field, specifically trying to find an *empty* field. The script uses an IF to see whether in the find request the user is searching for an empty field, and if so it prepends "==" and adds quotes around the string, inserts the search string into a calculation field, deletes the user-entered text from the original fields, then performs the find. And it works! Seems pretty robust too. God I love FMP.
Create an account or sign in to comment