none
@ows_FileRef is ok but is being prefixed by the current site url

All replies

  •  

    Hi  I have now been able create a valid url to the remote document library with a little help from a dvwp/xslt/DOM genius (Raymund M)! I did have a bit of fun figuring out how to pass the xslt parameters to it tho.

     

     

    /*
    *
    *   fullLink  -  is ows_FileRef as passed from the GetListItems web service
        short link  -  is ows_LinkFileName as passed fromt the GetListitems web service
    */
    
    
    function GenerateFilePath(fullLink,shortLink) {
                      return ("<a href='" + location.protocol + "//" + location.host + "/" + fullLink + "'>" + shortLink + "</a>");
    
             }
             
    
    

    The above function can be added below  <UpdatePanel> or in my case /Style%20Library/Scripts/yourfunction.js   - I will be moving this to the sp2010 root once I am happy with the testing.

     

    Enjoy

     

    Daniel

     

     


    • Edited by DanTheManXX Monday, September 05, 2011 7:04 PM
    Monday, September 05, 2011 7:03 PM