本文介绍了dispex SharePoint.OpenDocuments.3适用于PDF而不适用于Office文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的XSL中有一个(SharePoint 2010)内容查询webpart:



< A onfocus =" OnLink(this)" HREF =" {$ ItemUrl}"

onmousedown =" return VerifyHref(this,event,'1','SharePoint.OpenDocuments','')"

onclick ="返回DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.3','0','SharePoint.OpenDocuments','','',' ','1','0','0','0x7fffffffffffffff')">

< xsl:value-of select =" $ DisplayTitle" /> (< xsl:value-of select =" $ ItemUrl" />)

< img src =" / _ layouts / images / blank.gif"类= QUOT; MS-隐藏"边界=" 0"宽度= QUOT 1 QUOT;高度= QUOT 1 QUOT; alt ="使用Shift + Enter可打开菜单(新窗口)。 />

< / A>



有趣的是,它打开了PDF文档的文档而不是Office文档?



Word / Excel / etc给出了关于URL格式错误的错误,因为它是这样的形式:



http://blah.place.comhttp:/blah.place.com/site/subsite/doclib/docname.ext



And,不,单个/而不是//在冗余的http:之后不是一个错字...



但是,onmousedown URL(并在我看来显示了URL)在括号中看起来是否正确形成了?



基本上,从我尝试使用$ ItemUrl无法获取(即将其更改为剪辑服务器名称等,但调用仍然使用相同的,错误的一个)?



提前谢谢。

I have the folllowing in my XSL for a (SharePoint 2010) content query webpart:

<A onfocus="OnLink(this)" HREF="{$ItemUrl}"
onmousedown="return VerifyHref(this,event,'1','SharePoint.OpenDocuments','')"
onclick="return DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.3','0','SharePoint.OpenDocuments','','','','1','0','0','0x7fffffffffffffff')">
<xsl:value-of select="$DisplayTitle" /> (<xsl:value-of select="$ItemUrl" />)
<img src="/_layouts/images/blank.gif" class="ms-hidden" border="0" width="1" height="1" alt="Use SHIFT+ENTER to open the menu (new window)." />
</A>

What is interesting is that it opens the doc for a PDF doc but not an Office one?

Word/Excel/etc gives an error about the URL being malformed and it is because it is in this form:

http://blah.place.comhttp:/blah.place.com/site/subsite/doclib/docname.ext

And, no, the single / rather than // after the redundant http: is not a typo...

However, the onmousedown URL (and confirmed with me displaying the URL in brackets) looks correctly formed?

Basically, where is the call getting it's URL from as I have tried playing with the $ItemUrl to no avail (i.e. changing it to clip the server name, etc but the call still uses the same, erroneous one)?

Thanks in advance.

推荐答案



发送的URL中获取URL的位置


这篇关于dispex SharePoint.OpenDocuments.3适用于PDF而不适用于Office文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 06:03