HowardJacks Posted August 4, 2005 Posted August 4, 2005 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
Steve T. Posted August 4, 2005 Posted August 4, 2005 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][/FMP-LinkPrevious] [FMP-LinkNext][/FMP-LinkNext]
Garry Claridge Posted August 4, 2005 Posted August 4, 2005 You can also use this: -max=all All the best. Garry
HowardJacks Posted August 8, 2005 Author Posted August 8, 2005 Thanks my search now works - it was one of those odd options that was not in the help or my book!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now