|
|
Like this article? PLEASE +1 it! |
|
AsYouType Search Filtering using Script Triggers
|
| Guest post by: Christopher Lowe |
Article Overview: This example is a simple implementation of script triggers by using the OnObjectModify trigger set on the global fields that are being used to provide search criteria on the sample data.
![]() |
Free Download - Being Agile, Flexibility is Key! By Christopher Lowe |
AsYouType Search Filtering using Script Triggers
Contributed by Mike Duncan, a Lead Developer at Excelisys, Inc.
FileMaker Pro 10 introduced native script triggers as a tool for developers to utilize in their solutions. This example demonstrates the usage of a search filter, which many FileMaker developers are familiar with in complex portal filtering solutions. Now, with the use of script triggers, it is simple enough to implement the same functionality but you are not restricted to displaying results in a portal, and therefore have much more flexibility in the interface. Instead of being required to set a complex key that drives a relationship, your search script can be as simple or exotic as your solution requires. One key difference available in FileMaker Pro 10 is that you no longer need to wait for a field to be exited in order to trigger an action, allowing interaction between the user and database not available before without the use of third party plug-ins.
This example is a simple implementation of script triggers by using the OnObjectModify trigger set on the global fields that are being used to provide search criteria on the sample data. As the user types search criteria, a search script gets run, narrowing the search results in real time. Also used in this demo is the new functionality to set a field by name. This is used to allow the user to select a field to search on, which is used to set the field by name that is searched. This sounds simple enough, and displaces the need for large, complex branching “if” statements in a script editor that might have duplicated this functionality in previous versions of FileMaker.
Since these fields wouldn’t be applicable in Find Mode, we also set an object with text that displays only when you are in Find Mode that alerts the user to this fact as a reminder, as well as graying out the filter fields. This is done using conditional formatting to change the appearance of text and layout objects that are dependent on the current mode.
Script Triggers in FileMaker Pro 10 are an absolute game changer for developers in what they can accomplish. Hopefully this example provides a small peek at the potential that this new functionality provides.
Special thanks to Brian Dunning for providing the sample data used in this demonstration.
Article Tags: filemaker, filemaker development, filemaker pro, filemaker script triggers
|
About the Author: Christopher Lowe RSS for Christopher's articles - Visit Christopher's website Christo began his career in technology back in 1986, when he was given his very first Macintosh Computer to write a database solution for the Photo/Graphics department of Notre Dame University. Since then, he has had the opportunity to work with various large and small companies as a consultant, an employee, and a manager dealing with several computer platforms and a plethora of database and networking technologies. Christo has a unique way of understanding the needs of organizations and companies, the individuals, and departments within those entities. After working for several consulting firms both small and large, he decided to start his own company, Excelisys (www.excelisys.com), with a strong emphasis toward customer service and quality. He continues to build a team of loyal and devoted people who have the same common goals, passions, and insight into building intuitive custom information management systems for use in client/server, WAN/LAN, Web, and Mobile deployment strategies. Click here to visit Christopher's website Good Example of Poor Scalability By the Hour or Not by the Hour THAT is the Question AsYouType Search Filtering using Script Triggers Drag and DropDead Elegant Interfaces TipsnTricks Being Agile Flexibility is Key |
Related Forum Posts
Share this article with your friends. Fund someone's dream.
Leave a comment below or share on the left and you'll help support entrepreneurs in Africa through our partnership with Kiva. Over $50,000 raised and counting - Please keep sharing! Learn more.
Get advice & tips from famous business
owners, new articles by entrepreneur
experts, my latest website updates, &
special sneak peaks at what's to come!
Email Marketing Made Easy #11 - Avoiding Spam
Five Ways to Show Honest Appreciation
Designing Employee-Enhancing Training Programs
Email us your ideas on how to make our
website more valuable! Thank you Sharon
from Toronto Salsa Lessons / Classes for
your suggestions to make the newsletter
look like the website and profile younger
entrepreneurs like Jennifer Lopez.



