Voir des fichiers et des dossiers dans CRM
Vu sur le blog de MS CRM :
When using the OnLoad event on the Account form to pass the Account Name, the variable that we are using is "FolderName" however, in the code provided to update the path to the files in the iFrame webpage it is looking for the "AccountFolder" variable. Change "AccountFolder" to "FolderName" in that code. Also, the code has an extraneous = before that variable. The correct code should be :
<script>
document.all.MSOPageViewerWebPart_WebPartWPQ2.src+FolderName;
</script>
As far as that page goes, here is what I had left after the cleanup:
<HTML xmlns:o="urn:schemas-microsoft-com:office:office" dir="ltr">
<HEAD>
<meta name="GENERATOR" content="Microsoft SharePoint" /><meta name="progid" content="SharePoint.WebPartPage.Document" /><meta HTTP-EQUIV="Content-Type"
content="text/html; charset=utf-8" /><meta HTTP-EQUIV="Expires" content="0" />
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<BODY>
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH="100%" Height="100%">
<td valign="top"><div WebPartID="9df1e1c0-1214-4744-aeff-1d573870e4a7" id="WebPartWPQ2" width="100%">
<iframe title="Fileviewer" frameborder="0" id="MSOPageViewerWebPart_WebPartWPQ2" name="MSOPageViewerWebPart_WebPartWPQ2" width="100%" height="100%"
src="\\ServerName\ParentDirectory\" ddf_src="\\\ServerName\ParentDirectory">
</iframe>
</div></td></table>
<script>
document.all.MSOPageViewerWebPart_WebPartWPQ2.src+FolderName;
</script>
</BODY>
</HTML>
Commentaires