This is not a big deal! I found a text error (missing white space) in SharePoint 2010 Products Configuration Wizard
Sunday, January 16, 2011
SharePoint 2010 Products Configuration Wizard - Text Error
Saturday, January 15, 2011
My Useful SharePoint 2010 Resources
Understanding the Basics of Collaboration in SharePoint 2010
- Microsoft SharePoint Designer team blog at http://blogs.msdn.com/sharepointdesigner/
- “Gartner Predicts That by 2013, More Than 25 Percent of the Content That Workers See in a Day Will Be Dominated by Pictures, Video or Audio” at http://www.gartner.com/it/page.jsp?id=834213
- “SharePoint Formulas in Calculated Columns” at http://blogs.msdn.com/mcsnoiwb/archive/2008/05/04/sharepoint-formulas-in-calculated-columns.aspx
- “Changes in SharePoint Designer 2010” at http://technet.microsoft.com/en-us/library/cc179083.aspx
- “Creating Workflows with SharePoint Designer 2010” video at http://www.bing.com/videos/watch/video/getting-started-sharepoint-2010-creating-workflows-with-sharepoint-designer/10ts7flgd
- Office 2010 at http://www.microsoft.com/office/2010/en/default.aspx
- SharePoint 2010 Technologies Page at http://sharepoint2010.microsoft.com/Pages/default.aspx
- System requirements and what’s new in Microsoft SharePoint Foundation 2010 at http://technet.microsoft.com/en-us/sharepoint/ee263910.aspx#tab=1
- System requirements and what’s new in Microsoft SharePoint 2010 at: http://technet.microsoft.com/en-us/sharepoint/ee263917.aspx
Understanding the Architecture of SharePoint 2010
- SharePoint 2010 SDK at http://msdn.microsoft.com/en-us/library/ee557253(office.14).aspx
- “Microsoft in the Enterprise” guide at http://download.microsoft.com/download/B/8/8/B8804100-DA41-4771-BE70-FE878ED51AAB/2009-2010.MSFTintheEnterprise.ResourceGuide.11.09.pdf
Optimizing SQL Server for a SharePoint 2010 Implementation
- SQL Server 2005 features: http://www.microsoft.com/sqlserver/2005/en/us/top-30-features.aspx
- SQL Server 2008 features: http://www.microsoft.com/sqlserver/2008/en/us/whats-new.aspx
Installing SharePoint 2010
- 64-bit edition of Windows Server 2008 R2 Standard, Enterprise, or Datacenter editions and WCF hotfix at http://go.microsoft.com/fwlink/?LinkID=166231
- 64-bit edition of Windows Server 2008 Standard, Enterprise, or Datacenter editions with Service Pack 2 (SP2) and the WCF hotfix at http://go.microsoft.com/fwlink/?LinkID=160770
- “SharePoint Server 2010 Hardware and Software Requirements” at http://technet.microsoft.com/en-us/library/cc262485(office.14).aspx#section4/
- KB article “How do I open the firewall port for SQL Server on Windows Server 2008?” at http://support.microsoft.com/kb/968872
Using Windows PowerShell to Perform and Automate Farm Administrative Tasks
- “SharePoint Automation Source Code” at http://stsadm.codeplex.com/
- “SharePoint Management, PowerShell scripts” at http://sharepointpsscripts.codeplex.com/
- “PowerShell SharePoint Provider” at http://www.codeplex.com/PSSharePoint/
- “What’s New in Windows PowerShell” at http://technet.microsoft.com/en-us/library/dd378784.aspx
- “Windows PowerShell” information at http://en.wikipedia.org/wiki/Windows_PowerShell
- “Scripting with Windows PowerShell” on the Microsoft TechNet Script Center at http://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx
- Windows PowerShell bloggers at http://pipes.yahoo.com/powershell/englishbloggers
- “Windows PowerShell” free ebook at Microsoft at http://blogs.msdn.com/mapo/archive/2007/07/17/windows-powershell-free-ebook-at-microsoft.aspx
- “Mastering PowerShell,” by Dr. Tobias Weltner, a free eBook at http://blogs.msdn.com/powershell/archive/2009/07/17/free-powershell-v1-book-from-the-makers-of-powershell-plus.aspx
- Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0) at http://support.microsoft.com/default.aspx/kb/968929
- “Heading Off Malicious Code” at http://technet.microsoft.com/en-us/magazine/2008.01.powershell.aspx
- “ALLSigned: Signing Your PowerShell Scripts” blog post by Zach Rosenfield at http://sharepoint.microsoft.com/blogs/zach/Lists/Posts/Post.aspx?ID=53
- Remote Server Administration Tools (RSAT) is available at http://www.microsoft.com/downloads
- “What’s New in Group Policy” at http://technet.microsoft.com/en-us/library/dd367853.aspx
- Windows Server 2008 (R2) Blog by Kurt Roggen [BE]: http://trycatch.be/blogs/roggenk/archive/2009/06/08/installing-windows-7-rsat-unattended.aspx
- “PowerShell remoting between two workgroup machines” at http://blogs.msdn.com/wmi/archive/2009/07/24/powershell-remoting-between-two-workgroup-machines.aspx
- “Multi-Hop Support in WinRM” at http://msdn.microsoft.com/en-us/library/ee309365(VS.85).aspx
Organizing Information
- Mark Schneider’s SharePoint Taxonomy and Governance Blog at http://sharepointplan.com
- “SharePoint Survey: How Organizations are Staffing Their SharePoint Teams” at http://sharepoint.mindsharpblogs.com/Bill/archive/2010/03/06/SharePoint-Survey[coln]-How-Organizations-are-Staffing-Their-SharePoint-Teams.aspx
- Governance Resource Center for Microsoft Office SharePoint Server 2007 at http://technet.microsoft.com/en-us/office/sharepointserver/bb507202.aspx
- Dublin Core Metadata Initiative (DCMI) at http://www.dublincore.org
- Oline community for the Darwin Information Typing Architecture OASIS Standard at http://dita.xml.org
- Taxonomy Warehouse at http://taxonomywarehouse.com
- MIKE2.0, The Open Source Standard for Information Management, at http://mike2.openmethodology.org
- AIIM at http://www.aiim.org
Collaboration and Portals
- “Manage a wiki using SharePoint” at http://go.microsoft.com/fwlink/?LinkId=168889
Search Server 2010 and FAST Search: Architecture and Administration
- Microsoft Enterprise Search Blog at http://blogs.msdn.com/enterprisesearch
- “Create a custom dictionary (SharePoint Server 2010)” at http://technet.microsoft.com/en-us/library/cc263242.aspx
- “Microsoft SharePoint 2010 Indexing Connector for Documentum” at http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=32d0980a-4b9a-4b0d-868e-9be9c0d75435
- “Regular Expression Basic Syntax Reference” at http://www.regular-expressions.info/reference.html
- “Newly published content for FAST Search Server 2010 for SharePoint” at http://technet.microsoft.com/en-us/library/ff686963.aspx
Using Windows PowerShell to Manage Search Services and FAST Search
- “SP+PS 2010: PowerShell to Create a Service Application” at http://sharepoint.microsoft.com/blogs/zach/Lists/Posts/Post.aspx?ID=50
- “Supporting –WhatIf, –Confirm, –Verbose—in SCRIPTS!” at http://blogs.msdn.com/powershell/archive/2007/02/25/supporting-whatif-confirm-verbose-in-scripts.aspx
Customizing the Search Results and Search Center
- “Managed metadata input file format (SharePoint Server 2010)” at http://technet.microsoft.com/en-us/library/ee424396(office.14).aspx
- “Regular Expression Basic Syntax Reference” at http://www.regular-expressions.info/reference.html
- Expresso 3.0 at http://www.ultrapico.com/Expresso.htm
Administering Web Content Management and Publishing
- Microsoft SharePoint 2010 at http://sharepoint2010.microsoft.com
- IIS Media Services Readme with links to “Bit Rate Throttling” at http://go.microsoft.com/fwlink/?LinkId=131775
Securing Information
- “Access Control in Active Directory” at http://technet.microsoft.com/en-us/library/cc785913(WS.10).aspx
- “Add-SPShellAdmin” TechNet article at http://technet.microsoft.com/en-us/library/ff607596.aspx
- “Set permission to a published service application (SharePoint Foundation 2010)” at http://technet.microsoft.com/en-us/library/ff700210.aspx
Aggregating External Data Sources
- “Business Connectivity Services: Sample XML and Code Examples” at http://msdn.microsoft.com/en-us/library/ee559369(office.14).aspx
- “Business Connectivity Services security overview (SharePoint Server 2010)” at http://technet.microsoft.com/en-us/library/ee661743.aspx
- “Permissions in Business Connectivity Services” at http://blogs.msdn.com/bcs/archive/2009/11/24/permissions-in-business-connectivity-services.aspx
- “Duet Enterprise for Microsoft SharePoint and SAP” at http://blogs.msdn.com/bcs/archive/2009/11/24/duet-enterprise-for-microsoft-sharepoint-and-sap.aspx
Web Parts and Their Functionality in SharePoint 2010
- ULS Viewer down load at http://code.msdn.microsoft.com/ULSViewer
- RSS Advisory Board, RSS 2.0 Specification, at http://www.rssboard.org/rss-specification
Publishing SharePoint 2010 to Mobile Devices
- “Editing Domain-Based GPOs Using ADMX files” at http://technet.microsoft.com/en-us/library/cc748955(WS.10).aspx
- Forefront Unified Access Gateway (UAG) documentation at http://technet.microsoft.com/en-us/library/ff358694.aspx
Business Intelligence, Reporting Services, and PerformancePoint Services
- Microsoft SQL Server 2008 Reporting Services at http://www.microsoft.com/sqlserver/2008/en/us/reporting.aspx
- “Planning a Deployment Mode” at http://msdn.microsoft.com/en-us/library/bb326345.aspx
- “Reporting Services Log Files” at http://msdn.microsoft.com/en-us/library/ms157403.aspx
- “Configuration Files (Reporting Services)” at http://technet.microsoft.com/en-us/library/ms155866.aspx
- SQL Server 2008 R2 Reporting Services Add-in for SharePoint 2010 download at http://www.microsoft.com/downloads/details.aspx?FamilyID=16bb10f9-3acc-4551-bacc-bdd266da1d45&displaylang=en
Upgrading to SharePoint 2010
- “Migrate an Existing Server Farm to a 64-Bit Environment (Office SharePoint Server 2007)” at http://technet.microsoft.com/en-us/library/dd622865.aspx
- Migration and Upgrade Resource Center for Office SharePoint Server 2007 at http://go.microsoft.com/fwlink/?LinkID=104403
- “Migrate a stand-alone installation to a server farm installation (Office SharePoint Server 2007)” at http://technet.microsoft.com/en-us/library/cc262325.aspx
Sunday, January 9, 2011
PowerShell for SharePoint
First things first. Where can we find PowerShell? When running on a SharePoint server, two possibilities exist: either select the SharePoint 2010 Management Shell from the Start menu or open a command prompt and enter the following:
If we’re using the SharePoint management shell, the SharePoint snap-in will already be installed. If we’re using a standard PowerShell console, we can install the snap-in by entering the following command:
We can check the list of installed snap-ins by using this command:
Connecting to SharePoint Remotely
We can open a PowerShell session on a client machine and then use remoting to connect to a SharePoint server. To enable remoting on the server, enter the following command:
PowerShell Permissions
following command:
Add-SPShellAdmin -Username domain\username -database (Get-SPContentDatabase-webapplication http://weburl)
Working with Site Collections and Sites
When it comes to managing site objects (SPWeb), we can pick up a specific web site using this:
or
Creating Site Collections and Sites
Create a new site collection using the New-SPSite cmdlet:
Add new sites using the New-SPWeb cmdlet:
Deleting Site Collections and Sites
We can delete site collections and sites by using the Remove-SPSite or the Remove-SPWeb cmdlet.
or
Setting Properties on SharePoint Objects
$web=SP-GetSPWeb -Identity http://myweburl
$web.Title="My New Title"
$web.Update()
Working with Lists and Libraries
Enumerate the lists on a site using the following:
Get-SPWeb -Identity http://myweburl | Select -Expand lists| Select Title
Add new lists using the Add method of the Lists property:
Get-SPWeb -Identity http://myweburl | ForEach {$_.Lists.Add("My Task List", "",$_.ListTemplates["Tasks"])}
Working with Content
Retrieve a list of all items in a site using the following:
Apply a filter to show only documents:
Use of filters to search for a specific item:
Get-SPWeb -Identity http://myweburl | Select -Expand Lists | Select -Expand Items | Where {$_.Name -like "foo*"} | select Name, Url
Creating New Documents
To create a new document in a document library, use the following:
function New-SPFile($WebUrl, $ListName, $DocumentName,$Content)
{
$stream = new-object System.IO.MemoryStream
$writer = new-object System.IO.StreamWriter($stream)
$writer.Write($content)
$writer.Flush()
$list=(Get-SPWeb $WebUrl).Lists.TryGetList($ListName)
$file=$list.RootFolder.Files.Add($DocumentName, $stream,$true)
$file.Update()
}
New-SPFile -WebUrl "http://myweburl" -ListName "Shared Documents" -DocumentName "PowerShellDocument.txt" -Content "Document Content"
Working with Timer Jobs
Get a list of all timer jobs:
Or we can get a list of job failures grouped by the job name:
Get-SPTimerJob | Select -Expand HistoryEntries | Where {$_.Status -ne "Succeeded"} | group JobDefinitionTitle
Saturday, January 8, 2011
Renaming The Central Administration Database
Unless you perform a command-line installation, by default SharePoint Central Administration site uses database name with a Globally Unique Identifier (GUID), for example: SharePoint_AdminContent_<GUID>. If you like to rename the Central Administration Database, you can follow these steps but with extreme caution :
- Log on to your SQL Server with an account that has full access; ideally, you should use the same account that you used for your SharePoint installation.
- Open the SQL Server Management Studio interface and locate the SQL Server instance that contains your Central Administration database, for example: SharePoint_AdminContent_<GUID>. Right-click the database name and choose the Rename command from the shortcut menu to enter edit mode. Then press Ctrl+C to copy the existing name of the database for later use.
- Back up the existing SharePoint_AdminContent_<GUID> database by right-clicking the name of the database and then selecting the Tasks command.
- When you have successfully backed up the database, restore the information from the backup that you just performed to a new database having a user-friendly database name such as CentralAdmin_Content_SharePointMalayaDB.
- Open SharePoint Central Administration. Under Application Management, click Manage Content Databases.
- Select the SharePoint Central Administration v4 Web application using the Web application drop-down list.
- Click the old database name, SharePoint_AdminContent_<GUID>.
- Use the Database status drop-down option to change the status from Ready to Offline.
- Do not select the option to remove the content database.
- Click OK.
- Log on to the SharePoint server using the account that was used to provision the database. Usually this is the service user account that you configured SharePoint with when you provisioned the content databases during the installation of SharePoint 2010.
- After opening the command prompt, perform the following steps.
- Type cd C:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\BIN\ to change the directory to the SharePoint 2010 root so you can run the STSADM commands.
- Delete the original Central Administration database, the one with the GUID that you copied earlier, using the following command:
stsadm -o deletecontentdb -url http://UrlOfYourCentralAdministration:portnumber –databasename SharePoint_AdminContent_<GUID> -databaseserver NamedInstanceOfYourSqlServer
- Associate the newly created database with your Central Administration using the following STSADM command:
stsadm -o addcontentdb -url http:// UrlOfYourCentralAdministration:portnumber -databasename SharePoint_AdminContent_SharePointMalayaDB -databaseserver NamedInstanceOfYourSqlServer
- Return to SharePoint Central Administration. Under Application Management, click Manage Content Databases and refresh the page to verify that your Central Administration database reflects the new database name.
- If you see a database with the SharePoint_AdminContent_SharePointMalayaDB name, you can then be sure that the original Central Administration database is backed up, and you can delete it from SQL Server.
Tuesday, January 4, 2011
Write Error Logging Entries To The SharePoint Unified Logging Service (ULS) Logs
All SharePoint exceptions are derived from the SPException class. We can write error logging entries to the SharePoint Unified Logging Service (ULS) logs by using code similar to the following sample:
try
{
// Some code
}
catch (Exception ex)
{
// Create diagnostics category
SPDiagnosticsCategory oCat = new SPDiagnosticsCategory("A new category", TraceSeverity.Monitorable, EventSeverity.Error);
// Write to ULS
SPDiagnosticsService.Local.WriteEvent(1, oCat, EventSeverity.Error, "Error custom message", ex.StackTrace);
}
ULS is stored in the file system in “C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\LOGS”.
Sunday, December 26, 2010
Default SharePoint 2010 Application Pools
When you configure SharePoint using the post-installation Farm Configuration Wizard, you will notice that the system comes preconfigured with five separate application pools. These application pools that are configured by the wizard, as well as the security context under which each pool runs is shown in table below:
| Application Pool | Description | Identity |
| SharePoint Central Administration v4 | SharePoint Central Administration v4 | Farm Administrator Account |
| SharePoint Web Services System | SharePoint Topology Service Application | Farm Administrator Account |
| SecurityTokenServiceApplicationPool | SharePoint Security Token Service Application | Farm Administrator Account |
| SharePoint Web Services Root | SharePoint Service Applications | Service Account |
| SharePoint – 80 | Default preconfigured Content Application | Service Account |
Monday, December 13, 2010
Ghosting/Unghosting Or Uncustomized/Customized Or Attached/Detached
With each new version of SharePoint comes another set of terms for this phenomenon. SharePoint 2003 brought us ghosting/unghosting; SharePoint 2007 scrapped these terms in favor of the more descriptive uncustomized/customized. Now with SharePoint 2010, the terms
attached and detached are used to prevent any ambiguity. In most SharePoint documentation, the terms ghosted/unghosted are still in use.
| SharePoint 2003 | Ghosting/Unghosting |
| SharePoint 2007 | Uncustomized/Customized |
| SharePoint 2010 | Attached/Detached |
Friday, November 12, 2010
Deleting Data Using Silverlight and Javascript Client Object Model
Silverlight
private void Delete_Click(object sender, RoutedEventArgs e)
{
ClientContext ctx = new ClientContext("Your Server Here");
CamlQuery query = new CamlQuery();
query.ViewXml = "<View><Query><OrderBy><FieldRef Name=\"Editor\" Ascending=\"False\" /></OrderBy></Query></View>";
List announcements = ctx.Web.Lists.GetByTitle("Announcements");
ListItemCollection listItems = announcements.GetItems(query);
ctx.Load(listItems);
ctx.ExecuteQueryAsync((s, args) =>
{
ListItem lastItem = listItems[listItems.Count - 1];
lastItem.DeleteObject();
announcements.Update();
ctx.ExecuteQueryAsync((s1, args1) =>
{
Dispatcher.BeginInvoke(() =>
{
label1.Content = "Last record deleted";
});
}, null);
}, (s, args) =>
{
Dispatcher.BeginInvoke(() =>
{
label1.Content = args.Message;
});
});
}
Javascript
function Delete_Click() {
var ctx = new SP.ClientContext.get_current();
var query = new SP.CamlQuery();
query.viewXml = "<View><Query><OrderBy><FieldRef Name=\"Editor\" Ascending=\"False\" /></OrderBy></Query></View>";
var announcements = ctx.get_web().get_lists().getByTitle("Announcements");
var listItems = announcements.getItems(query);
ctx.load(listItems, "Include(Title)");
ctx.executeQueryAsync(function (s, args) {
var lastItem = listItems.get_item(listItems.get_count() - 1);
lastItem.deleteObject();
announcements.update();
ctx.executeQueryAsync(function (s, args) {
var console = document.getElementById('DemoConsole');
console.innerHTML = " Last Item Deleted";
}, null);
}, null);
}
For more information on Silverlight and JavaScript Client Object Model, see below:
Thursday, November 11, 2010
Updating Data Using Silverlight and Javascript Client Object Model
Silverlight
private void Update_Click(object sender, RoutedEventArgs e)
{
ClientContext ctx = new ClientContext("Your Server Here");
CamlQuery query = new CamlQuery();
query.ViewXml = "<View><Query><OrderBy><FieldRef Name=\"Editor\" Ascending=\"False\" /></OrderBy></Query></View>";
List announcements = ctx.Web.Lists.GetByTitle("Announcements");
ListItemCollection listItems = announcements.GetItems(query);
ctx.Load(listItems);
ctx.ExecuteQueryAsync((s, args) =>
{
foreach (var item in listItems)
{
item["Title"] = "Updated";
item.Update();
}
ctx.ExecuteQueryAsync((s1, args1) =>
{
Dispatcher.BeginInvoke(() =>
{
label1.Content = "Records Updated";
});
}, null);
}, (s, args) =>
{
Dispatcher.BeginInvoke(() =>
{
label1.Content = args.Message;
});
});
}
Javascript
function Update_Click() {
var ctx = new SP.ClientContext.get_current();
var query = new SP.CamlQuery();
query.viewXml = "<View><Query><OrderBy><FieldRef Name=\"Editor\" Ascending=\"False\" /></OrderBy></Query></View>";
var announcements = ctx.get_web().get_lists().getByTitle("Announcements");
var listItems = announcements.getItems(query);
ctx.load(listItems, "Include(Title)");
ctx.executeQueryAsync(function (s, args) {
var itemEnum = listItems.getEnumerator();
while (itemEnum.moveNext()) {
var item = itemEnum.get_current();
item.set_item("Title", "JavaScript Update");
item.update();
}
ctx.executeQueryAsync(function (s, args) {
var console = document.getElementById('DemoConsole');
console.innerHTML = "JavaScript Update Completed";
}, null);
}, null);
}
For more information on Silverlight and JavaScript Client Object Model, see below:
Adding Data Using Silverlight and Javascript Client Object Model
Silverlight
private void Add_Click(object sender, RoutedEventArgs e)
{
ClientContext ctx = new ClientContext("Your Server Here");
List announcements = ctx.Web.Lists.GetByTitle("Announcements");
ListItemCreationInformation createInfo = new ListItemCreationInformation();
ListItem newItem = announcements.AddItem(createInfo);
newItem["Title"] = "A new item";
newItem.Update();
ctx.ExecuteQueryAsync((s, args) =>
{
Dispatcher.BeginInvoke(() =>
{
label1.Content = "Item Added";
});
}, (s, args) =>
{
Dispatcher.BeginInvoke(() =>
{
label1.Content = args.Message;
});
});
}
Javascript
function Add_Click() {
var ctx = new SP.ClientContext.get_current();
var announcements = ctx.get_web().get_lists().getByTitle("Announcements");
var createInfo = new SP.ListItemCreationInformation();
var newItem = announcements.addItem(createInfo);
newItem.set_item("Title", "A new javascript item");
newItem.update();
ctx.executeQueryAsync(function (s, args) {
var console = document.getElementById("DemoConsole");
console.innerHTML = "Add Completed";
}, null);
}
For more information on Silverlight and JavaScript Client Object Model, see below:
Wednesday, November 10, 2010
Retrieving Data Using Silverlight and JavaScript Client Object Model
Sliverlight
private void CAMLQuery_Click(object sender, RoutedEventArgs e)
{
ClientContext ctx = new ClientContext("Your site here");
CamlQuery query = new CamlQuery();
query.ViewXml = "<View><Query><OrderBy><FieldRef Name=\"Editor\" Ascending=\"False\" /></OrderBy></Query></View>";
List announcements = ctx.Web.Lists.GetByTitle("Announcements");
FieldCollection fields = announcements.Fields;
ctx.Load(fields);
ListItemCollection listItems = announcements.GetItems(query);
ctx.Load(listItems);
ctx.ExecuteQueryAsync((s, args) =>
{
Dispatcher.BeginInvoke(() =>
{
BuildTable(fields, listItems);
});
}, (s, args) =>
{
Dispatcher.BeginInvoke(() =>
{
label1.Content = args.Message;
});
});
}
JavaScript
function CAMLQuery_Click() {
var ctx = new SP.ClientContext.get_current();
var query = new SP.CamlQuery();
query.viewXml = "<View><Query><OrderBy><FieldRef Name=\"Editor\" Ascending=\"False\" /></OrderBy></Query></View>";
var announcements = ctx.get_web().get_lists().getByTitle("Announcements");
var listItems = announcements.getItems(query);
ctx.load(listItems);
var fields = announcements.get_fields();
ctx.load(fields);
ctx.executeQueryAsync(function (s, args) {
var console = document.getElementById('DemoConsole');
console.innerHTML = buildTable(fields, listItems);
}, null);
}
For more information on Silverlight and JavaScript Client Object Model, see below:
Monday, November 8, 2010
How To Referencing the JavaScript Client Object Model
The following are simple steps to show how you can hooks your SharePoint page with JavaScript Client Object Model:
- From the Site Actions menu, choose New Page. Name the new page JSClientObjectModelTest.
- From the Page tab in the ribbon, click Save.
- Also from the Page tab, click the arrow under the Edit button and select Edit In SharePoint Designer.
- In SharePoint Designer, from the Home tab on the ribbon, select Advanced Mode.
- In the Content control with the ID PlaceHolderAdditionalPageHead, add the following markup after the SharePoint:RssLink tag (on one line):
<SharePoint:ScriptLink runat="server" Name="sp.js" Localizable="false" LoadAfterUI="true"/>
- Scroll to the bottom of the page, and before the WebPartPage:WebPartZone tag, add the following markup (on one line): <script type="text/javascript" src="../SilverlightControls/JScriptTest.js" ></script>
<div id="DemoConsole"></div> - Click the Save icon in the upper-left corner of the window to save the changes to SharePoint. Click Yes in the Site Definition Page Warning.
For more information on Silverlight and JavaScript Client Object Model, see below:
Saturday, April 3, 2010
30+ SharePoint Custom Actions Location and Sample
Hi all,
It’s been a while. Today I posted a new blog at CustomWare site.
If you are interested in finding a complete reference for custom actions locations, group IDs and sample screenshots, please check out these links:
Tuesday, September 1, 2009
JIRA 4 Beta 3 and SharePoint
Today I installed and configured JIRA 4 Beta 3 in my local PC to check if the product developed by us works as expected with the new version of JIRA 4 Beta 3 API Web Service.
Installation and setting up of JIRA 4 Beta 3 doesn't trouble me much, then I proceed with testing of our product abd it works perfectly without the need for code changes.
So I investigated further the Web Service Definition Language (WSDL) for JIRA 4 Beta 3 and compared to previous version of JIRA 3.13.4 and 3.13.5. It turned out there are total of 8 new methods that have been added with this new version of JIRA 4 Beta 3 API Web Service, these includes:
- deleteProjectAvatar ( )
- getIssuesFromJqlSearch ( )
- getProjectAvatar ( )
- getProjectAvatars ( )
- getResolutionDateById ( )
- getResolutionDateByKey ( )
- setNewProjectAvatar ( )
- setProjectAvatar ( )
In JIRA 3.13.4 and 3.13.5, there are total of 100 methods exposed by JIRA API Web Service - based on my initial investigation, none of existing methods are deprecated or updated in JIRA 4 Beta 3 (Don't count on this, let wait until Atlassian release a final documentation on JIRA API Web Service)
Tuesday, August 4, 2009
Implementing Mouse Hover & Click Highlighting in Default List View
Brad has a great post on how to Hover (MouseOver) Highlight and Click to Stay Highlighted in a SharePoint List and the BEST thing he did mentioned my name (“a guy called Sukri”) – Thanks Brad.
Note:
The entire solution step by step with code segment can be found at CustomWare site: SharePoint - Customising List Default View - Implementing mousehover & click highlighting in Default List View
