當我們在VS或網頁中引用Sharepoint 網站的Web service時,可能會遇到如下報錯The document at the url http://server:port/_vti_bin/UserGroup.asmx was not recognized as a known document type.The error message from each known type may help you fix the problem:- Report from 'XML
我們知道Linq to sharepoint 實際最終還是轉化成了CALM來對Sharepoint進行訪問,那麼我們怎樣才能知道我們編寫的Query語句最終轉化成的CALM語句是什麼樣子呢。我們可以使用如下方法來達到我們的目的。 1.首先在我們的Sharepoint項目中建立一個名為CAMLDebug的類,: CALMDebug.cs代碼如下: using System;using System.Collections.Generic;using System.Linq;
近來單位有個水晶報表涉及到要把原來每個財政年度(上一年的6月1號開始到本年的6月30號截止為一個財政年度)按月顯示的銷售分析表換成按周顯示,於是便寫了個函數引入到水晶報表資料來源所用到的視圖中調用,在此寫下以備忘。代碼Code highlighting produced by Actipro CodeHighlighter
在通過BCS建立了一個External List並串連到Northwind資料庫的Orderdetails表時,顯示出錯誤資訊: "Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint
在前面我們提到了如何使用ECMAscript物件模型來操作普通的List Items,但如果我們操作的List包含有Lookup欄位,那麼我們又該怎麼做呢?首先參考此文搭建我們本文的測試環境Sharepoint學習筆記---SPList--建立一個帶有Lookup欄位的List一、對於擷取操作,我們使用如下代碼<script type="text/javascript"> function GetLookupValue() { var context = new
Question 4You have a Web Part that contains the following code segment. (Line numbers are included for reference only.)01 protected void Page_Load(object sender, EventArgs e)02 {03 SPSite site = new SPSite("http://www.contoso.com/default.aspx"); 04