Jump to content
Server Maintenance This Week. ×

Displaying a dynamic number of records in a portal


rbrouwer

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

Recommended Posts

I am having trouble finding an elegant solution to this problem.

I have a portal which displays 50 records on a layout. However the found set can contain from 1 to 500+ records. What I am not sure how to do is allow a button to be created if the count of records is greater than 50, so the user knows that there are more records found and can click on the button to show those records in the portal and so on for the next 50 etc. This is exactly like the forums here, where x number of records are shown on a page with buttons at the bottom to go to page 2, 3, 4 etc.

I can achieve this with multiple layouts and scripts, but I need one of each for each set of 50 records and I am sure there must be a more elegant and tidy way of doing it. I thought about the button in a portal technique but this gets a bit messy. Any advice appreciated.

Link to comment
Share on other sites

I'm sure there is some reason why you can't use a scroll bar but I'll assume you need an alternative solution. Here is a tip file that demonstrates how to moce portal rows without multiple layouts.

http://www.filemakerpros.com/PORTMOVE.zip

To make a button appear and disappear when you could use the following technique.

http://www.filemakerpros.com/Visibility_Redux.zip

Use the Count function as the formula for the relationship.

Link to comment
Share on other sites

This topic is 6524 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.