Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7102 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a bunch of records that I want to trim down by seeing if they are all using current products. Basically, in the record is a text/numerical field which indicates which product the customer (record) is using, in this form: XXX-####-XX, and I want to have each record matched to a list of current products, and if the product is current, I want to keep it, and if the product is not in the current list, I want to omit it. Is there any way to do this in FMP?

Posted

Where is your current product list? If in other file then you can creat relation to this file.It is simple in FM

Posted

Yes, the current product list is in an excel spreadsheet. It is relatively short, and I was planning on simply entering the data into the database list to which I wanted to mach by hand. Should I instead make a "current product" database?

Posted

It seem that having different table for this will be better.

But if you will have value list for current product list in the same table, you can do your goal too, if you use ValueListItems() and Position() or PaternCount() functions.

Posted

Okay, I now have a separate table with two columns, one with the product number (XXXX-##-XX) and the other with the common name of the product. How do I get a search to see if the data in one field in the other database matches any of the first column in the new DB?

Posted

Create relation from first file to second by Product_Number. Then in first file create Field, which=1 if IsEmpty(Relation::Product_Number) and =0 in other case.

So all records with Field=1 is your needing records.

Posted

Okay, I see what you are saying here, and I have defined the relationship, but do I have to make a script with a looping IsEmpty?, or is there a way to define the field to automatically fill in the correct 1 or 0 depending on whether the product number is on the current product list?

Posted

I am sorry: if not IsEmpty.

I you want to see only your needing records you must create script such:

Enter Find mod

Set Field[Field;1]

Perform find

Then create button for this script.

This topic is 7102 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.