-
Popular posts
-
Tags
Add-In Administration BDC CAML Certificate Certifications Configuration Content Types CSOM Database Deployment ECB External Content Types FBA Fields Impersonation InfoPath installation JavaScript jQuery Logging Metadata Properties MVP Packaging Performance PowerShell Provider-Hosted REST Ribbon Search security Self-Signed Certificate SharePoint SharePoint Designer SharePoint Short SP2019 SQL Taxonomy Timers User Control Visual Studio WCF WebPart Workflow Workflow Activity
-
Categories
- .Net (2)
- Deployment (1)
- Development (1)
- General (11)
- InfoPath (7)
- JavaScript (3)
- Office (1)
- SharePoint (110)
- Configuration (15)
- CSOM (2)
- Designer (3)
- Installation (5)
- Security (2)
- Taxonomy (4)
- Workflow (9)
- SharePoint Shorts (22)
- SQL (3)
- Unit Tests (1)
- Visual Studio (4)
Tag Archives: SharePoint Short
Get Default Database Infomation
SharePoint Short #15 Looking for a quick an easy way of retrieving the default content database information, like the SQL instance (i.e. servername\instance)? string sqlServerInstance = SPWebService.ContentService.DefaultDatabaseInstance.NormalizedDataSource;string sqlServerInstance = SPWebService.ContentService.DefaultDatabaseInstance.NormalizedDataSource; or individually string sqlInstance = SPWebService.ContentService.DefaultDatabaseInstance.Instance; string sqlServer = SPWebService.ContentService.DefaultDatabaseInstance.Server;string … Continue reading
Editing SPView objects
SharePoint Short #14 Making a change to a SPView object directly will not work: listObject.DefaultView.Title = "new title"; listObject.DefaultView.Update();listObject.DefaultView.Title = "new title"; listObject.DefaultView.Update(); What you should do is instantiate a new variable from the view you want to make changes … Continue reading
Handling Long Operations
SharePoint Short #13 Got some code that may take a while to complete? Good idea to let the user know they may have to wait a while, so put your code within the SPLongOperation block, as shown below, and it’s … Continue reading
Create a local term set
SharePoint Short #12 Instead of creating term sets that are available farm wide, it’s also possible to create a term set that is only local to a particular site collection. Create a site column as normal, selecting Managed Metadata type … Continue reading