Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Data View get URL to the dispform

$
0
0

I create a custom data view to display my search results as a table. It display list items (pdf and docx) from several document libraries depending on the search query. In my data view, i want to display a link to directly open the document (using url that i get from the raw xml) and i want to open a link to open the dispform of each document. The problem is that i found a solution to display this link but it only work when the documents are not in folder.

Is there a way to get the URL of the document library only (without the folder) of a document so I can append "Forms/DispForm.aspx?ID=itemid"???

I found many solutions on the web but they only work for documents that are not in subfolder because the only way I found to get the URL is to to get the entire document URL and remove the document name but if the doc is in a folder it does not work...

Example : url : http://server/site/doclib/folder/doc.pdf

               result : http://server/site/doclib/folder/Forms/DispForm.aspx?ID=itemid --> does not WORK!!! I dont wna to get the folder in my URL

Thank in advance


Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>