Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Complex checkbox find question

Featured Replies

Hello

 

I have two tables, "investors" and "deals".

 

Investors have a set of criteria that they want - entered as a checkbox

Property Deals have a set of criteria that they meet - also entered as a checkbox

 

I would like to be able to go into a deal record, input the criteria and then run a script that finds any investor who have at least one criteria matching one of the criteria checked for the deal. 

 

The two value lists are the same. More criteria will be added so I would like to not hard code the find criteria. 

 

I guess I need to do something like (pseudocode)

  1. Copy the fields checked into an array or list variable
  2. Go to investors form
  3. Enter find mode
  4. Loop
  5. For each item in the list check that field 
  6. Add new record
  7. End loop
  8. Find

However I'm not sure if that's the best way and if it was what the script syntax for steps 1 and 5 would look like. 

 

Any advice would be greatly appreciated. I'm using FMP Advanced 12.

 

Thanks!

 

Nick

 

Solved by MetaSys Software

Go to solution
  • Solution

Hi,

 

In the attached fp7 database file, we are displaying the portal of investors who have criterias matching as that of property deal.

 

Thank you.

CheckBoxFind_fmp12_sample.zip

Nick,

 

I believe that your problem stems from a poor data model. If you have 3 tables, Investors>Deals<DealTypes, then you could easily search on the Deals table (each deal is a record that has a typeID and an InvestorID) and go to related Investors. This is why checkboxes, although easy to set up, make it very difficult to generate reports.

 

hth,

Barbara

 

PS: Google "join tables."

  • Author

Hi Barbara, 

 

Sorry I should have been more clear. 

 

Data model is: Investor > Opportunity < Deal. Deal could also be thought of as "property". What I want to do is when I get a new deal (property) to search all the investors who it could work for so I know who to call or email first.

 

The opportunity table tracks to the ongoing tasks and status of the join record.

 

 

Hi Metasys, 

 

Thanks I'll take a look. Appreciate you linking it.

 

 

Thanks

 

Nick

  • Author

Metasys, 

 

This works exactly as I need it to. Thank you very much.

 

Nick

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.