Link from Document Library to UNC Path

Can anyone tell me if it is possible to create a link from a document library to a UNC path?
I need to establish links to resources in an existing document repository, but Sharepoint presents the following message when attempting to add the link "Enter a valid document name and URL. Valid URLs must begin with 'http:' or 'https:'"
Thanks in advance.
Dave

Following are the steps to achieve this.
1) Create a site content type of type "link to a document" with "Document" as a parent content type.
2) Add the same to the document library.
3) Go in the layouts folder open newlink.aspx in Visual Studio IDE
4) add the following function to the script tag
Code Snippetfunction HasValidUrlPrefix_Override(url)
            var urlLower=url.toLowerCase();
            if (-1==urlLower.search("^http://") &&
            -1==urlLower.search("^https://") && -1==urlLower.search("^file://"))
            return false;
            return true;
 5) Replace "HasValidUrlPrefix" to "HasValidUrlPrefix_Override" in the newlink.aspx
6) IISReset and when adding a link to a file share. It shoudl be done in the following format "file://\\{ComputerName}\\}FileName}" it should work
7) Change the wss resource file present in app_globalresources to show the following message "Enter a valid document name and URL.  Valid URLs must begin with 'http:' or 'https:' or 'file://'"
Hope this should help.
Regards,
Mayur

