View of Document Library showing only documents based on dates in columns.

I have a document library which includes only one content type of "Job Posting", which includes a "Posting Date" column, and a "Closing Date" column. I want a Web Part View of this library that will only show the documents when
the current date is after the Posting Date and before the Closing Date. What is the best approach?

Hi,
I usually create a view with filter OOTB and then change the query inside SharePoint designer, may be you can try this approach. here is a Q&A on this topic in this forum -
http://sharepoint.stackexchange.com/questions/26364/filtering-a-list-with-date-ranges-xslt-advanced-expressions-on-list-filters
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if the reply helps you

Similar Messages

  • How to grant anonymous access on sharepoint document library/list only not for web application

    Hello
    How to grant anonymous access on sharepoint document library/list only not for web application.I have claim based sharepoint site and has to be but i want to grant access on document library/list only.Is this possible?
    Thanks
    Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.

    As i am using following code
    SPSite site = SPContext.Current.Site;
                SPWeb web = SPContext.Current.Web;
                SPSecurity.RunWithElevatedPrivileges(delegate()
                    using (SPSite ospSite = new SPSite(site.ID))
                        using (SPWeb webs = ospSite.OpenWeb(web.ID))
                            // Enable anonymous access on web application
                            webs.AllowUnsafeUpdates = true;
                            SPUrlZone urlZone = SPUrlZone.Default;
                            SPWebApplication specifiedWebApplication = ospSite.WebApplication;
                            SPIisSettings iisSettings = specifiedWebApplication.IisSettings[urlZone];
                            //iisSettings.AuthenticationMode = AuthenticationMode.Windows;
                            iisSettings.AllowAnonymous = true;                       
                            specifiedWebApplication.Update();
                            // Get document library collection here and fetch all the document urls
                            SPDocumentLibrary docLib = (SPDocumentLibrary)web.Lists["Documents"];
                            if (docLib != null)
                                docLib.BreakRoleInheritance(true, false);
                                docLib.AllowEveryoneViewItems = true;
                                docLib.AnonymousPermMask64 = SPBasePermissions.ViewPages | SPBasePermissions.OpenItems | SPBasePermissions.ViewVersions
                                    | SPBasePermissions.Open | SPBasePermissions.UseClientIntegration | SPBasePermissions.ViewFormPages | SPBasePermissions.ViewListItems;
                                //docLib.AnonymousPermMask64 = SPBasePermissions.EmptyMask;
                                docLib.Update();
    Should working but getting access denied......i am totally stuck at this point.
    Rajesh Kumar "Changing the Face" can change nothing.But "Facing the Change" can change everything.

  • Creating a Folder Within Form or Document Library & Display the name not in the name column.

    I have created a form library that will used to create folders within that. The folder creation is done using an InfoPath Form that has been uploaded to the Form Library. When the new folder was created the name will be displayed at the Name column within
    the Form Library. I want to change that to another column like documents or suchlike.
    Can it be done using InfoPath 2010 VSTA C# or not? If their are other options available please could you try to inform me!
    Thank You,
    Chiranthaka

    Hi,     
    If you want to show the name of folder in another column, a workaround is that you can create an extra column, then create a SharePoint Designer workflow to set the value of
    this column with the name of folder.
    Here is a link about Create Workflow using SharePoint Designer and set field value for your reference:
    http://www.codeproject.com/Tips/419037/Create-Workflow-using-SharePoint-Designer
    I have seen a similar post from you in the link below:
    http://social.technet.microsoft.com/Forums/en-US/c3ff3f17-dbe2-40f9-86c5-ff7d4b663f09/creating-a-folder-within-form-or-document-library-display-the-name-not-in-the-name-column?forum=sharepointcustomizationprevious
    It's recommended that you post a single question in a single thread which will make it easier to be discussed by others.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Not able to copying files/folders from one Document Library to another Document Library using Open with Browser functionality

    Hi All, 
    We have SharePoint Production server 2013 where users are complaining that they are not able to copy or move files from one document library to another document library using “Open with Explorer” functionality.
    We tried to activate publishing features on production server but it did not work. We users reported following errors:  
    Copying files from one document library to another document library:
    Tried to map the document libraries and still not get the error to copy files: 
    In our UAT environment we are able to copy and move folders from using “Open with Explorer” though.
    We have tried to simulate in the UAT environment but could not reproduce the production environment.  
    Any pointers about this issue would be highly appertained.
    Thanks in advance
    Regards,
    Aroh  
    Aroh Shukla

    Hi John and all,
    One the newly created web applications that we created few days back and navigated to document library, clicked on “Open with Explorer”, we get this error.
    We're having a problem opening this location in file explorer. Add this website to your trusted and try again.
    We added to the trusted site in Internet Explorer for this web application, cleared the cache and open the site with same document library but still get the same above error.
    However, another existing web application (In same the Farm) that we are troubleshooting at the moment, we are able click on “Open with Explorer”,  login in credentials opens and we entered the details we are able to open the document
    library and tried to follow these steps:
    From Windows Explorer (using with Open with Explorer), tried to copy or move a files to
    source document library.
    From Windows Explorer moved this file to another destination document library and we got this error.
    What we have to achieve is users should be able to copy files and folders using
    Open with Explorer functionality. We don’t know why Open with Explorer
    functionality not work working for our environment.  
    Are we doing something wrong? 
    We have referred to following websites.
    we hope concepts of copying / Moving files are similar as SharePoint 2010. Our production environment is SharePoint 2013.   
    http://www.mcstech.net/blog/index.cfm/2012/1/4/SharePoint-2010-Moving-Documents-Between-Libraries https://andreakalli.wordpress.com/2014/01/28/moving-or-copying-files-and-folders-in-sharepoint/
    Please advise us. Thank you.
    Regards,
    Aroh
    Aroh Shukla

  • How to copy a folder from one document library to another document library ?

    How to copy a folder from one document library to another document library by programmtically?
    Samarendra Swain
    Team Sharepoint
    www.manuhsolutions.com

    You can use the SPFolder.CopyTo method.
    public static void CopyFolder()
    SPFolder folder = null;
    using (SPSite site = new SPSite("http://basesmcdev2/sites/tester1"))
    using (SPWeb web = site.OpenWeb())
    folder = web.GetFolder("shared%20documents/newfolder");
    folder.CopyTo("tester4/newfolder");
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.copyto.aspx
    certdev.com

  • Sharepoint 2010 - Archiving the files from one document library to another document library in sharepoint site

    I have a requirement to move the documents from one document library to another document library.
    Source Library - DocumentLib
    Destination Library - Archive
    Archive document library will have folders by fiscal year.
    Source documentlibrary has files from year 2012 till date.
    Archive folder will have folders by fiscal year -(fiscal year starts from July1st -June 30th )
    If the document is created date  between 1st  July 2012 -June 2013 then move the document to Archive document library and in  folder Fiscal Year 2013.
    If the document is created date  between 1st  July 2013 -June 2014 then move the document to Archive document library and in  folder Fiscal Year 2014.
    The structure of destination document library folder should be same as source document library.
    Please find attached the screenshot of the requirement.
    Files Type - Excel,pdf,microsoft outlook item
    Could we use Sharepoint designer workflow to achive this task?
    Any help on this will be appreaciated.

    Hi Asritha,
    According to your description, you want to create a workflow to meet the need.
    Per my knowledge, there is no built-in action which can move the documents from the current library to a folder in another library.
    I recommend to use the custom activity 'Copy List Item Extended' which need to be downloaded from
    http://spdactivities.codeplex.com/.
    Please per the steps below to deploy the custom activity to SharePoint:
    Download the activity form http://spdactivities.codeplex.com/
    Open Dos command prompt.
    Browse to the directory that you can access stsadm.exe. The default location in version 3.0 is C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\bin
    Type the stsadm commands: stsadm -o addsolution -filename C:\UsefulSPDWorkflowActivities_0.5.0\DP.Sharepoint.Workflow.wsp (“C:\UsefulSPDWorkflowActivities_0.5.0\” is the file path)
    Type the stsadm commands: stsadm -o deploysolution -name DP.Sharepoint.Workflow.wsp -allowgacdeployment -force -immediate 
    Open the Center Administration, Click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to the Web Application.
    After that, we can create a workflow to meet the need.
    Here is the detailed steps to create the workflow:
    Create a workflow associated with the Source Library DocumentLib and set the workflow to start when an item is created.
    Select If current item field equals value, change the settings to be If Current Item: Created is greater than 7/1/2012.
    Select If current item field equals value, change the settings to be If Current Item: Created is less than 6/30/2013.
    Select Copy List Item Extended, change the settings to be Copy item in Current Item to list at Fiscal Year 2013 folder url.
    Select Delete Item, change the settings to be Delete Item in Current Item.
    Select If current item field equals value, change the settings to be If Current Item: Created is greater than 7/1/2013.
    Select If current item field equals value, change the settings to be If Current Item: Created is less than 6/30/2014.
    Select Copy List Item Extended, change the settings to be Copy item in Current Item to list at Fiscal Year 2014 folder url.
    Select Delete Item, change the settings to be Delete Item in Current Item.
    Publish the workflow.
    Best regards.
    Thanks

  • How to check A document library that has document publishing enabled and content approval

    HI
    1) how to check A document library that has document publishing enabled
    2)A document library or a list that has content approval enabled
    adil

    For both question, check version settings of that library
    >>1)Document Version History "Create
    a version each time you edit a file in this document library?" should set to either create major versions or Create
    major and minor (draft) versions.
    http://office.microsoft.com/en-us/sharepoint-server-help/publish-or-unpublish-a-version-of-a-file-HA101862529.aspx
    >>2)Content Approval  "Require
    content approval for submitted items?" should be set to Yes
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • In a document library, offering only certain options for fields based on others selected

    Hi, I have a document library, and when someone uploads an item to that library, they are presented with a form to select properties. I have 4 properties I want them to select (really 6, but the first two are Name and Title). The issue is that these 4 properties
    depend on each other in this way:
    1st property: I use a lookup to offer 4 choices, "A" "B" "C" or "D" in a dropdown.
    2nd property: I want to offer the user a choice of 4 items in a dropdown, based on what they chose for the 1st property. (if they chose "A", then offer "1" "2" "3" or "4", if they chose
    "B" offer "5" "6" "7" or "8", etc.)
    3rd property: same thing as above, but now based on what they chose for the 2nd property (if they chose "1", offer "a" "b" "c" or "d", if "5" offer "s" and "t")
    4th property: again based on 3rd property.
    How can I do this? can I write some sort of custom form that can do this?

    What you're trying to do is commonly refererd to as 'Cascading Drop Downs'. These are a common lack in SharePoint.
    There are lots of ways to do that, my favourite to use jQuery or Javascript:
    http://www.sharepointboris.net/js/spcd/

  • How to List view web part to display document library for only users with access permission

    Hi
    I am trying to accomplish this requirement but I don't know if that is possible or how to get there.  Any suggestion or advice are helpful.
    On a site collection, I have several document libraries,  with each library have unique permission to a few user or SharePoint group.
    I want to create a web part page and make that the site home page.  On this web part page, I want to create a Content Search Web Part to list the content of the document library that the logged on users have permission to see. 
    Is this possible with CSWP or is there anything easier or if it is not possible at all,  please advise.
    Thanks
    Swanl

    Hi ,
    Based on your description, my understanding is that you want to create a Content Search Web Part to list the documents that the logged on users have access permission.
    It is feasible with CSWP, you can follow the below step:
    Edit Content Search Web Part->Change query-> Select a query: Items matching a content type (System); Restrict by app: Current site collection; Restrict by content type: Document.
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]

  • Why isn't my SharePoint online document library showing anything in the Title column for PDFs I upload?

    I've got a document library on my SharePoint Online site. I've enabled the Title column in the library view. When I upload Word documents, the title I entered into the document properties list (Word 2010, File > Info > Properties list > Title) appears
    in the Title column of my library in SharePoint. But when I upload the published PDF version (created from the same Word file using Word 2010 by File > Save As) to the library, there's nothing in the Title column. Why? Is SharePoint failing to read the
    metadata of the PDF file? Is Word 2010 failing to copy the metadata into the PDF file when it's created from the Word file?
    What's going wrong and how do I fix it?
    When answering, please keep in mind that I'm a SharePoint novice.
    Regards,
    Bruce Officer

    I think I've ruled out the possibility that Word isn't saving the Title property with the PDF when I convert to PDF using Word 2010's built-in Save As PDF command. I found a utility called Evermap AutoMetadata which shows all the metadata saved in a PDF
    file and the Title field is indeed present in the PDF, with the correct value. Windows File Explorer won't show that property as present, but AutoMetadata does. It now looks like SharePoint isn't reading that field for some reason. Does anyone know why, and
    what I should do about it?

  • Custom document library showing wrong file type icon

    Hi All - I have a custom document library created using VS code. In search result if any document appear from that library it shows web page icon.
    I found this below url for this issue:
    http://www.neilrichards.net/sharepoint/missing-document-icons-from-search-results-with-fast-for-sharepoint/comment-page-1#comment-1043
    I don't want to write custom pipe line and I also don't want to hard code file types in XSLT. 
    Is there any solution to change content class?
    There is difference in contentclass in source XML.
    for 
    <imageurl imageurldescription="Image">/_layouts/images/imageresult_16x16.png</imageurl>
    <contentclass>STS_ListItem_DocumentLibrary</contentclass>
     icon is displayed correctly.
    for
     <imageurl imageurldescription="List Item">/_layouts/images/STS_ListItem16.gif</imageurl>
    <contentclass>STS_ListItem_10623</contentclass>
    Icon is displayed wrong.

    yeah its problem with library, But how to fix this?.
    http://www.neilrichards.net/sharepoint/missing-document-icons-from-search-results-with-fast-for-sharepoint/comment-page-1#comment-1043

  • Document library, hide all documents by default.

    Hi
    I have a document library and I want to give access to client. I want to hide all documents by default except the few I share with them.
    If I upload new document it should not be visible to them by default until I share with them.
    I have given read access to client but they can see all documents by default and every time I upload a new document I have to manually control the permissions.

    Hi Shafaqat,
    If you want only document creator has view/edit/delete permission on document item created by himself, it has to set the permission on the list time level for each item.
    You can try using workflow to break the item permission inheritance and replace the proper permision on the current item per the following article. 
    http://johnliu.net/blog/2010/7/13/sharepoint-2010-configuring-list-item-permissions-with-workf.html
    And developing the custom code of Event Receiver is a better way to set the proper/complex item permission when item is created or modified. 
    https://msdn.microsoft.com/en-us/library/ee231563.aspx
    For uplaoding document to a library, I tested before, you can check and make sure the user has "View Application pages" permission on library level, then test again.
    https://social.technet.microsoft.com/Forums/office/en-US/40b31ca1-1ade-42f0-a984-c16ab266f423/sharepoint-upload-permission?forum=sharepointadmin
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • Document library with one document which has 2 workflows

    We have a document library and for one document we have 2 workflows. One canceled and one running. The running is a previous version. How could we delete the actual cancel workflow that we see in the library the previous workflow which is still running?

    Hi,
    Please refer to the following articles.
    Cancel or terminate a workflow instance (SharePoint Server 2010)
    http://technet.microsoft.com/en-in/library/cc298693(v=office.14).aspx
    Remove a workflow association (SharePoint Server 2010)
    http://technet.microsoft.com/en-in/library/cc262779(v=office.14).aspx
    Please mark it answered, if your problem resolved or helpful.

  • HP-p6 upgraded to windows 8.1 - now all items in My documents disappeared leaving only Documents

    My computer automatically upgraded to Windows 8.1 (I think) and it now looks different with the Window button on the bottom left instead of the button to take you back to the old desktop screen.  However when I went to open a Word document I could not locate My documents / My Pictures etc but instead there is only Documents and Pictures under this PC.  How do I locate all of my documents/images et cetera as they were saved under My Documents and not Documents.
    Many thanks

    Hello @Polly-T,
    I understand that your HP p6 Desktop PC automatically upgraded to Windows 8.1 and your My Documents folder is now gone and you want to know how to access it. I am providing you with a Windows Support document: Where is the My Documents folder?, which addresses the very issue that you are describing.
    I hope I have answered your question to your satisfaction. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • In a document library Show time in seconds also for a created column

    HI
    i created a sitecollection with DocumentCenter Template and created documentlibrary,
    after i upload documents i want to see created column should display seconds with created time 
    how it is possible to show seconds also  with time.
    adil

    Create a Calculated column and display it instead of the Created column.
    If it's for display purposes, then the easiest way is to convert the date into any format / pattern you like:
       =TEXT(Created,"MM/DD/YYYY hh:mm:ss AM/PM")
    If you want the column to be sortable by the user, list the year first and leave off the "AM/PM" and display using 24 hours:
       =TEXT(Created,"YYYY/MM/DD hh:mm:ss")
    You could also display the "Created with seconds" column and sort the view on the original Created column.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

