How to display the n first documents in a view?

Dear all,

I’m trying to create a view who display only the n last created documents.

It’s impossible to use the @DocNumber function because this returns a “Special” text.

Doe’s someone have an idea about this ?

Thank you for your help

Subject: How to display the n first documents in a view ?

I view cannot – by itself – decide whether to display a document based on information that’s not in that document. Since there’s not any way, by looking at one document alone, to tell whether that document belongs in your view, you can’t do this.

You can, however, automatically control membership in a folder by having an agent that processes new and changed documents and adds them to the folder, at the same time removing the oldest documents. This might also be done in a Postsave event.

Subject: How to display the n first documents in a view ?

If you are doing this for the web you can sort your documents by their create date and set the url for the view to only display n documents:openview&start=1&count=12