Similar Messages

  • How to open links from document library in a new window?

    I have a column called "Links" in document library, i want to open those links in a new window. Please guide me on this how to achieve this.
    Thanks
    Ramanjulu Naidu N

    hi,
    See whether these links help you -
    http://preachingsharepoint.blogspot.com/2012/06/open-document-in-new-window-from.html
    http://stackoverflow.com/questions/5119919/sharepoint-links-how-to-open-in-new-tab-window
    http://www.benramey.com/2011/04/25/opening-all-sharepoint-2010-documents-in-a-new-window/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/9db08c4a-b53c-419a-84f8-001c194d1311/how-to-open-sharepoint-document-library-pdf-file-in-new-window?forum=sharepointadminlegacy
    http://www.andrewconnell.com/Adding-OpenInNewWindow-option-to-SharePoint-Links-lists
    http://www.uccorner.com/32/sharepoint/sharepoint-open-links-in-new-window/
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • Linking a document library to a Sharepoint/Access 2013 App

    I am not a developer but I am playing with building an app within SharePoint 2013.  I am an office 365 subscriber.  I am attempting to build an app that would act as a simplified CRM for SharePoint.  I would like to add attachments like emails
    and pdfs to the records I create and it appears the attachment feature is not available within the app environment.  I also can't figure out how to link a document library and it's records to an app as I thought this might be a work around.  So here
    are my two questions:
    Is there a way to add attachments directly into a sharepoint/access web app within sharepoint?
    If not is there a way to connect a document library to the sharepoint access web app as a work around?
    If you have any other ideas they would be greatly appreciated.  Thanks in advance.
    Ben

    I know this is a year late, but for anyone still searching for this, I found a solution that works well for me:
    1. Create the table in the Access Web App that you wish to attach files to.
    2. Use Sharepoint Business Connectivity Services to read the data in the background database for your Access Web App.
    3. Create a document library in Sharepoint, adding an external data column type, using the content type you created in Business Connectivity Services.
    You can now specify an access web app table row from within your document library in sharepoint.
    4. In Access, link a table to the sharepoint document library.  
    5. Edit the default created datasheet from your linked table, to include the fields you wish to display.  Include the field that is used for your field name in the document library - it has a hyperlink included in it.
    6. In the view form for your original table (step 1), add a subview, specifying the datasheet from step 5 and linking by the field id that should now be shared between your original table and the linked sharepoint document library.
    You can now see the files attached to the table item, including a hyperlink in the file field.
    7. Add a hyperlink to your view form to the upload.aspx in the document library.
    8. For added ease, you can pass the row id of your original table to the external content id of the document library within the url.  This takes added javascript work on editform, but it makes it so that the user does not need to select the external
    data.  You can even hide the field if you wish, but I kept it visible so that I can edit within the library.
    A true step by step would take a lot more time.  If you're familiar with these subparts, this should make sense to you.  I hope.

  • How the files are decreasing from RBS storage after some time i delete docs from document library, where shld I check the settings for this?

    HI
    I created a web application and configured  rbs storage ,
    I uploaded documents (for ex: 18 number)
     after uploaded  documents ,  and observed the RBS storage folder, number of files are increasing (39 number) , its working fine
    and also  I run the querys to check the rows increasing or not , (when I upload new doc rows are increased its fine also)
    select count(*) from alldocs
    Select count(*) from AllDocstreams
    but when I delete some docs from document library ,
    1)the doc itself deleted from document library
    2)when I check the rbs storage  there is no number of files are decreased(its still 39 files ), its same as  before doc deleted from doc library
    after some time I found the number of files are decreasing from RBS storage folder in sql server,
    here I want to know the how the files are decreasing from RBS storage  after some time, where  shld I check the settings for this? and how I control on it
    here how I know the settings for cleaning up orphan BLBOS how  these deleted BLOB
    adil

    1. WHen you delete the file from Sharepoint, it is still present in Recycle bin. This is a default setting in sharepoint for 30 days. Once files are deleted fro Recycle bin, it can also be delete from RBS
    2. There is a RBS cleanup job which deletes files from RBS. for more info check 
    http://mehuljamod.blogspot.in/2012/09/remote-blob-storage-maintainer-rbs.html

  • Drag and drop the file from document library to desktop in sharepoint 2013

    can we drag and drp the file from document library to desktop in sharepoint 2013
    Blitz

    We are using third party tool called PageLight for
    SharePoint Outlook Integration which provides drag and drop functionality of emails from Outlook to SharePoint.  Other features includes
    Save Outlook emails to SharePoint and also moving files/folders from file share.
    Thanks
    Alfred

  • Retrieve all folder & sub folder from document library in sharePoint 2013

    Hi,
    I want to retrieve all the folder and sub folder from document library and bind it to the dropdownlist using server object model.
    I used the below query to get all folder and sub folder.\
    query.Query = @"<Query><Where><Eq><FieldRef
    Name='FSObjType' /><Value Type='Lookup'>1</Value></Eq></Where></Query>";
                      query.ViewAttributes
    ="Scope='RecursiveAll'";
                     query.ViewFields
    = "<FieldRef Name='Title'/>";
                      query.ViewFieldsOnly
    = true;
    but when I bind result with the dropdownlist,it displays the output as below
    Please Help
    Thank You

    Hi,
    Thanks for posting your issue, Kindly try out below mentioned CAML query to get all the Folders and Subfolders from Document Library
    <Query>
    <Where>
    <Contains>
    <FieldRef Name='FileLeafRef' />
    <Value Type='Text'>token</Value>
    </Contains>
    </Where>
    <OrderBy><FieldRef Name='FileDirRef' /></OrderBy>
    </Query>
    <ViewFields>
    <FieldRef Name='ID' />
    <FieldRef Name='LinkFilename' />
    <FieldRef Name='FileDirRef' />
    <FieldRef Name='FileLeafRef' />
    </ViewFields>
    <QueryOptions>
    <ViewAttributes Scope='Recursive' />
    <OptimizeFor>FolderUrls</OptimizeFor>
    </QueryOptions>
    Also, check out below mentioned URLs to fix this issue
    https://social.msdn.microsoft.com/Forums/office/en-US/35e799a1-9360-46e5-8719-dd35fdace7ea/filter-document-library-folder-through-caml-query?forum=sharepointdevelopmentlegacy
    http://www.ktskumar.com/blog/2009/07/retrieve-all-folders-from-list/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • PowerShell script to find and remove duplicate items from document library

    Hi Friends,
    Please check this below script, It is finding the duplicate items and removing it. This script is not working to find the duplicate items from document
    library and remove. Can you please let me know where it is wrong.
    Add-PSSnapin microsoft.sharepoint.powershell 
    $web = Get-SPWeb -Identity "http://zapltvsspdev02:4333/bu/EXCO" 
    $list = $web.Lists["AECI Documents"] 
    $AllDuplicates = $list.Items.GetDataTable() | Group-Object INumber | where {$_.count -gt 1} 
    $count = 1 
    $max = $AllDuplicates.Count 
    foreach($duplicate in $AllDuplicates) 
    $duplicate.group | Select-Object -Skip 1 | % {$list.GetItemById($_.ID).Delete()} 
    Write-Progress -PercentComplete ($count / $max * 100) -Activity "$count duplicates removed" -Status "In Progress" 
    $count++ 
    Remove-PsSnapin Microsoft.SharePoint.PowerShell
    Note:
    In the above code, duplicates are found using the "INumber" column. 
    valmiki

    check this
    http://stackoverflow.com/questions/21337158/delete-duplicate-items-in-sharepoint-list

  • Can Additional Document Directories use UNC Paths?

    For Sun One WS 6.0 SP 7 on Windows 2000
    Can additional document directories use UNC paths, or does the directory containing the HTML documents have to be on the server running the Web Server? The documentation
    http://docs.sun.com/source/816-5682-10/esapui21.htm#80857
    says:
    "Map To Directory. Specifies the absolute path of the directory you want the URL prefix to map to, for example,
    C:/iplanet/marketing/pubdocs/index.html"
    But could you instead use:
    \\servername\path\somedocs\
    Anyone ever tried this? And would you have to swap the direction of the slashes?
    //servername/path/somedocs/
    Thanks!
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    For Sun One WS 6.0 SP 7 on Windows 2000
    Can additional document directories use UNC paths, or does the directory containing the HTML documents have to be on the server running the Web Server? The documentation
    http://docs.sun.com/source/816-5682-10/esapui21.htm#80857
    says:
    "Map To Directory. Specifies the absolute path of the directory you want the URL prefix to map to, for example,
    C:/iplanet/marketing/pubdocs/index.html"
    But could you instead use:
    \\servername\path\somedocs\
    Anyone ever tried this? And would you have to swap the direction of the slashes?
    //servername/path/somedocs/
    Thanks!
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • XSL variable-of document name from document library list does not render

    I'm currently building a custom XSL file that is to be linked to a webpart so I can create a custom view. I must say I am new to XSL coding though I have background in html, javascript, php.
    I'm able to render general columns that has been added (from document properties) in the document library I'm pulling data from but cannot seem to figure out how to render out the title. It is a document library so it is to be pulling the name of the document
    added to the library.
    In the aspx, I did try changing all name types (ones with links, without, with edit etc.) but no luck.
    Here is my xsl code so far:
    <xsl:template name="block.rowview">
    <style>
    .sktile{
    width:200px; height:200px; border:#000 solid thin;
    float:left; margin:5px; overflow:hidden
    </style>
    <div class="sktile">
    <xsl:value-of select="@LinkFilename" />
    <xsl:value-of select="@Description0" disable-output-escaping="yes"/>
    <xsl:value-of select="@Recording_x0020_Date" />
    <xsl:value-of select="@Presenter" disable-output-escaping="yes"/>
    <xsl:value-of select="@Tools" disable-output-escaping="yes"/>
    </div>
    </xsl:template>
    And here are the field references:
    <FieldRef Name="LinkFilename"/>
    <FieldRef Name="Recording_x0020_Date"/>
    <FieldRef Name="Presenter"/>
    <FieldRef Name="Tools"/>
    <FieldRef Name="Description0"/>
    So the field I'm struggling to show is the "LinkFilename" It would be great if someone can point out what I'm missing or what I'm doing wrong. Thanks in advance!

    Hi, Paul
    Here are two VIs. Local1 return an error while building and local2 works fine.
    Please let me know what's wrong!
    In previous messege I've asked for a list of bugs in 8.20 and 8.0.1, do you know if it is available?
    Thank you,
    Andrej
    Attachments:
    local1.vi ‏11 KB
    local2.vi ‏12 KB

  • Is it possible to give link of document library in sharepoint list in 2010

    Hi All,
    Using share point list data we have shown in reports. For this we create 1 view and shown as reports. we have 1 document library with title field, same field is in list also.when we click on link on list - it redirects to library folder.
    Is their anyway to do that where as list is custom list.
    Any help is appreciated..!

    Hi Bangara,
    According to your description, my understanding is that you want to create a link in your list, then this link is linked to a library folder. Is it right?
    You can create a Hyperlink field in your list as opening your list->clicking on ‘Create Column’ under List ribbon, then type a name for the column, select the type of the column is Hyperlink or Picture, and Format URL is :Hyperlink.
    After that, when you create a new item or edit an item in the list, you can type the URL of the related library folder in this link field.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Editing Excel in Browser deletes title from document library.

    We just noticed an issue where if we update an Excel file using Office Web Apps, when we return to the library the excel title is missing from the document library. The name and other metadata in the library all seem to be preserved, it's only the Title
    field that seems to be deleted. We confirmed this behavior on several different site collections and on our test environment which has SP1 installed as well.
    Anyone know of a fix for this?
    Thanks. 
    Nick Hurst

    Hi Nick,
    According to your description, my understanding is that the Title became blank after you edited the excel file with Office Web app.
    Whether this issue occurred when you edited the files of other types, like word or ppt.
    Please install SharePoint 2013 SP1, compare the result.
    SharePoint 2013 SP1
    http://support.microsoft.com/kb/2817429/en-us
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Update Symbol and Symbol Script without removing from Document library

    Is there a way in fireworks CS5.1 to update a symbol and the corresponding symbol script without removing it from the document library like it suggests in the below article
    http://www.adobe.com/designcenter/fireworks/articles/frwcs3_richsymbol_print.html

    I have done some more research on this question and there appears to be no way to update a symbol script without removing it from the document library, hopefully this bug will be patched in the near future

  • Including comments entered from Document Library to Records Center Record Library

    We are currently sending documents from a SharePoint 2010 site to a Records Center.
    We are using the Collect Signatures workflow, and edited this default workflow in SharePoint Designer to then send the document to a Records Center when both signatures have been applied.
    Everything is working well, but we'd like to enter comments @ the originating document library...which we can do now...and have those comments get sent over to the Records Center as well when the document is signed by both people.
    Are we able to do this?  ...have comments entered in the Document Library show up in the Records Center Records Library?
    Thank you!

    Hi Joe,
    If your settings are configured as below,
    The site collection Record Declaration Settings are set to "Block Edit and Delete"
    The Record Library is set to "Automatically declare items as records when they are added to this list."
    The Drop Off Library Record Declaration Setting is set to site collection default: Do not allow the manual declaration of records;
    then the item(e.g. Test.xlsx) routed from "Drop Off Library" will be declared as a record in this Record Library, which is inherited from site collection setting "Block Edit and Delete" and auto declare on library option is enabled, then
    this "Test.xlsx" item will be read-only as record and it can not be edited and deleted by design. 
    From the following error message you provided, it seems you secondly upload the Test.xlsx file in "Drop Off Library", then this time the "Content Organizer" will route
    this second Test.xlsx file to the Record Library again, however it cannot update a read-only item with the same name for Test.xlsx previously existed in the Record Library.
    "Unexpected Routing Engine: File DropOffLibrary/Test.xlsx could not be routed to /sites/records/Records/101-01 in site http://records/sites/records : This item cannot be updated because it is locked as read-only."
    If above is the case, for resolving this issue, you can use the following two methods:
    1. Use the option "<label for="ctl00_PlaceHolderMain_versioningSection_appendUniqueCharsRadioButton">Append unique characters to the end of duplicate filenames</label>" for "Content Organizer" settings.
    2. Or use the option "<label for="ctl00_PlaceHolderMain_recordBehaviorSection_recordBlockDeleteRadioButton">Block Delete</label>" for site collection "Record Declaration" Settings.
    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

  • How to open a hyperlink in new tab from document library

    hi,
    I have created a Document library programmatically.
    Added values to columns programmatically. One of the column contains a hyperlink.
    I need to open a new tab when a user click on that link?
    How can we do it?
    i cant add CEWP cause there may be libraries above 200 so i cant add CEWP in every lib.
    can we make it programmatically or any library seetings?

    <script src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
    <script>
    $(function() {
    $('a').filter(function() {
    return this.hostname && this.hostname !== location.hostname;
    }).attr('target','_blank');
    </script>
    Place the above script in the master page.So that it is applicable for all the libraries.
    Find other solutions @:
    http://www.sharepointdiary.com/2011/02/sharepoint-link-list-open-in-new-window_21.html#ixzz2I939sGDr

  • How to open a index.html page from document library rather than download

    Hi,
    I have uploaded a website template folder structure to Office 365. Like this 
     When i click index.html the file gets downloaded to my pc. What i am trying to do is:
    Open the index.html file in new tab so that i can show demo for my site template?

    Hi NirajZ,
    You can't view the html file that uploaded in the SharePoint document library or List as attachment.
    If you wanted to see the html file in the SharePoint, Create the Content Editor WebPart and copy the html url in the link.(Edit the Content Editor WebPart and Check the Properties)
    Murugesa Pandian | MCPD | MCTS | SharePoint 2010

Maybe you are looking for

  • Carbon X1 _ Needing to Repeatedly Re-Install Synaptic Drivers (Win 8.1)

    Hello All, For the second time in a week, I've received the famous message saying that the Synaptics UltraNav drivers aren't being recognized.  I'm currently running Windows 8.1 and have installed Update 1 as well. I've already uninstalled the old dr

  • Zen micro or ip

    I'm so annoyed with Zen Micros, Creative really need to get their act together! I've had 2 zens, one a photo version, and both have packed up. One lasted 3 months, the other lasted 2 weeks. I'm very tempted to replace it with a video iPod. The thing

  • Color Differences between Lightroom and Premiere Pro

    I have been making color adjustments to movie clips in Photoshop or Lightroom (both of which do a great job), but when I bring the clips into Premiere Pro or Premiere Elements the colors are not the same as what I was seing in the other programs. It

  • More information in DAO pattern

    Could u send me the document more detail about DAO in Petstore I have error when I customize Petstore: I replace searchItems function with searchFullDocument But I have error as follows: javax.servlet.ServletException: An error occurred while evaluat

  • Export not being allowed!

    Hello to all! Had recently upgraded to 10.2. I then edited a song video which contained a few clips that I had imported from my disk image camera archives of footage taken in 2011. [The FCPX version at that time could not read data from my Sony handy