Maybe you are looking for

  • Installing SAPNWABAP701SR1_TRIAL on Windows Vista - Error

    Hi, i have problems to install MiniSap on Windows Vista. Can you help me ? here ist the installation log. program is starting... Please wait! guiengine: call to bind() for socket 21200 484 failed . No such file or directory Starting GUIServer using:

  • Changing iTunes account location

    Hello, I am out of the USA at the moment and need to change my account location. But for that I need to have used all my money in my account. I have $.49 left. There is no way I can spend that. I'd there anyway thatApple can erase my money or somethi

  • Can't connect iPhone or iPad to Airport Extreme

    I just got a new modem/wireless router from AT&T U-Verse (it's a 2Wire 020). I needed to extend the range, since the signal doesn't reach to one part of the house. I set my Airport Extreme up as a bridge, and it's working perfectly – in fact, I'm usi

  • Message stuck in SXMB_MONI  status " Sceduled for Outbound Process." Urgent

    Hello All, All messages in our XI environment are getting stuck with status Scheduled for Outbound Processing ...I have already done the following.. 1) Registered the Queues 2) Deleted entries in SMQ1 and SMQ2  and restarted messages Last time we had

  • Colour Display - an observation

    The display of colour, colour profiling and calibration are frequently asked about in these forums. I've always felt that as Elements is not a colour managed application it is not usually worthwhile spending too much time on it. Working in full Photo