Document library: When to rename a file

Hello,
In a document library, I need to rename every file inserted there. For example, the file aa.docx should be renamed in 2014-03-04-aaa.docx. I don't mind doing that before or after the popup window comes with the file's properties.
What should be the best approarch? 
Thank you
Christos

If you can do it, I prefer before. At any rate, you should make very clear that you're changing the file name so the person responsible for inserting documents is aware that it's happenin. Doing it before filling in file properties gives a chance to ensure
the end user is aware of the name change, which makes the functionality more predictable.
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com

Similar Messages

  • Open PDF's in new window in document library when using "Find a file" search

    I need to be able to open PDF's in a new window from a document library when using the "Find a file" search built into the document library "All documents" view. I currently have the following javascript on the page:
    _spBodyOnLoadFunctionNames.push("setTargetBlank()");
    function setTargetBlank()
    { $("a[href$='.pdf']").removeAttr('onclick').attr("target", "_blank");
    This works great when going to the document library and navigating through the folders then clicking on a link.
    The problem is when someone goes to the document library then uses the "Find a file" search and then they click on a link. The "Find a file" search does not do a postback (reload) of the page, therefore my javascript to find the PDF links
    and make them open in a new window does not run for the links on the page.
    I have read the following article but this does not seem to offer a solution that will work in this situation for SharePoint 2013 (Office 365): http://social.technet.microsoft.com/Forums/sharepoint/en-US/7ad3224c-3165-47ae-95bc-4f3928e2f9a8/opening-document-library-pdf-in-a-new-window-sharepoint-2013?forum=sharepointgeneral
    I suppose the idea solution would be to somehow tap into the event that is fired when using "Find a file" search to run my javascript and update the links for the search results.
    Can anyone offer any solutions to this issue?

    Hi,
    According to your description, my understanding is that you want to open PDF files in a new window from a document library when using the "Find a file" search.
    As you said, the "Find a file" search does not do a postback (reload) of the page, therefore JavaScript to find the PDF links and make them open in a new window does not run for the links on the page.
    I recommend to use JS link to achieve the goal. Create a JavaScript override file and upload the JavaScript file to the Master Page Gallery, and then set the JS Link property of the document library web part to point to the JavaScript file.
    Here are some links about the JS link in SharePoint 2013 for you to take a look:
    http://www.idubbs.com/blog/2012/js-link-for-sharepoint-2013-web-partsa-quick-functional-primer/
    http://www.learningsharepoint.com/2013/04/13/sharepoint-2013-js-link-tutorial/
    http://zimmergren.net/technical/sp-2013-using-the-spfield-jslink-property-to-change-the-way-your-field-is-rendered-in-sharepoint-2013
    Thanks,
    Victoria
    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]
    Victoria Xia
    TechNet Community Support

  • Infopath cannot save the following form - this document library was either renamed or deleted

    Hi there,
    I'm working in InfoPath 2013, using a remote desktop connection to a Windows 7 machine publishing to an on-prem SharePoint 2013 server.
    When creating my form, I go to publish it to a form library and get the following error:
    InfoPath cannot save the following form http://myformlocationandname This document library was either renamed or deleted, or network problems are preventing the file from being saved. If this problem persists, please contact your network administrator
    I've tried updating a library, creating a new library, but neither work. I can however, edit a list and customise the form to then publish back without a problem.
    If anyone could offer any advice, I'd be very grateful! :-)
    Thanks very much,
    Alex

    Step1: First, the method of control :
    Add
    Windows Server Feature: User Interfaces and Infrastructure -> Desktop
    Experience 
    Reboot 
    Start
    Windows Services -> Themes service
    Step2: I did not answer:
    Go to SharePoint and create new Subsite
    Created Test Subsite

  • Office 2013 applications cannot be made to show the "Documents" folder when opening and saving files

    (Windows Server 2012R2 and Windows 8.1 PRO)
    We are redirecting the user's "Documents" folder to the network (using Folder Redirection). The OS hides this fact however, and most applications simply see the "Documents" folder when opening or saving files, including Office 2003.
    Office 2013 however displays the actual path, which in this case is:
    \\sever1\redirect$\username\documents
    Even if you forcibly set the "Default local file location:"  in the Options Save area to the 'Documents' folder in, say, Word, Word immediately converts the local path to the network path.
    Is there anyway to get Office 2013 to follow the virtual path? All of other apps follow it and expose the users only to "Documents".
    Thank you so much.
    Dana

    There's nothing in my FAQ concerning screen savers, so I'm unsure why you decided to take that approach. From your description, it looks like you only tried a few of the suggestions before throwing in the towel. That's fine, it's your call.
    I don't have the problems you described with 10.4.7. Usually when folks have problems after an update, these are caused by either installing an update on an already-corrutped system or they've installed third-party applications or hardware that have been rendered incompatible by the update.
    Before installing software updates, you may wish to consider the advice in my "Installing Software Updates" FAQ. Taking the steps therein before installing an update often helps avert problems and gives you a fallback position in case trouble arises.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Hi, I am trying to convert my resume on pages to a word document.  When i export the file to to make it a word document ie(resume.doc) it messes up my whole resume on websites and pulls up a bunch of random words. Please help!

    Hi, I am trying to convert my resume on pages to a word document.  When i export the file to to make it a word document ie(resume.doc) it messes up my whole resume on websites and pulls up a bunch of random words. Please help!

    What exactly is the problem?
    Your description is so muddled I am having trouble working it out.
    How does your exported .doc file mess up websites? In fact what does it have to do with websites?
    Where, how and what are the random words turning up?
    Peter

  • Function not found in library when I compile .so file in linux

    I am trying to get a driver for a california instruments power supply
    working under Linux. The drivers called DLLs compiled under windows I
    think. When I use those, the DLL could not be opened, so I compiled the
    DLL source under Linux. When I use the nm -g on the .so file, I get a
    list of all of the external functions including the ones I am trying to
    call from Labview, but when I try to run I get "function not found in
    library when I compile .so file in linux" even though I can see the
    function using nm. Is there something special I need to do to this .so
    file so Labview can read it?
    Any help would be greatly appreciated.
    Steiner

    Hello Steve,
    I'm not sure if simply recompiling the source code of the dll will be enough to create a Linux driver. I'm assuming the DLL makes some windows specific calls that are not supported in linux. How were you able to compile it in linux BTW? Did you have to change the code around to make it work?
    Your best bet would be to probably try to find a linux version of the driver from the manufactrurer itself.
    Regards,
    Jack J.
    Applications Engineer
    National Instruments

  • Failed to export the file to Sharepoint if the document library had been renamed

    Hi,
    We have encounter a problem that we failed to upload the files to Microsoft SharePoint 2007 through the SharePoint Connector. 
    The document library was initially created as doclibA, and renamed to docLibB
    When we configure the connector to upload the document, we found that it failed to upload to the library.
    And we have change back the name , and it could upload.
    Did anyone got any clue on it ?
    Janice

    Yes, we can upload the doc to doclibB using SharePoint UI
    and actually, the rename was done before the we setup the connector.
    we have deployed other forms in the same site (same livecycle, same sharepoint) before without any problem.

  • Word opening in Client Application in SharePoint document library when feature is not activated in manage features in site collection

    Hello, I wish for all Word documents to open in the browser for my SharePoint document library on my team site.
    The feature 'open in client application' is not activated in Features for the site collection and the setting in the document library is set on 'Use the server default (open in the browser)
    When I select File > new> from the ribbon in the document library - it still opens Word in the client application?
    Any ideas on this?
    Is there a general Office 365 setting over riding SharePoint somewhere?
    Regards
    kegan1

    Okie don't open up a ticket. Can you please open internet explorer...See if its the latest version. Once you have done that can you login to the SharePoint site. Then go to the internet wheel option  in top right corner > select manage add on >
    Click on toolbars and extensions on left > then click on SharePoint open documents in client and disable it. Close the browser completely now for the changes to take effect. Open internet explorer once again and then try to go to site collection click on
    file and create new. The word will open up in browser now. This has to be done on each and every machine in your firm so that users will be able to open up only in browser. Out of the box there is only one way is to customize the ribbon and remove the new
    option from there or creating an all together new ribbon for your SharePoint from visual studio.

  • No email attachments to Document library when using data driven subscriptions

    We have recently migrated to SharePoint 2013 and setup document libraries to publish reports to.
    When we send an email with an attachment to the document library from a users mailbox, the document library acts as expected and detaches the email and publishes it to a subfolder inside the library. However when we schedule reports using data driven subscriptions
    and add the email address as a CC, the subfolder gets created but there is no attachment.
    What could cause this issue?
    Thanks for your time

    Hi WFN_Will,
    regarding this issue, we don't know for sure, unless we trace the process,
    do the attachment is not there, or when the attachment there the process was failed, or the target not able to receive the attachment?
    from the description, seems the target and the process of receiving the attachment is ok, I guess you can start to check from this part:
    https://sharepointstuff.codeplex.com/workitem/2894
    http://msdn.microsoft.com/en-us/library/ms154050.aspx
    http://technet.microsoft.com/en-us/library/ms159150.aspx
    http://technet.microsoft.com/en-us/library/cc262947.aspx
    http://manomangaldas.blogspot.in/2008/04/send-email-with-attachments-in.html
    to ensure that the attachment is there.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Unable to mail-enable a document library when using Directory Management Service in SharePoint 2013

    I'm not able to mail-enable a library document while Directory Management Service is enabled. This behavior only happens when Directory Management Service is turned on.
    Correlation ID: a8c7b29c-d193-90b5-ae14-64cd1143445f
    Note that I have the OU created and permissions setup properly according to MS official documentation.

    Hi,
    According to your post, my understanding is that you failed to mail-enable a library document while Directory Management Service is enabled.
    Please make sure you configure the incoming email correctly.
    For more information, you can refer to:
    https://hosting.intermedia.net/support/kb/default.asp?id=2439
    http://davecoleman146.com/2010/10/20/how-to-setup-mail-enabled-document-libraries-in-sharepoint-2010-part-1/
    If so and the error message persists, please check the SharePoint ULS log to find more information about this error, the ULS log file is in the location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    You can check the ULS log by the methods here:
    http://blog.credera.com/technology-insights/microsoft-solutions/troubleshooting-sharepoint-errors/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • "...not a valid Photoshop document" error when opening Mac cc file on PC

    I get a "Could not complete your request because it is not a valid Photoshop document." error message whenever I try to open up a PSD file created on a Mac using Photoshop CC on my PC using CC. Other people have been able to open the file from the same location, so the files aren't corrupted. Anyone know how to fix this?

    I know this thread is a bit old, but I wanted to share my experience and solution in case anyone else runs into this.
    The other day, I spent many hours editing some photos for a client. I saved them all and closed Photoshop. When I tried to open the .PSDs, they all came up with this "Not a valid Photoshop document" error. I was freaking out. I could see the thunmbnails and previews with the MacOS Finder and could see the images just fine in Lightroom, but couldn't open them in Photoshop CC.
    Finally, I remembered that these were NOT supposed to be .psd files! They were supposed to be TIFFs. What happened was, when I edited them from within Lightroom into Photoshop, they opened as TIFFs. However, when I did "save as", I wanted to name them similarly to some other files I had. I clicked on one of the existing files to copy the file name in the Save As dialog to make it easier to name the new file I was saving, but I didn't realize it was changing the file extention from ".tif" to ".psd" as well. The older MacOS (version 9 and earlier) didn't rely on file extensions fo identifying file types, so it didn't hit me right away that this would be the problem. When I changed the incorrect .psd file extension to .tiff, the files opened in Photoshop just fine.
    SO... if you run into this "Not a valid Photoshop document" error, try figuring out if it's actually another file type (.jpg, .tif, .png, etc) by either getting the file info from another program or just experimenting with different file extensions. Chances are good that your file isn't actually corrupt, but just named improperly!

  • How can i check in an eventreceiver of a document library if a file i getting renamed

    Hi,
    i have a document library with an eventreceiver. I am using the events itemadded, itemupaded and itemfilemoved. When i rename a file the event itemfilemoved is called. But how can i check now if this call is from a rename action?
    I saw that there is properties.ListItem.Name but there is no properties.BeforeProperties.ListItem.Name or properties.AfterProperties.ListItem.Name.
    Has someone an idea?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    Hi,
    Use the ItemFileMoving(SPItemEventProperties) event.
    This will get fired before moving the document. So the
    properties.ListItem.Name will be old name and for new name use 
    string fileName = properties.AfterUrl;
    //split it when it gets to /
    string[] nFileName = url.Split('/')
    //return only the file name
    fileName = nFileName[1];
    I hope this will help you. 
    Dont forget to mark as answer if it helps.
    Regards
    Nikhil Ahuja

  • SharePoint 2013 - In document library, an unexpected error has occurred when a user clicks on ellipsis then "EDIT"

    Just as the title infers, I have a user who is experiencing an unexpected error when he clicks on "EDIT" after clicking on the ellipsis. Document in the Document library is an MS Word file.

    Hi,
    According to your post, my understanding is that an unexpected error has occurred when a user clicks on ellipsis then "EDIT".
    Please make sure he has the edit permission.
    Please make sure the Office 2013 is installed correctly on his computer.
    In addition, I recommend to use another brower to check whether it works.
    If so and the error message persists, please check the SharePoint ULS log to find more information about this error, the ULS
    log file is in the location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    You can check the ULS log by the methods here:
    http://blog.credera.com/technology-insights/microsoft-solutions/troubleshooting-sharepoint-errors/
    More information:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Having trouble opening Crystal Report files from a document library

    I am trying to open Crystal Report .rpt files from a document library in either the native, client Crystal Reports software or in Crystal Reports Viewer. When I add the Crystal Report files to a document library and attempt to open them SharePoint displays
    a prompt asking me to save the file locally instead of opening the file. I have done a lot of research online and found several sites discussing similar scenarios, however, I have not been able to get these solutions to work. Here is a short list of sites
    I have referenced for possible solutions:
    http://naadydev.blogspot.com/2013/03/crystal-report-viewer-sharepoint-2010.html?showComment=1383339860122
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/52aabf2d-10dc-424c-bd50-124fc972a9b9/crystal-report-viewer-integration-with-sharepoint-2010?forum=sharepointgeneralprevious
    http://www.codeproject.com/Articles/42731/Crystal-Reports-WebPart-for-SharePoint
    Here are the steps I have done to try to get the .rpt files to open:
    Added the Crystal Report extension .rpt as a MIME type
    Installed the Visual Studio 2012 Crystal Reports Viewer toolbar
    Installed the 64-bit Crystal Reports runtime
    I have also created a solution file based off the Code Project site which partially works, but not quite right. In this project I have created a document library called "Crystal Reports rpt Files" and deployed the solution file to a site. When
    I open the Web Part Maintenance Toolbar I can see the selected .rpt file in the drop-down, but no Crystal Report file is displayed on the page itself.
    I am not sure what I am doing wrong. Does anyone have experience working with Crystal Reports and SharePoint 2013 (or earlier versions) that could lend some advice?
    Thank you,
    Alex

    We are having the exact same issue, has anyone resolved this yet?

  • How to recover a deleted document library webpart with files in it?

    Hi, 
    I accidentally deleted a document library webpart with folders and files in it. Can someone help how to recover it? What do you think happens to the files? I checked the recycle bin, there is no any deleted file related to the missing files. When I checked
    the Site Content and Structure, I can find the folders yet cant see the files in it. It gives a message that says "Object reference not set to an instance of an object". 
    Please guide. 
    thanks alot,

    Albert, 
    Follow these steps:
    1) open page: https://your_pormal/Lists/YOUR_LIST_NAME/AllItems.aspx
    2) open page in edit mode -> add webpart -> find your list in available webparts -> add
    3) click on the ribbon Stop Editing (Page tab)
    4) Now you try open library from Site Content. 
    But your webpart will looks not like a when a library was created:
    Now follow these steps:
    1) Open library settings
    2) click Create View
    3) Select Standard View (don't select All Items from view templates)
    4) Name it (for example MyAllItems)
    4) Check: Make this the default view
    5) Check: Title (linked to item with edit menu)
    6) Click Save button
    7) Now you have new View (with new address)
    8) Open page https://your_pormal/Lists/YOUR_LIST_NAME/AllItems.aspx
    9) Open it in edit mode
    10) Open list webpart in edit mode
    11) Set Selected View to MyAllItems
    12) Toolbar Type to Full Toolbar
    13) Click OK (after this step it may still showed in "wrong" style)
    14) Click on the Page tap - Stop Editing
    15) Check result ;)
    [custom.development]

Maybe you are looking for

  • How to set up guest wifi network on 1200 series APs with disclaimer web portal?

    I've been thinking about this one for awhile. I want to set up a guest wifi network without any security (AES / TKIP) that allows guests to connect. Ideally, their web browser would be redirected to a web portal containing legal disclaimers, and they

  • How do I use JPanel as a leaf in JTree ?

    Hi All, I am a bit of a newbie and I've been trying to change the behavior of my application. I have a JTree that I now want to change the rendering of a leaf to be a JPanel. The JPanel will have a couple of JButtons and some text and the user can in

  • Problem in parsing XML using DOM

    I am getting one XML file as string like <?xml version="1.0" encoding="ISO-8859-1" ?> <DMSI-ACTIVITY-COMMENTS> </DMSI-ACTIVITY-COMMENTS> Every time I want to add new node <ACTIVITY>           <NAME></NAME>           <ID></ID>           <COMMENT></COM

  • IDVD won't make disc image

    Dear all, many thanks for all the advice on installing iDVD. The software is back on my computer but the origginal problem stays: Whenever I attempt to "save as disk image" or click on "burn" the application "unexpctedly quits". Everything else goes

  • Ultrabeat Saving Sequence

    How can I save a new sequence in Ultrabeat? Thanks.