Jon Crain Posted February 25, 2008 Posted February 25, 2008 I have a portal in a layout which pulls events from our calendar database. I want to be able to limit the portal to only pull the next 5 events listed. I have the portal setup to filter only events from today's date onward and can set it up so that I can get the next ten days, but I think only seeing the next five events would be clearer for users. I know I can setup the portal so you only see five rows and hide the scroll bar, but I'm setting it up for custom web publishing which ignores the portal viewing settings and displays all the records. Any help would be appreciated. jon
Ocean West Posted February 25, 2008 Posted February 25, 2008 using your existing relationship create a calc (or global) field using List function to get a list of the parent key of the related data, then using MiddleValues you could isolate the the five records you wish (first five) with this return separated list. Base a new relationship on this field and the primary key of the related data. us this as a basis for a portal on your layout. With some scripting you could actually paginate the portal moving ±5 in either direction.
Recommended Posts
This topic is 6116 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