上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 52 下一页
摘要: 问题描述:我们在不同的开发Server和Product环境中部署InfoPath的时候,发现命名空间会随InfoPath的小版本变化而变化。比如:http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-03-14T09:12:19处理办法:使用Linq to xml 来获取。封装的方法如下:public static string GetXMLNameSpaceByPrefix(string outerXml, string prefix) { XElement xmlTree = XElem... 阅读全文
posted @ 2011-09-14 14:20 风影极光 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 前提:Task Form 使用InfoPath 2010来设计。在Task Form中的FormEvents_Loading事件中读取第二数据源ItemMetadata中的数据。ItemMetadata中包含了丰富的数据,在工作流中把RequestForm的xml数据存储到ows_ReqXMLSource字段中,此时再来读取这个字段的值时,我们会发现不仅仅是Request的xml数据,还有丰富Task相关联的所有数据(Request对应的Form Library和Task Id等信息)。 string xmlSource = this.DataSources["ItemMetada. 阅读全文
posted @ 2011-09-14 14:15 风影极光 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 获取SPWeb实例方式一 if deployed on farm,we can get spweb by time job titleA define site url in feature template.xml as property,and access it in FeatureActivated eventstring url = properties.Feature.Properties[activeSiteUrl].Value;……job.Title = displayName + "(" + url.ToLower().Trim() + ")&q 阅读全文
posted @ 2011-09-13 12:35 风影极光 阅读(469) 评论(0) 推荐(0) 编辑
摘要: net localgroup administrators /add ibm\mingle 阅读全文
posted @ 2011-09-06 20:14 风影极光 阅读(359) 评论(0) 推荐(0) 编辑
摘要: NeverAlwaysNecessay 阅读全文
posted @ 2011-09-02 17:58 风影极光 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Article1 how to customize task list display page and content type?Article2 how to design time job in SharePoint 2010?Article3 InfoPath debug 阅读全文
posted @ 2011-09-02 17:57 风影极光 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 应用场景:在请假系统中,需要一个Country列表和Task列表。Country列表作为元数据显示用户所属的国家。Task列表工作流审批使用,并且呈现Task的编辑aspx页面需要隐藏删除按钮。<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- Country Content Type : Parent ContentType: Item (0x01) 阅读全文
posted @ 2011-09-02 17:54 风影极光 阅读(200) 评论(0) 推荐(0) 编辑
摘要: new-spuser -useralias "ibm\10086" -web https://tst15.emdev.azcollaboration.com/operations/Operations/HR -Group "Reporter" 阅读全文
posted @ 2011-08-30 12:31 风影极光 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 说明:目标站点HR中的列表Location中PeopleandGroup 域LSR,需要添加人员$curWeb = Get-SPWeb ""$curWeb = Get-SPWeb "https://tst15.emdev.azcollaboration.com/operations/Operations/HR"[Microsoft.SharePoint.SPList]$curList = $curWeb.Lists["Location"][Microsoft.SharePoint.SPListItem]$curItem = $curL 阅读全文
posted @ 2011-08-30 11:33 风影极光 阅读(213) 评论(1) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.SharePoint;namespace CR.SharePoint.HR.Common{ public static class PermissionManager { //SPGroup group = web.Groups[0]; //SPUser user = web.Users[0]; //SPUser user2 = web.Ens... 阅读全文
posted @ 2011-08-30 11:10 风影极光 阅读(408) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 52 下一页