SearchResults

Adding Result Lines

How can I make the results layout longer (to show more results)?

(Note that this does take a little bit of tedious layout work, but is easily done for most results layouts. Layouts like "Results - Conditionally Formatted" are more tedious than others to enlarge.)

1. Backup your layouts by making duplicates of them. It is easy to nudge something out of place in what follows and you'll want clean copies to go back to.

2. The results layouts (like "Results - Original") ship with 200 lines on them. You can make these layouts longer by increasing the number of repetitions in each of the 3 global fields in fmSearchResults. When editing the Storage Options for these fields, increase them all to the same number of repetitions (300 for example) but make the field "SR_ResultText" one repetition greater (301 in this example).

3. Now enlarge your result layout by making the body larger and double click on the "SR_ResultText" field, changing it from 200 repetitions to your new limit.

4. Now the tedious part, Drag the "SR_ResultText" field out of the way to reveal the buttons beneath it. These buttons are all grouped together, so select the grid like object back there and select Ungroup from FileMaker's Arrange menu. Once you've ungrouped these you'll see that each is a button calling the same script but with a different repetition: you'll need to duplicate the last one of these over and over, editing the script parameter for each of your new rows (201 - 300 in this example).

5. Some layouts also use a grid of conditionally formatted lines beneath the results. You can see these horizontal lines on the layout "Results - Conditionally Formatted". These are actually other instances of the field "SR_ResultText", but they are only 1 px high. You'd also need to created additional instances of these for repetitions 201 through 300. Take your time as the precise placement of these is important. Once all the layout work is complete, move the "SR_ResultText" field back over the buttons and save a copy of your new layout.

6. That's it.

(855) SEEDCODE
[email protected]
Follow us: