stan111 Posted July 6, 2020 Posted July 6, 2020 Gents, I am a bit confused with Find and Search functions in FM. I need two buttons: 1 - find all Phones from DB 2 - find among those phones an Apple items What functions I have to apply in this case?
Ocean West Posted July 6, 2020 Posted July 6, 2020 It is a little unclear what it is you're asking where are the "phones" located in one field, multiple fields, in a dedicated table? could you explain further your use case.
stan111 Posted July 6, 2020 Author Posted July 6, 2020 "phones" belong to Category field "Apple" belongs to Producer field
Ocean West Posted July 6, 2020 Posted July 6, 2020 so are you looking for Phone numbers? or record that have a category "Phones" ? If its the latter you its a simple AND type find enter "Phones" in the category field and enter "Apple" in the producer field you should have a found set of only that criteria.
stan111 Posted July 6, 2020 Author Posted July 6, 2020 (edited) I want to find all Phones (from the Category field) and further narrow down to Apple phones. And I need two separate buttons for this purpose. Edited July 6, 2020 by stan111
comment Posted July 6, 2020 Posted July 6, 2020 (edited) 25 minutes ago, stan111 said: I want to find all Phones (from the Category field) and further narrow down to Apple phones. To find all records that have "Phone" in the Category field, do: Enter Find Mode [] Set Field [ YourTable::Category; "Phone" ] Perform Find [] To find records in the current found set that have "Apple" in the Producer field, do: Enter Find Mode [] Set Field [ YourTable::Producer; "Apple" ] Constrain Found Set [] If you want, you can reduce each of these scripts to a single step by storing the find request within the Perform Find / Constrain Found Set step. As already noted above, you can find all records that have "Phone" in the Category field AND "Apple" in the Producer field by doing a single find with both criteria. Edited July 6, 2020 by comment
stan111 Posted July 6, 2020 Author Posted July 6, 2020 thanks! In the meantime, what's the difference between: 1. find matching records 2. perform find 3. perform quick find
Ocean West Posted July 6, 2020 Posted July 6, 2020 1. Find Matching Records Looks for all values in that selected field for matching record with the contents of that field 2. Perform Find Executes the perform find after entering find mode or by criterion entered in the dialog 3. Perform Quick Find Searches all fields on the layout local or related for a value entered ( same as using the search box in the upper right corner of the window)
comment Posted July 6, 2020 Posted July 6, 2020 I could not possibly answer such a wide question in a forum post. I suggest you read the help to understand what each of these does and if you encounter a specific question or problem, ask here. I will give you one hint, though: Perform Find[] is the generic way to find records; both Find Matching Records[] and Perform Quick Find[] are shortcuts for specific situations. 1
Recommended Posts
This topic is 1671 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