摘要: 在Moss2007中新建一个list,其中有一个字段是Person/Group类型,如创建者,修改者等。。。。现在要在视图中只显示当前登陆用户的结果,有以下两种方法:1、在建立视图的时候,set the filter for the list as follows:selected [Show only items when following is true]selected '字段名' from the drop down box. 'is equal to'criteria entered '[Me]'2 、在该视图页面,选择编辑页面:然后 阅读全文
posted @ 2011-04-25 13:08 johLife 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 问题描述:在moss2007中新建一个文档库,下面建立两个文件夹,文件夹名词用中文。然后修改自带的AllItems.aspx,将显示的数据列表WebPart转换成DataFormWebPart。保存后进入AllItems.aspx,进入文件夹,选择上传,文档上传后没有正确的跳转到该文件夹下,怀疑是MOSS2007的一个BUG。后来找了很多方法,最后修改DataFormWebPart的xslt,在文件夹列表处修改其超链接。这是旧的链接地址:<xsl:value-of select="$PagePath" />?RootFolder=<xsl:value-of 阅读全文
posted @ 2011-04-23 15:01 johLife 阅读(331) 评论(0) 推荐(0) 编辑
摘要: When encoding a URL, a character may not be available on the keyboard. Other times, the character of a URL might not be usable in contexts where it may conflict with a reserved character. In either case, the character can be encoded with a % followed by its ASCII hexadecimal equivalent code. Charact 阅读全文
posted @ 2011-04-23 11:00 johLife 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 如果想定制一个页面,用DataFormWebPart展示图片库中的所有图片,或者展示文档库中的所有文档,而我们在图片库(文档库)中首先建立的是文件夹,文件夹下面才是文档。如:文件夹1文件夹2文件夹3然后每个文件夹下上传了2张图片;现在要只显示这6张图片;我们只需要用SharePoint Designer打开这个页面,更改DataFormWebPart的Current Data Source,在Item and folder scope处选择Recursive即可:如果要显示所有文件夹及文件夹下的所有文档,选择Recursive All即可: 阅读全文
posted @ 2011-04-21 22:18 johLife 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://hi.baidu.com/seapub/blog/item/967125875dbddc2dc75cc31c.htmlDuring a ten minute break at a recent SharePoint customization class, Brett Lonsdale shared how I might display images in a datasheet thumbnail view. Thanks Brett! With his knowledge and my curiosity, I took my hurriedly scribble 阅读全文
posted @ 2011-04-21 16:38 johLife 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 正常情况下,List有ID. 我们可以这样获取该项的内容:splistitem=splist.GetItemById(ID)Moss2007的讨论版主题没有ID, 只能传一个RootFolder过来,那这个时候我们要怎么获取呢?可以通过如下方法获取:SPSite oSiteCollection = SPContext.Current.Site;SPWeb destWeb = oSiteCollection.AllWebs["Source_Site_Name"];SPFolder folder = destWeb.GetFolder("folderName" 阅读全文
posted @ 2011-04-20 15:09 johLife 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 以下是xslt数值的函数与xslt字符串函数的说明与参考示例。1、xslt数值的函数:(1)fn:number(arg) 返回参数的数值。参数可以是布尔值、字符串或节点集。 示例:<xsl:value-of select="number('100')"/> 返回 100(2)fn:abs(num) 返回参数的绝对值。 示例:<xsl:value-of select="number(-3.14)"/> 返回 3.14(3)fn:ceiling(num) 返回大于 num 参数的最小整数。(注:这里有些文章是写错了的, 阅读全文
posted @ 2011-04-13 12:52 johLife 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 第一种:JS定时自动关闭窗口 <script language="javascript"><!--function closewin(){self.opener=null;self.close();}function clock(){i=i-1document.title="本窗口将在"+i+"秒后自动关闭!";if(i>0)setTimeout("clock();",1000);else closewin();}var i=10clock();//--></script> 阅读全文
posted @ 2011-04-06 14:44 johLife 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: Already since a long time I’ve been thinking about a web part that would search-as-you-type using SharePoint’s search engine. The idea behind this concept is that while you’re typing a query in the search box, asynchronously the query is already executed and the results are being displayed. Every ti 阅读全文
posted @ 2011-04-02 13:47 johLife 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Every time i've been using MOSS 2007 search, i always wanted to have a very simple thing. Before going deeper into the explanations, let's look to the typical item returned after doing the search.What we see here?Actually we see almost everything that MOSS 2007 search could return OOB (out o 阅读全文
posted @ 2011-04-02 12:51 johLife 阅读(168) 评论(0) 推荐(0) 编辑
摘要: In WSS v3 and MOSS 2007, you may be inclined to hide the search scopes drop-down control from a specific page. This article will tell you how to do just that. While this may translate to 2010, I have not tried it as of this point.What is this ‘Search Scopes’ control you speak of?The Search Scopes dr 阅读全文
posted @ 2011-04-02 12:50 johLife 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 在Moss2007中查询文档库的所有文件夹下面的文档,CAML需要加上以下语句:<QueryOptions><ViewAttributes Scope='RecursiveAll' /></QueryOptions>测试通过! 阅读全文
posted @ 2011-04-01 17:41 johLife 阅读(412) 评论(0) 推荐(0) 编辑
摘要: 我新建了一个Discussion Board,然后修改了NewForm.aspx,将自带的ListForm WebPart删除,添加了Custom List Form,之后Allitems.aspx页面在Sharepoint Designer里显示正常,在浏览器浏览的时候报错,报错信息如下:Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft 阅读全文
posted @ 2011-04-01 11:27 johLife 阅读(329) 评论(0) 推荐(0) 编辑
摘要: Have you ever wanted to change the fields presented in a form when you create a new announcement or task for your SharePoint team site? Do you wish you could remove a field or two in order to keep someone from changing important metadata once a document has been uploaded into your library? Perhaps y 阅读全文
posted @ 2011-03-30 10:45 johLife 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 新建一个模板页,使用搜索功能。<asp:ContentPlaceHolder ID="searchArea" runat="server"><SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/></asp:ContentPlaceHolder>无法使用,后来发现需要加入以下代码:<form runat="server" onsubmit="retu 阅读全文
posted @ 2011-03-28 21:39 johLife 阅读(194) 评论(0) 推荐(0) 编辑