Our users have a need for a report which will give them the URL of a 'Fetch' for all docs beneath a particular project. I've had success with the SQL for Word and Excel files, but not for PDFs, due to difference in the syntax of URL strings. The URL for a PDF contains the DataIDs of all the Parent/Owner IDs, as shown below:URL FOR A PDF:
http://docdev1.genzyme.com/dev91m/livelink.exe/fetch/1416510/2367762/1740319/1755085/PDF_WITH_EXTENSION.PDF?nodeid=1755088&vernum=0(where 1755085 = ParentID, and 1416510 = - OwnerID )URL FOR A WORD FILE:
http://docdev1.genzyme.com/dev91m/livelink.exe/1755090/WORD_NO_EXTENSION.doc?func=doc.Fetch&nodeid=1755090Below is the SQL I'm using to generate the URL for Word/Excel:SELECT d.DataID "Data ID", d.Name "Object Title", v.DataSize "Bytes", '
http://mdocdev1.genzyme.com/dev91m/livelink.exe/'||d.DataID||'/'||REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(UPPER(d.Name),' ', '_'), '#', '_'), '.XLS', ''), '.DOC', ''), '.RTF', '')||CASE WHEN UPPER(d.Name) LIKE '%%.RTF' THEN '.rtf' WHEN v.MimeType IN ('application/vnd.ms-word', 'application/msword', 'application/rtf') THEN '.doc' WHEN v.MimeType LIKE 'application/vnd.ms-excel' AND UPPER(d.Name) LIKE '%%.XLS' THEN '.XLS' ELSE '' END||'?func=doc.Fetch&nodeId='||d.DataID URL FROM DTree d, DVersData v WHERE d.DataID IN ( SELECT DataID FROM DTree START WITH DataID=412754 CONNECT BY PRIOR DataID=ABS(ParentID) ) AND d.DataID=v.DocID AND d.VersionNum=v.Version AND v.MimeType IN ('application/vnd.ms-word', 'application/msword', 'application/rtf', 'application/vnd.ms-excel')Does anyone have any advice on how modify the SQL above to build the URL string for PDF files?Thank you,Su