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.

ExecuteSQL Hide Duplicates in Portal?

Featured Replies

Hi All,

Need some help and I *think* that ExecuteSQL will do it but i'm not sure how:

I have a portal which lists 4 fields in a tabe called Related Job Items.  The fields are Detail, Notes, Compound and Sales.

With multiple records there is a potential that the portal may list duplicates which is undesired - For example 2 records could have all 4 fields with the same information as it is based on a lookup from all jobs.  What i want to do is ensure that when all 4 fields match a previous record it only shows it once in the portal.

Any Thoughts?

Thanks,
 

There are several methods to make a portal display only unique values - you can see a couple of them here:
http://fmforums.com/topic/71906-getting-more-out-of-filtered-portals-3unique-values/

However, something seems to be wrong with this request - esp. this part:

56 minutes ago, R81 said:

2 records could have all 4 fields with the same information as it is based on a lookup from all jobs.

Why do they need to replicate information already stored in the parent(?) job? And what does the combination of Detail, Notes, Compound and Sales represent in real life? Perhaps you should add another table for such entity, and point your portal to there.

  • Author

Thanks for the link, I will take a look at the link shortly.

In short the is a jobs table which contains info such as date created, job number etc.  There is also a job items table linked via job number.  Job Items have several fields (approx 35), 4 of which are listed above.  There can only ever be a unique job number but there can be multiple job items relating to this job.

The portal I am referring to is a 'spec sheet' which basically lists all the customers related job items however where those 4 fields are the same there is no need to list them more than once.  The records in question will be part of different job numbers hence unique entries in the job items table and as part of one of the other 31 fields may be slightly different but those dont need to be considered for this filter.

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.