Hi,
First in How To's :)
To add a Excel Webpart from Silverlight oject Model -
ClientContext cnt = new Microsoft.SharePoint.Client.ClientContext("http://hydhtc130180d:3333/");
if (cnt == null)
{
throw new Exception("connection failed");
}
else
{
string ewaWebpart = "<?xml version='1.0' encoding='utf-8'?><webParts><webPart xmlns='http://schemas.microsoft.com/WebPart/v3'><metaData>";
ewaWebpart +="<type name='Microsoft.Office.Excel.WebUI.ExcelWebRenderer, Microsoft.Office.Excel.WebUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' />";
ewaWebpart +="<importErrorMessage>Cannot import this Web Part.</importErrorMessage>";
ewaWebpart +="</metaData>";
ewaWebpart +="<data>";
ewaWebpart += "<properties>";
ewaWebpart += "<property name='Title' type='string'>ExcelWebRenderer</property>";
ewaWebpart += "</properties>";
ewaWebpart +="</data></webPart></webParts>";
LimitedWebPartManager limitedWebPart = cnt.Web.GetFileByServerRelativeUrl("/SitePages/mypage.aspx").GetLimitedWebPartManager(PersonalizationScope.Shared);
WebPartDefinition ewaWebPartDef = limitedWebPart.ImportWebPart(ewaWebpart);
limitedWebPart.AddWebPart(ewaWebPartDef.WebPart,"Left",1);
cnt.ExecuteQueryAsync(s1, f1);
Showing posts with label External List. Show all posts
Showing posts with label External List. Show all posts
Monday, December 21, 2009
Tuesday, September 22, 2009
External List
Good Morning--
The Normal sharepoint but it gets data from Line of Business Object..confusing right?
This is new feature of Sps2010 where the sharepoint list can import all data from any external system using 'Business Connectivity System' [BDC in MOSS]
The cool feature is after getting all data from external system, the developer can play with it like normal sharepoint list, can add column, data into column etc.
The Normal sharepoint but it gets data from Line of Business Object..confusing right?
This is new feature of Sps2010 where the sharepoint list can import all data from any external system using 'Business Connectivity System' [BDC in MOSS]
The cool feature is after getting all data from external system, the developer can play with it like normal sharepoint list, can add column, data into column etc.
Labels:
External List,
New Feature,
sharepoint,
Sharepoint2010,
sps2010
Subscribe to:
Posts (Atom)