.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

list max N documents since last R weeks with xyz labels from document library as links (using jquery

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#

Sorry for the cryptic title, but i wonder how to create that.

I have a huge document library, people put a lot inside it.
Now some departments would like to show specific docs on their department webpage (the page is within this same site).

These docs might be reports, or other repeating documents i would like to filter them on their labels.
So for example to filter on the department label and so filter on sales
Their report is named like "results product xyz.doc"  >> so i like to filter also on "result product"
They create reports every 2 weeks, and i'd like to be able to show the last N reports based on their title that contains reports
Or since the last R weeks

I dont want people to enter or change criteria, nor do i want people to add documents here. (as in a document library).
Maybe the only option should be a link on the bottom to extend the range of time in the past or max documents

Just based on these filter create a link list to those documents (using their doc name) and showing their comment would be cool too.


Note that in above sales product etc is just an example, my site doesnt have sales actually.
But my question is about how to filter on such verbs, dates, and display a maximum numbers of items from a document library.

View Complete Post

More Related Resource Links

list of documents to be displyed on Home page from document library(MOSS2007)



i have a task to complete where i wan to display pdf documents from documents library on Home page. and also want to show a MORE link on the bottom when user click on MORE button should display list of all the documents or will redirect to document library.  This is in MOSS 2007.




Embedded links inside of Word documents in SP document library

Does anyone know of a tool that can spin through a document library, looking for urls within Word documents in a SP document library, and change those urls?  We are migrating sites to another server farm, and this migration will change the top level url names (for instance was https://foo/document%20lib/bar.doc  to https://someothername/...).  Manually changing the embedded links in the Word documents is not really a viable option due to the number of documents they have.  These documents link to other documents within the same site.

Document viewer on a documents Library & Tooltip Bubble on rollover

Hi everybody,
1 - I would like to know, if in Sharepoint 2007 ECM part (Documents Library), there's a downloadable webpart or an application to create a document viewer (pdf, doc, xls, msg...) in an iframe when you point the mousse over a document or something like that...
If it doesn't exist do you have in mind a code sample which can make something like that ? thank you.

2 - It's possible in a documents library to activate balloon tooltips which show us metas of the document (on mousse over), like an option or an application...

Thank you very much.
All the best.
Go I.T.

How to modify dropdown document template list order when creating document library?

when creating a new document library, the first template is the one for word 2003. Can we change that to word 2007 one? thanks,

Upload documents to Sharepoint 2010 Document library

Is there a way to upload documents to an SP 2010 document library with Custom Actions or Workflows?  I have a requirement of taking the contents of several directories (older data files) and uploading them to Sharepoint.  Not sure which actions actually perform this operation.  Any help most greatly appreciated.

Converting Word Documents library to PDF document library in SharePoint Server 2007

My project requires me to create an event reciever such that when a word file is added to one library the same content pdf file should be added to other library also when a word file is updated,edited or checked in the respective pdf file in other document library should be replaced by a new pdf file with the edited word content . Can we do this in Sharepoint 2007 I have seen this can be done in Sharepoint 2010 http://msdn.microsoft.com/en-us/library/ff181518.aspx

Item/Document permissions affect Library/List permissions

When I change the permissions on a item/document in a library/list the permissions are also changed on the library/list even though I stopped inheritance.  When I change the permissions on the library/list it also changes permissions on items/documents in that list even if inheritance is removed.

MOSS 2007: list column that lookup to multiple documents stored in doc library

Hi All, I'm trying to understand how to customise MOSS to achieve the following: I need to lookup from a list to multiple documents stored in a documetn library. Example: - List item 1 --------> Lookup to Doc 2                   --------> Lookup to Doc 5 - List item 2 --------> Lookup to Doc 3                   --------> Lookup to Doc 5                   --------> Lookup to Doc 8 - List item 3 --------> Lookup to Doc 1 How can I achieve this? is it possible that in the lookup I have a "search" option? Thanks all Vit

Opening office Documents in MOSS 2007 document Library.... You get a prompt to login...

*Sigh* i know i'm not the only one who has experienced this.   You have a Moss 2007 farm on your Server... yet you have employees and users who use Office 2003 products (word, excel, power point) Everything is installed correctly you yourself use office 2007. but don't post office 2007 docs.. just open the docs that people already post (2003 stuff) Computer Environment si am using....It does this in both Environments1st one Windows Vista Ultimate Updated Service Packs Office 2007 All update Serice Packs Internet explorer 7.0 2nd Environment Windows XP all updated Service Packs Office 2007 All updated Service Packs Windows Internet Explorer 7.0 Server Environment Moss 2007 with SP1 installed Microsoft 2003 Server No matter what happens.... when i try to open up a word documents or excel or anything.. when using office 2007..... it ask me for a login...I believe there was an article about correcting something in the registry or something.. can someone give me detail bulleted / bold instructions... this has been bothering me for a while.

Copy Attachment from List to Document Library

Is it possible, to do that. I always get an error : The workflow could not copy the item. Make sure the source and destination lists have the same columns and column settings. I would like to  copy attachment if  new list item has one, after is created. In workflow, when I chose Document Library, there is filed name: Path and Name (*).Borut

InfoPath list definition of type Document Library

Is there a way to create a list definition that is a document Library and deploy to SharePoint 2010 that is based on a InfoPath form?  Meaning that it will deploy and if I select the "add new item" link it will automatically open a new InfoPath form that a user can submit?  I have the infopath forms created already but I need a way to create the form library through visual studio so I can promote through our test and production environment and have it automatically and deploy to the different environments and create the proper list structure. 

Clicking on "Shared Documents" gives link to download instead of opening document library

Hi, I hope someone can help! All of a sudden (I don't know if someone has changed something!), whenever anone clicks on a link to open the "shared documents" document library in a specific site within our sharepoint site, instead of opening the document library, it instead gives a download dialog for a zip "AllItems.aspx" as a zip file. Anyone got any iteas what could have gone wrong and how to correct the issue?   Many thanks for any help!

How to search documents from the particular document library using FullTextSqlQuery in sharepoint?

Hi, I want search (wildcard search) the document from the particular document library using FullTextSqlQuery class. Thanks Srikanth Reddy

SharePoint Programming: Replace content in documents of Document Library

HI, I have 100+ word documents in one of the document libraries on our SharePoint portal. Most of these documents contain HYPERLINKS which refer to a totally different SharePoint server. My task is to update all these HYPERLINKS to point to our server instead of external server. Any pointers on how to accomplish this would be highly appreciated. Thanks in advance Mahesh B

sending documents from one document library to another

hi,   I'm encountering an error when trying to send a document from a document library to another document library in a separate web application using the send to > other location. Once I place the URL in the Destination document library or folder field and click test it opens the destination document library, however when I try to send the document I receive the error:   "could not find the destination item or folder on this server"   has anyone ever encountered this and if so how did you resolve it? Thanks in advance

Sharepoint 2007 - 80GB Documents in 1 document library

Hi, My customer wants 'customer docs' in SharePoint. It is now stored on several disks and wants to move it to SharePoint 2007(!). It needs to go into a folder structure.....I'm now investigating the information that needs to move to SharePoint and it turns out a quick scan resulted in 210.000 documents with a total volume of 80GB. Off course this is raw data and thus containing archives, zips, access databases and a lost movie and the like (just like any normal network drive :-)). When I look at the limits and best practices: no folder should contain more then 2.000 items (OK) no doc lib should contain more then 2.000.000 items (more then OK) no file should be larger then 2GB (OK - we set it to a max of 150MB) It is all fine but my concern is the shear size of the total load. Let's say they don't migrate 80GB but 30-50GB. My Question: can a single MOSS 2007 document library hold this kind of documents and total size? What does this mean for overall performance, backup, search indexing, crawling etc etc?  Thnx for any tips!

Listing documents in Folders and subfolders in a Dataview of Document Library

My dataview is pointed to a Document Library. I noitced files in folders and subfolders don't list - only the folders themselves.  Is there any way to list files in a particular folder or all files in all folders? What I'm trying to do is tie a folder to entries in a custom list. I'd like a folder for every ID in that custom list. When I open the Dispform for the ID, I'd like a dataview or some other webpart to dynamically to show related files (all which would ofcourse just be in their respective folder). I'm thinking it's just a matter of passing the ID querystring to a condition in the Dataview or Webpart. It would also have to be a folder as I need to allow same file names to be uploaded.   Thanks.  
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend