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.

SQL Like LIMIT function, only return a given number of results

Featured Replies

Hi,

I'd like to have a relationship taht only returns the 3 most popular products of each categories of my inventory in a portal.

So my portal would show

Cat 1 Product23

Cat 1 Product45

Cat 1 Product65

Cat 2 Product10

Cat 2 Product01

Cat 2 Product56

Of course each categories contains a lot of products.

I've no problem to display my products broke down by categories in my portal, but I've trouble to limit their numbers.

So I need a relationship that would only list the top 3 items of the categories.

So I need to be able to set key field on only the 3 mots popular products of thir categories. And of course that needs to be indexable.

How to do it ?

A calculation based on sibling records cannot be indexable, so basically you have two options, I think: either do a scripted fast summary, picking the IDs of the top three products at each category, or try the attached.

TopNinCategory.fp7.zip

  • Author

Thanks,

This helped a lot

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.