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.

Calculation and Relationship

Featured Replies

Hello,

I am attempting to create a portal that will list all of the establishments from one table (REP_establishment_distance (TABLE: ESTABLISHMENTS) ) on another layout REP_Representative (TABLE: Sales_Reps). The problem is I only want to list the records that are within x miles of each other which can/is calculated with a Custom Coordinate Function.

In the REP_ table, I have a static fields called WithinDistServiceArea. In the Establishments, I have a non-stored calculation field called EstRepDist. The distances must be calculated on the fly because there are 150 different Sales Reps and over 60,000 Establishmnets.

Each distance is different for each Sales Rep and Establishment; I calculate over 9,000,000 different combinations to calculate the distances. I do not believe a JOIN table would be feasible, but then calculating each distance everytime the REP_ layout is opened would not be feasible either.

What would you suggest? I have thought about manually selecting each Establishment, a one-time search for any distances (using a looping script which I already have to export the locations of the Establishments into a KML or XML file for Google Maps/Google Earth) but when new establishments are added, this would not work.

Thank You and God Bless!

David

See if this points you anywhere useful.

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.