Latest forum post

Afternoon everyone!

I have a forum database where the staff can post adverts/notices and such. Is there a way to have a view that shows only the last 5 posts at a time?

It is intended to be used as an embedded view in the Intranet homepage to show the most recent posts so it will not be by date but simply the last 5 posts.

Thanks!

Steve

Subject: Latest forum post

just limit the embedded view to 5 posts. The sorting should take care of the rest. In the web access section of the embedded view’s properties, set the “lines to display” property to 5. I believe that will take care of it for you.

Subject: RE: Latest forum post

This function only applies, as you mention, to “Web Access” but this embedded view is in a Notes Client

Any ideas as I’m stumped?

Subject: RE: Latest forum post

If you’re dead set on only showing 5 posts, you might try an agent in the post open event of the form to go grab the 5 entries from the view and display the links in a rich text field.

Another thing to consider is just sizing the view so it exposes 5 lines, but allowing scrolling for those who might want to view more.

Hope that helps-

Subject: RE: Latest forum post

Another thing to consider is just sizing the view >so it exposes 5 lines, but allowing scrolling for

those who might want to view more.

Took this advice and it looks fine.

Cheers!

Subject: RE: Latest forum post

You would need to use a form global (wasNewDoc) and the PostSave event to launch a runonserver agent to modify any documents beyond the last five docs in a “last five” view. The only way to limit what’s shown in a view in Notes is to limit what’s selected.