Jump to content

This topic is 7117 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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]

This topic is 7117 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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