01 2011 档案
摘要:首先选中DataFormWebPart,然后点击Ribbon上的“Parameters”, 新建一个Parameter,选择“Parameter Source”为“Query String”,设置“Query String Variable”和“Default Value”,URL类似于:http://localhost/pPages/TestListGroupView.aspx?SiteCollection=Control如果想用JQuery得到URL中的参数,可以用以下方法: script language="javascript" type="text/javascript" fun
阅读全文
摘要:选中DataFormWebPart,然后点击Ribbon上的“Sort & Group”,选择要排序或分组的字段,再设置一下显示样式,最后根据需求自己调整XSLT就可以了。统计当前分组:xsl:template name="dvt_1.groupheader0" ... xsl:param name="nodeset" / ... xsl:value-of select="count($nodeset/@LinkTitle)" //xsl:template统计所有:xsl:template name="dvt_1"xsl:variable name="dvt_Style
阅读全文
摘要:1对于带连接的Title,打开查看Item的详细信息,即DispForm.aspx<a href="/Lists/Project Tasks/DispForm.aspx?ID={ ID}"><xsl:value-of select="@LinkTitle"/></a>2多行文本 方法一:<xsl:value-of select="@Description" disable-output-escaping="Yes"/> 方法二: 如果内容显示Div等信息,可以用函数substring-before和substring-after进行处理.3 时间
阅读全文
摘要:1. XsltListViewWebPart 在SharePoint Designer 2010里,如果直接从”Data View”里拖个List到WebPartZone里,那么默认的就是一个XsltListViewWebPart 类型的 WebPart。优点:里边的样式和脚本都封装好了,不用做太多额外的更改;缺点:不可以自定义修改2. DataFormWebPart有两种方法可以添加DataFormWebPart类型的WebPart,方法一:数据源=当前Site的List和Document Libraries,可以在”Data View”里先拖一个”Empty Data View”,然后选择
阅读全文
摘要:Create a column, as below:The formula as below:Using the same technique you can also use the following formula: The current week (Sunday to Saturday inclusive)Start Week =[Due Date] - WEEKDAY([Due Date]) +1End Week =[Due Date] +7 - WEEKDAY([Due Date])The previous monthStart Month =DATE(YEAR([Due Dat
阅读全文

浙公网安备 33010602011771号