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.

Using DISTINCT in FileMaker 4.1

Featured Replies

  • Newbies

I guess this is a silly question but I didn't

find it in this FAQ.

I'm performing a -Find action to the database and in the response web page I'm

using the tags : [FMP-Record] to display

the set of records found, now, how can I

display only one time records which have

the same value for some specific field. That's simple using SQL, its' something like : SELECT name DISTINCT FROM table_name. I'd really appreciate your help.

ML

There is no comparable command in FMP to do that. You'd have to write a script, then call the script through Web Companion with the -Script tag.

I guess that if I sat here and thought about the problem I could probably come up with a method that used a self-join relationship...

  • Author
  • Newbies

I solved the problem using a simple javascript function, thanks a lot anyway,

here is the code to avoid displaying multiple

records with the same value on a specific field:

<script language='JavaScript'>

thisField="[FMP-Field:fieldName]";

document.write(thisField);

</script>

<br>

[FMP-Record]

<script language='JavaScript'>

if (thisField != "[FMP-Field:fieldName]")

{

thisField="[FMP-Field:fieldName]"

document.write(thisField);

}

</script>

[/FMP-Record]

Hope it may be useful to someone.

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.