随笔分类 -  Moss 2007

摘要: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 阅读(385) 评论(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 阅读(178) 评论(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 阅读(242) 评论(0) 推荐(0)
摘要:在Moss2007中查询文档库的所有文件夹下面的文档,CAML需要加上以下语句:<QueryOptions><ViewAttributes Scope='RecursiveAll' /></QueryOptions>测试通过! 阅读全文
posted @ 2011-04-01 17:41 johLife 阅读(419) 评论(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 阅读(334) 评论(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 阅读(405) 评论(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 阅读(198) 评论(0) 推荐(0)
摘要:项目有个需要就是对搜索中心进行定制,要求普通搜索,只对标题搜索,高级搜索才对内容搜索。这个问题好长一段时间不能解决,原本打算重新用搜索的API,重新开发所有搜索的webpart,最后找到一个比较简单的方法:1 通过研究,可以用JS实现,搜索框与原来的搜索框样式一样。2 添加一个自定义的搜索结果页: /Search/customResults.aspx,编写核心搜索的xslt,屏蔽掉如下代码,就是不显示内容搜索的内容: <div class="srch-Description"> <xsl:choose> <!-- <xsl:when te 阅读全文
posted @ 2011-03-28 20:38 johLife 阅读(401) 评论(0) 推荐(0)
摘要:WSS Web ServicesWeb ReferenceAdministration Servicehttp://<server-url:port-number>/_vti_adm/admin.asmxAlerts Servicehttp://<server-url>/_vti_bin/alerts.asmxDocument Workspace Servicehttp://<server-url>/_vti_bin/dws.asmxForms Servicehttp://<server-url>/_vti_bin/forms.asmxImagi 阅读全文
posted @ 2011-03-25 11:12 johLife 阅读(250) 评论(1) 推荐(0)
摘要:超链接代码如下:<td class="ms-vb"> <a href="http://www.northwindtraders.com/catalog/{@Category}/{@Title}"> <xsl:value-of select="@Product_x0020_Name" /> </a></td><td class="ms-vb"> <a href="http://www.northwindtraders.com/ca 阅读全文
posted @ 2011-03-24 10:42 johLife 阅读(437) 评论(0) 推荐(0)
摘要:原文地址:http://robgarrett.com/cs/blogs/software/archive/2006/07/03/2065.aspx这篇很短的文章展示了ASP.NET2.0中的母板页和内容页在Windows SharePoint Services v3.0中的应用。WSS 3.0 是在ASP.NET 2.0 的基础上实现的,所以WSS 3.0中母板页/内容页也是基于ASP.NET 2.0中的相应功能而实现站点定制的。网上已经有很多介绍ASP.NET2.0中母版页的文章了。下面提供的链接来源与MSDN,个人认为是一篇介绍ASP.NET 2.0中母版页组成结构的很好的入门文章。htt 阅读全文
posted @ 2011-03-23 14:16 johLife 阅读(378) 评论(0) 推荐(0)
摘要:在MOSS相关的项目中,我们经常要将内容聚合到首页:比方说新闻、通知、文档等内容,由于首页内容相对较多,因此要对各部分内容显示的区域加以限制,才能保证整个页面布局的和谐与统一,限制标题显示的字符数,就成了一个必须的要求。MOSS的文档库和列表本身的试图并不提供本身的功能,所以要实现这样的功能就必须自己动手,一是写自己的webpart,取出库和列表的内容,然后按照自己的要求去展示内容,这种方法的优点是通用性强,并且可以将webpart写的更加通用些,一次投入就一直受益,适合有开发能力的公司或个人;这种方法在SPS2003下就有人做了相应的工作。 那么,对于像我这样的专注于系统而没有开发经验的人来 阅读全文
posted @ 2011-03-23 14:12 johLife 阅读(359) 评论(0) 推荐(0)
摘要:Moss2007 jQuery调用Webservice获取列表数据 更新数据1、获取数据如下:<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script><script type="text/javascript">//-------------------------异步获取数据//------------------------------------ 阅读全文
posted @ 2011-03-17 11:15 johLife 阅读(637) 评论(0) 推荐(0)
摘要:Moss2007 XSLT 判断文档库文档是否为文件夹<xsl:choose> <xsl:when test="@FSObjType='1'"> ....... </xsl:when > <xsl:otherwise> ....... </xsl:otherwise></xsl:choose>注:FSObjType为1表示是文件夹。 阅读全文
posted @ 2011-03-17 10:29 johLife 阅读(238) 评论(0) 推荐(0)
摘要:SharePoint Designer Check In and Check Out Error – Cannot perform this operation.The file is no longer check out or has been deleted.网上的解决方案:清 除Documentsand Settings\Administrator\Local Settings\Application Data\Microsoft\WebsiteCache下对应网站的临时文件,不同的操作系统路径可能不同,请自行查找对应的目录。我试了,好像也不行。后来将页面copy了一份,重命名后正常。 阅读全文
posted @ 2011-03-08 14:04 johLife 阅读(384) 评论(0) 推荐(0)
摘要:我在使用UpdateListItems方法更新List或者新增List数据时报错。下面是MSDN对UpdateListItems的介绍:Lists.UpdateListItems Method来源:http://msdn.microsoft.com/en-us/library/lists.lists.updatelistitems.aspx更新List Item:<Batch OnError="Continue" ListVersion="1" ViewName="270C0508-A54F-4387-8AD0-49686D685EB2& 阅读全文
posted @ 2011-03-08 13:38 johLife 阅读(598) 评论(0) 推荐(0)