摘要:
SPList productsList = SPContext.Current.Web.Lists["Products"]; SPQuery query = new SPQuery(); query.Query = "<Where><Eq>" + "<FieldRef Name='AvailableColors' LookupId='TRUE' />" + "<Value Type='Lookup'>1</Value> 阅读全文
摘要:
<html><head><title></title><script type="text/javascript" src="jquery.js"></script><script type="text/javascript">$(function() { $("#actionContainer").hide();});function createNews() { alert($("#newsTitle").v 阅读全文
摘要:
Inside Sharepoint2010 读书笔记1.可设置after事件为同步执行,好处之一是ui不会滞后在Receiver声明中加入:<Synchronization>Synchronous</Synchronization>2.即使在added事件中如果对当前条目做update,也可以并且应该禁止事件触发。在updated事件中则必须禁止事件触发,防止式循环EventFiringEnabl... 阅读全文
摘要:
1. 可设置after事件为同步执行,好处之一是ui不会滞后
2. 即使在added事件中如果对当前条目做update,也可以并且应该禁止事件触发。在updated事件中则必须禁止事件触发,防止式循环
3. 做数据修改时,有个方法,可以防止生成新版本
4. 在adding事件中,beforeproperties是空的,因为这时数据还未写入list中。updating事件中beforepropert... 阅读全文
摘要:
CURSOR C_Temp ISSELECT bxa.*, biv.gtaid4, bxt.GTTDRI, bxd.GTDPID........From t_xxxxxc1 C_Temp%ROWTYPE; FOR c1 IN C_Temp --这种方式好像在结果集为空时会进入死循环 LOOP --processing logic here. END LOOP; FOR C1 IN (SELECTx... 阅读全文
摘要:
$backupLocation = "D:\SPBACKUP\SiteCols"$logFile = join-path $backupLocation "log.txt"cd $backupLocationfunction Write-Log($message){$message$message = (get-date).ToString("yyyy/MM/dd HH:mm:ss") + " - " + $message$message >> $logFile}$source = @"usi 阅读全文
摘要:
http://social.technet.microsoft.com/Forums/en/sharepointadmin/thread/0881326b-7cb6-4198-9bac-7df6eaed9ddehttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/12edf082-ba7f-4063-8... 阅读全文
摘要:
在CodePlex上发现了一个很好的Solution,可以对Lookup字段进行过滤http://sp2010filteredlookup.codeplex.com/下载下来之后是一个wsp文件:Dev4Side.SP2010.FilteredLookup.wsp经验总结:需要用管理员权限需要启动SharePoint 2010 Administration服务如果用stsadm,所需命令如下:stsadm -o addsolution -filename d:\Sharepoint\Dev4Side.SP2010.FilteredLookup.wspstsadm -o deploysoluti 阅读全文
摘要:
http://www.k99k.com/jQuery_getting_started.htmlhttp://visualjquery.com/ 阅读全文