Newbies Adamb Posted July 12, 2011 Newbies Posted July 12, 2011 I hope I am posting this in the correct area. I am a novice and have just built my first application for my business. We have built an application where all our prospects, customers and Infrastructure sites are in one table. I want to have 4 buttons at the top of a screen where you can select which data you want to work with, Sales, Customers, Infrastructure or All. So, when you press the "Customers" button you only see customer records even if you add, delete or find, only when you press the ALL button will you see all records. (the table does have a record type field). Is there a simple way to do this. Everything I have tried cancels when you do a find. I don't mind if the only way is to have different layouts for each function if that could do it. Thanks Adamb
comment Posted July 13, 2011 Posted July 13, 2011 You can force the user to use scripted finds only, and add the criteria before performing the find. Or use a script trigger to constrain the found set when entering Browse mode.
Newbies Adamb Posted July 15, 2011 Author Newbies Posted July 15, 2011 thanks for the suggestions. I have used script triggers, however how would I "constrain the found set when entering Browse mode"? thanks Adam
comment Posted July 15, 2011 Posted July 15, 2011 Use a script triggered OnModeEnter. Enable the trigger in Browse mode only.
Newbies Adamb Posted July 19, 2011 Author Newbies Posted July 19, 2011 Use a script triggered OnModeEnter. Enable the trigger in Browse mode only. Sorry you have lost me here. What would the script do? And if I enabled it in Browse mode only, will users be able to find withing the original found set?
comment Posted July 19, 2011 Posted July 19, 2011 how would I "constrain the found set when entering Browse mode"? Use a script triggered OnModeEnter. Enable the trigger in Browse mode only. What would the script do? Constrain the found set. For example, user have searched for "Smith" and found 3 of them. This triggers the script that constrains the found set to "Customer" only.
comment Posted July 19, 2011 Posted July 19, 2011 On second thought, it will be easier to trigger the script on exiting Find mode.
Newbies Adamb Posted July 21, 2011 Author Newbies Posted July 21, 2011 I am afraid you have lost me. I will get out my book and see if I can figure this one out.
Russell Barlow Posted July 21, 2011 Posted July 21, 2011 I am afraid you have lost me. I will get out my book and see if I can figure this one out. Check out the filemaker white paper on script triggers. http://developer.filemaker.com/content/technet/pdf/script_triggers_en.pdf
Recommended Posts
This topic is 4872 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