何小碩's profileGet More... ExperiencePhotosBlogListsMore ![]() | Help |
|
October 21 Capture "Save and Close" and Insert Custom ActionsDescription: Solution: STEP 1. Locate the Shcema.xml C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\STS\LISTS\Events\SCHEMA.XML STEP 2. Locate the element < Form Type="NewForm" Url="NewForm.aspx" WebPartZoneID="Main"> and then the child element of < ListFormBody> Add a span element where to put the hint description for debuging as follows. STEP3. Locate the child element of < ListFormOpening> under < Form Type="NewForm" ..> and then find below: ... i f(!g_MSclicked) STEP 4. Create a JScript file to store the custom actions STEP 5.Add a ref line on NewForm.aspx Before < /head>, add < script src="/_layouts/1033/secco.js">< /script> which could link the NewForm page to secco.js. Source Code:
// _lcid="1033" _version="11.0.5510"// _localBinding // Version: "11.0.5510" // Copyright (c) SECCO. All rights reserved. //secco.js codes below <!--added by ted below on 30/9/2004--> function checkConflicts(httpRootStr, theForm){ //var theForm = document.forms[0]; var err="right"; alert(getEleValue(theForm,"ID")+"0"); strPost=httpRootStr+"/_vti_bin/owssvr.dll?Cmd=Display&"+ "List="+getEleValue(theForm,"List")+ "&XMLDATA=true&Query=LinkTitle EventDate EndDate ID fRecurrence EventType Duration XMLTZone RecurrenceData"; spanHint.innerHTML = strPost; var HTTPobj; HTTPobj = new ActiveXObject("Msxml2.XMLHTTP.6.0"); HTTPobj.open("POST", strPost, false); HTTPobj.send(); var date1=getDateString(theForm, "EventDate"); var date2=getDateString(theForm, "EndDate"); var filterStr = "//*[("; filterStr+="(ms:string-compare(@ows_EndDate,\""+date1+"\")>=0)"; filterStr+=" and (ms:string-compare(@ows_EventDate,\""+date2+"\")<0 )"; filterStr+=")]"; alert(HTTPobj.responseXml.xml); HTTPobj.responseXml.setProperty("SelectionNamespaces", "xmlns:ms='urn:schemas-microsoft-com:xslt'") var ndList=HTTPobj.responseXml.selectNodes(filterStr); var i=0; for (i=0; i<ndList.length;i++) { alert(ndList[i].xml);//.attributes["ows_EventDate"]); err+=ndList[i].getAttribute("ows_EventDate").toString()+"\n"; err+=ndList[i].xml; if (ndList[i].getAttribute("ows_ID").toString()!=getEleValue(theForm,"ID")) { err="wrong"+err; alert(err); } } alert(ndList.length); if (ndList.length>0 && getEleValue(theForm,"ID")=="New") { err="wrong..."+err; alert(err); } spanHint.innerHTML = err+strPost+err.replace("<","$"); // window.history.back(); return err; }//checkConflicts function getEleValue(theForm, eleName){ return theForm.elements[eleName].value; }//getEle function getDateString(theForm,eleName){ var date1 = getDate(theForm,eleName); return toDateString(date1); }//getDateString function getDate(theForm,eleName){ var dateName = "OWS:"+eleName+":Date"; var hoursName = "OWS:"+eleName+":Hours"; var minsName = "OWS:"+eleName+":Minutes"; var date1 = new Date(getEleValue(theForm,dateName)); date1.setHours(getEleValue(theForm,hoursName), getEleValue(theForm,minsName)); return date1; }//getDate function toDateString(dt){ var d=new Date(); d=dt; var months=new Array("01","02","03","04","05","06","07","08","09","10","11","12"); var days = new Array("01","02","03","04","05","06","07","08","09","10", "11","12","13","14","15","16","17","18","19","20", "21","22","23","24","25","26","27","28","29","30","31"); var str=""; str+= d.getFullYear(); str+="-"; str+=months[d.getMonth()]; str+="-"; str+=days[d.getDate()-1]; str+=" "; str+=d.toTimeString().substring(0,8); return str; }//toDtaeString Submitted By: Ted Teng October 17 常用的 Web Services
文件是 PDF 檔案, 在 sharepoint service V3.0 全文檢索中, 卻找不到, 要如何解決
徵狀 : 請考慮下列情況。 您搜尋 Microsoft Windows SharePoint 3.0 網站為 Adobe 可攜式文件格式 (PDF) 文件, 其位於內容服務 」。 不過, 沒有 PDF 文件傳回請在搜尋結果。 即使 3.0 Windows SharePoint Services 網站中的 PDF 文件內容, 您搜尋位於您會遇到這種徵狀。 發生的原因: 如果要進行編目 PDF 文件未設定 Windows SharePoint Services 搜尋服務在 Windows SharePoint Services 3.0, 就會發生這個問題。解決方案:若要解決這個問題, 請確定 Windows SharePoint Services Search 服務已設定為在已安裝 Adobe PDF IFilter 每部伺服器上耙梳 PDF 文件。 若要安裝 Adobe PDF IFilter, 來設定 Windows SharePoint Services Search 服務, 請依照下列步驟執行: 1. 請下載並安裝 Adobe PDF IFilter 從下列 Adobe 網站: http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611 2.新增下列登錄項目, 然後設定要 pdf 登錄項目值:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Applications\\Gather\Search\Extensions\ExtensionList\38 如果要執行這項操作,請依照下列步驟執行。:
3.請確認下列兩個登錄子機碼是否存在而且它們包含適當的值。 請注意 在伺服器安裝 Adobe PDF IFilter 時建立這些登錄子機碼和值, 它們包含。HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf此登錄子機碼必須包含下列登錄項目:預設值名稱:類型: REG_MULTI_SZ資料: { 4C 11 - 74A9 - 904448 D 0 - - AF6E 00C04FD8DC02 }HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\Filters\.pdf此登錄子機碼必須包含下列登錄項目:預設值名稱:型別: REG_SZ(沒有設定值) 資料:名稱: 副檔名型別: REG_SZ資料: pdf名稱: FileTypeBucket類型: REG_DWORD資料: 0 x 00000001 (1)名稱: MimeTypes型別: REG_SZapplication / pdf 資料: 4.PDF 文件上載至 3.0 Windows SharePoint Services 網站。 5.停止並啟動 Windows SharePoint Services Search 服務。 如果要執行這項操作,請依照下列步驟執行。:
Reference From Other Site
首先當然我們必須要安裝 Adobe iFilter 在 Microsoft Office SharePoint Server 2007 的 索引伺服器上
Bug(s) and HotfixWSS - Response.End() after blob streaming causing performance impact on x64 platform MOSS 2007 流程常見錯誤當流程出現問題時建議使用 Log File: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS... 因為不管大大小小的錯誤均會記錄在此 Log Folder 下其實會比事件檢視器好用多了~~~ 狀況一:Failed on Start 一般來說最有可能的原因在於流程安裝過程中已經出現錯誤... 因為出現錯誤所以導致於無法找到相關流程的 dll 檔案,此時可以檢查一下 GAC 內是否有我們需要的 dll 檔案,甚至我們必須檢查 workflow.xml 內的強示名稱是否有對應到我們的組件版本。 狀況二:Error Occurred 這一個問題則是發生在於你的流程已經啟動但是啟動的過程當中出現錯誤而且是客製化流程,同樣的會建議看一下 Logs,倘若我們有使用 LogToHistoryList activity 則我們就可以很清楚知道到底是哪一個節點出現問題當然我們也可以使用 Virtual Studio 來 Trace 我們的程式碼... 狀況三:Forms 假如我們的表單是使用 InfoPath,那麼我們將要檢查 C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES 確認一下我們的表單已經被正確佈署且安全性已經設定為[Full Trust] 備用存取設定詳解
一堆 Lotus Notes 相關文件與 KB
轉換 License 問題咦 最近突然有很多人詢問 License 轉換的問題,剛好利用這次機會找到了一篇網路上的文章,說明的挺詳細的:
差別就這幾個嚕,這幾個功能都是企業版才有的,簡單來說模糊來說與 BP/ BI 有關的都是 Enterprise... 如何安裝/ 移除 .wsp Feature粉簡單啊~~ 就寫兩支簡單批次檔:一支叫新增;一支叫移除 |
|
|