Skip 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.

CDML maximum displayed records 25 ?

Featured Replies

I have a large database and the user will use a search form to search this. The results are then displayed down the page in between [FMP-Record] tags.

The trouble I have is when a user searches and gets more than 25 results only the first 25 are displayed. There is no -max attribute configured on the search form. The [FMP-Rangesize] is displayed as 25 on the results page - is this the default? and if so how do you set it? Is there any other way around this so I can display a list of more than 25?

Thanks in advance

Howard Jacks

Hi, H! I believe -max is 25 unless defined otherwise as a typical FM CDML parameter/variable, i.e. in the url or as a hidden input in the web form . You can use this in conjunction with the CDML navigation links on your -format page to let people jump through sets of search results.

[FMP-rangestart], [FMP-rangeend]

[FMP-currentfoundcount]

[FMP-LinkPrevious] [FMP-LinkNext]

FM search results took several MINUTES when we made -max too big, though, so make sure you have acceptable performance. Waiting had looked like a crash but eventually showed us our results. I think we use -max at 20 now.

Here's a copy/paste of some of our old code that may be helpful...

--ST

Records [FMP-rangestart] through [FMP-rangeend] of [FMP-currentfoundcount].

[FMP-LinkPrevious]arrowback.gif[/FMP-LinkPrevious]

[FMP-LinkNext]arrowfoward.gif[/FMP-LinkNext]

You can also use this:

-max=all

All the best.

Garry

  • Author

Thanks my search now works - it was one of those odd options that was not in the help or my book!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.