Restrict number of documents in a view

In a view, there are 10 documents. I need to display only 6 documents in that view. Thanks in advance

Subject: RE: Restrict number of documents in a view

Is there something about the documents you DO want to display in the view that differentiates them from those that you DO NOT want to display (e.g. a different form or field value)?

If there is, then simply use a “View Selection” formula to isolate those that you want displayed.

Otherwise, you may want to add a field to the form design which will allow you to identify those documents which you want displayed in the view.

Do you want documents hidden from users who are not supposed to see them? In that case, use a “Readers” field to restrict access to those documents.

Do you want to simply display documents which are relevant to the current user? In that case, design a SPOFU (“Shared, Private on First Use”) view.

Hope that helps.

T.

Subject: RE: Restrict number of documents in a view

You can’t restrict the number of documents in a view – the selection formula will select all documents that meet the selection criteria. You have to make sure there is a difference between the six documents you want and the four you don’t.

Subject: RE: Restrict number of documents in a view

Thanks for your response.

Is it possible to take 6 documents in a view and display those documents in another view

Subject: RE: Restrict number of documents in a view

Documents will appear in a view if the selection formula (assuming there is one) permit them to be displayed. There needs to be a difference between the documents that a selection formula can pick up on. If you want to arbitrarily put documents somewhere, you need to use a folder rather than a view. Folders require that documents be added by some user action or by an agent – no document will automatically appear in a folder.

Subject: RE: Restrict number of documents in a view

Hi Terry,

Thanks for your response. I explain in detail.

I am displaying “comments” in a web.

Here comments are nothing but documents in the view. I used embedded view. Here, I need to display the latest six comments. Thats it.

Subject: RE: Restrict number of documents in a view

I’ll probably be corrected here, but I think a possible solution would be to use an iframe. The URL for that iframe could then incorporate the use of the “&Count” parameter (set it to 6), and that would restrict the no. of documents displayed. You would then sort the view in descending chronological order.

You can test this by simply viewing this forum ( “Date(threaded)” ), and adding the “&Count=6” to the end of the URL.

Maybe that’ll work for you?

Subject: RE: Restrict number of documents in a view

If it’s a web thing, one could use the “Lines to display” property on the embedded view object and sort descending by Created Date. You only need to use &Count=XX if you are still using a $$ViewBody field rather than doing the R5±style embed.

Subject: RE: Restrict number of documents in a view

Hi stan,

Its web only and version is R6.

I used “Lines to display” in embedded view. Initially, its displaying 6 comments. But how to get another 6 comments and display those comments in that view

Subject: RE: Restrict number of documents in a view

If you want the latest six, then you will need to run code that changes any documents beyond the sixth so that a selection formula can exclude them.

Subject: RE: Restrict number of documents in a view

Thanks. I tried using “&count=6”. Its displaying only 6 comments.

My new question:

Is it possible to get next set of 6 documents and display those documents.

That is, Initially, six comments should be displayed. While clicking the button, next 6 comments should be displayed.

Subject: RE: Restrict number of documents in a view

This is possible.

Add ‘&Start=7’ to the URL and the view will be displaying six documents(‘cause of the ‘&Count=6’’ ), starting with the 7th entry in the view.

Hitting Next again, add 6 to the total behind &Start=

Regards,

René