Posts

Will SharePoint 15 (2013) finally get an App Store?

Image
by Mark Jones | Jan 31, 2012 Just decided to have a few minutes investigation into the recently released  SharePoint 15 Technical Preview Managed Object Model SDK  to see if there is any insight into what's coming up! Before I get started, please note this information is all deduced from the Object Model documented in the SDK and is solely my opinion of what "may" happen. The SDK clearly states that it is "subject to change", so don't bet the crown jewels on anything in this post! The SPApp Store classes (SPApp, SPAppCatalog, SPAppInstance, SPApplicationCredentials, etc.) Well, it looks like SharePoint's going to get some tight integration with an App Store (aka market place). This has been on the cards for quite a while, but I thought they'd have to get the API developed to support it eventually. Reading between the lines, I think there's going to be somewhere in the SharePoint GUI to browse for an "App" in an on-line App S...

Sharepoint 2010 - Assign Category to your Site Template (without VS)

Image
Set your Site Template in a Category is (maybe) simple with Visual Studio, but not the faster way. I tried with success by editing some xml in WSP package. Here step by step my solution. Save your site as template, "My_Site". Go in Solutions Gallery and download your My_Site.wsp package on desktop. Rename extension from .wsp to .cab. Use your tool to extract and create CAB archive, I used SimplyZip . Extract My_Site.cab and open to edit file Elements.xml in folder “ My_SiteWebTemplate ”. Add attribute DisplayCategory="My Site Templates" in tag “< WebTemplate> ” and save file. Use your tool to create new file My_Site.cab with all files from original cab and modified file. Note : with SimplyZip use Drag&Drop to set files and folders to add in cab. Change extension from .cab to .wsp and upload My_Site.wsp on Solutions Gallery. Now, try to create new Site: in the " Filter By:" section, you see  My Site Templates category...

Sharepoint 2010 - Advanced Settings for Document library in SharePoint 2010 using PowerShell

Image
In this article we will be seeing how to change the Advanced Settings for Document library in SharePoint 2010 using PowerShell and c#. Go to Document Library => Library Settings => General Settings =>Advanced Settings. Using C#: using  (SPSite site = new SPSite("http://serverName:1111/"))             {                 using (SPWeb web = site.RootWeb)                 {                     SPList docLibrary=web.Lists["Doc Library"];                      // Change the advanced settings          ...

Sharepoint 2010 - Filter Web Part with QueryString: an issue?

Image
In Sharepoint 2010, when you want to filter a List Web Part with a Form Web Part, you find the simple way with querystring and XSLT query. List web part shows 5 results per page, and we have 3 pages (so 15 items). I search for title and I see 3 results in the first page, but I see link for the other 3 pages. And navigating the other page, I see one more result in second page and the third is empty...! Filter shows results for the page 1 (3 items), for the page 2 (1 item) and for the page 3 (0 items), but divided in 3 pages. It seems filter "hides" results not matching from view, keeping pages. I decided to use filter with querystring used by Sharepoint when you filter columns. So the address bar shows this: You can use javascript to retrieve value for FilterFieldN (the column name to filter, internal name!) and FilterValueN (value to use in filter). In this way, List Web Part filtered is in the right view: if I filter my 15 items, I found olny 3, but...

Sharepoint 2010 - Associate Workflow to List with Power Shell

I create a new Workflow Template (globally reusable) in root site and I associate it to a List in a Site Template. But I need to update each sub site (created from my Site Template) with the new Workflow. I use PowerShell, to cycle each subsite and associate WF to content type list. This is command I used: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $site=Get-SPSite "http://sharepoint_root_site" foreach($web in $site.AllWebs){    $list=$web.Lists["MyList"]    $taskList=$web.Lists["Workflow Tasks"]    $historyList=$web.Lists["Workflow History"]    $ct=$list.ContentTypes["MyContenType"]    $culture=New-Object System.Globalization.CultureInfo("en-US")    $wfTemplate=$web.WorkflowTemplates.GetTemplateByName("wfTemplate", $culture)    $associationWF=[Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateListContentTypeAssociation($wfTemplate, "MyWFInSubSi...

Sharepoint 2010 - Filter List/Library Web Part with XSLT and Content Editor WP

Image
I created a simple Filter Web Part with a Content Editor WP and simple XLST to filter List/Library with the LIKE feature. It works for lists and libraries (in libraries not for Name field). Create a page with Library Web Part to filter. Then add a Content Editor Web Part end edit HTML Source. In HMTL, add an input textbox and two buttons, for reset filter and for submit filter. Add some script as shown below: <script type="text/javascript"> //this script get query string from URL function querySt(ji){   hu = window.location.search.substring(1);   gy = hu.split("&");   for (i=0;i<gy.length;i++){     ft = gy[i].split("=");     if (ft[0] == ji){       return ft[1];     }   } } //this script set value read from query string in input field function setValues(){    if(querySt('qtitle') != null && querySt('qtitle') != "")    {      document.getEleme...

Sharepoint 2010 - Delete this List link missing

If menu item "Delete this List" in list settings is missing or, in Sharepoint Designer 2010, you receive error in deleting list/library, may be problems is for AllowDeletion property of the List/Library. Once you declare an item as a record in a list, the corresponding lists SPList.AllowDeletion property is set to False. This is why you no longer see the "Delete this List" link in the list settings and is intended to protect lists with items declared as records. You can use PowerShell to delete the list (using the SharePoint 2010 Management Shell): $assignment = Start-SPAssignment $web = Get-SPWeb -Identity "http://yoursite" -AssignmentCollection $assignment $list = $web.lists["Your List Title"] $list.AllowDeletion = $true $list.Update() #after this is entered, the "Delete this List" link will reappear in the UI for the List Settings $list.Delete() #this will delete the list Stop-SPAssignment $assignment Yes, it's wor...