随笔分类 -  Moss 2007

摘要:GetUrlKeyValue 阅读全文
posted @ 2013-06-17 10:09 johLife 阅读(574) 评论(0) 推荐(0)
摘要:原文地址:http://geekswithblogs.net/SoYouKnow/archive/2011/08/20/a-dummies-guide-to-sharepoint-and-jqueryndashgetting-amp-setting-sharepoint.aspx<< SharePoint Saturday: The Conference–Slides and Wrap Up | Home | Don’t be “That Company”… Allow your employees to work from home… >>A Dummies Guid 阅读全文
posted @ 2012-08-27 11:01 johLife 阅读(326) 评论(0) 推荐(0)
摘要:使用jquery.SPServices查询文档库里的某一个文档,需要设置CAMLQueryOptions属性,<ViewAttributes Scope="RecursiveAll" />才能查询出来,取值的时候需要使用SPFilterNode("z:row") $().SPServices({ operation: "GetListItems", async: false, listName: "Test Documents", CAMLQuery: "<Query><Wh 阅读全文
posted @ 2012-05-23 15:34 johLife 阅读(891) 评论(4) 推荐(0)
摘要:http://technet.microsoft.com/en-us/library/cc261956(office.12).aspx 阅读全文
posted @ 2012-01-10 14:28 johLife 阅读(132) 评论(0) 推荐(0)
摘要:最近遇到一个问题,客户在Sharepoint上的数据丢失,需要恢复,平时未进行过备份,后来想了想,可以通过数据库的备份进行还原。在网上找了很多资料,发现这篇文章挺好的。http://server.51cto.com/moss-server-migration-110887.htm按照上面说的操作还原成功,记录过程如下:步骤:1、将备份的Wss_Content开头的数据库还原到测试机上;2、在测试环境新建一个应用程序;3、在内容数据库中添加该数据库;其中,遇到了问题,在添加内容数据库的时候报错,ID重复,于是又查找资料,发现ID重复只能通过命令行的方式进行添加内容数据库;http://blog. 阅读全文
posted @ 2012-01-10 14:18 johLife 阅读(542) 评论(0) 推荐(0)
摘要:http://blogs.officezealot.com/jrblog/archive/2008/11/18/starting-sharepoint-designer-workflows-and-access-denied.aspxI recently created a sharepoint designer workflow and only site collection administrators could start it. Other users, even those that had full control on a site could not start it an 阅读全文
posted @ 2011-12-14 12:49 johLife 阅读(209) 评论(0) 推荐(0)
摘要:如果需要在点击Edit page后出现exit edit mode,在Master page增加如下代码:<%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" src="~/_controltemplates/DesignModeConsole.ascx" %><asp:ContentPlaceHolder ID="WSSDesignConsole" runat="server"><wssuc:Desi 阅读全文
posted @ 2011-09-15 14:53 johLife 阅读(363) 评论(0) 推荐(0)
摘要:Below are the values for conditional formattingexample usage : <xsl:if test=”ddwrt:IfHasRights(“REPLACE THIS WITH BELOW VALUE”)”><img alt=”" border=”0″ src=”http://www.cnblogs.com/PublishingImages/btn_AddActionItem.jpg” width=”191″ height=”37″ /></xsl:if>ViewListItems – 1AddLi 阅读全文
posted @ 2011-09-02 09:41 johLife 阅读(367) 评论(0) 推荐(0)
摘要:MOSS2007 文档库 查看是否为新的文件图标 new<xsl:if test="ddwrt:IfNew(string(@Created))"> <IMG SRC="/_layouts/2052/images/new.gif" alt="新建" /></xsl:if> 阅读全文
posted @ 2011-08-16 11:00 johLife 阅读(218) 评论(0) 推荐(0)
摘要:获取文档类型图标<img border="0" alt="" src="/_layouts/images/{ddwrt:MapToIcon(string(@File_x0020_Type), string(@File_x0020_Type))}" /> 阅读全文
posted @ 2011-08-16 10:59 johLife 阅读(286) 评论(1) 推荐(0)
摘要:The init.js and core.js JavaScript filesin the layouts directory of SharePoint2007 contain alot of helpful JavaScript functions. Here is a brief list ofsome of the most helpful classes, functions and variablesavailable.If you are looking for SharePoint 2010, check out the extensive ECMAScript Class 阅读全文
posted @ 2011-07-04 16:37 johLife 阅读(844) 评论(0) 推荐(0)
摘要:在convert to xslt view 后报错,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 Office SharePoint Designer. If the problem persists, contact your Web server administrator.后来看到如下解决方案:http://social.msd 阅读全文
posted @ 2011-06-14 12:25 johLife 阅读(242) 评论(0) 推荐(0)
摘要:原文地址:http://www.endusersharepoint.com/2008/12/18/kpis-for-the-masses-a-dashboard-based-upon-a-date-time-field/MOSS基于日期时间的KPI显示In my the first two articles of this series, Visual Indicators for the Masses and Embed KPIs as a List View, I discussed ways to create simple KPIs in WSS. This article will 阅读全文
posted @ 2011-06-01 13:22 johLife 阅读(330) 评论(0) 推荐(0)
摘要:如果在自定义页面利用xslt显示List的某一个Item的附件,只需要以下两步即可:1.在页面头部加入以下代码:<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>2.在需要显示附件的地方加入以下代码:<Sh 阅读全文
posted @ 2011-04-29 17:28 johLife 阅读(248) 评论(0) 推荐(0)
摘要:在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 阅读(259) 评论(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 阅读(352) 评论(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 阅读(313) 评论(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 阅读(299) 评论(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 阅读(554) 评论(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 阅读(223) 评论(0) 推荐(0)