samedi 28 février 2015

Confusion on creating custom field control in SharePoint 2013



I am very confused and Im hoping someone might be able to help.


I created a custom field type and a custom field control. I followed the code from the book "Inside Microsoft SharePoint 2013". It talked about to read and write the value of the field control to the content database to override public override object Value


But that code wasnt ever getting fired. Its also explained step by step in this MS article http://ift.tt/1BrPnd8. But I couldnt get it to work.


Then I see references on the internet to override public override void UpdateFieldValueInItem(), but this didnt work either.


But neither functions would get fired, and then I come across another article to create a OnSaveHandler SPContext.Current.FormContext.OnSaveHandler in the the overridden OnInit() method. Which neither can I find a reference in the book explaining this at all. This actually worked for me. See article http://ift.tt/1LZd3qu


So if someone could explain to me what the differences are and when to use what method when.


Thanks






How to create new Farm in Share Point 2010 on single server?



I want to create new Farm on Share Point 2010 server. I have already one Farm on same SharePoint 2010 server and want to create new Farm with existing Farm on same server. That means I require multiple farm working on same SharePoint 2010 server. Is it possible to create new Farm? Please provide step to create new Farm if possible to create.






Sys.InvalidOperationException when trying to edit page in sharepoint 2010



I added a webpart through VS2010. It is a Simple webpart containing ajax script manager,timer and update panel. what it does is it shows the current server time in a label. After i deploy it into my sharepoint site i get following error when clicking on edit page.



"Sys.Invalid Operation exception: Could not find updatePanel with ID 'ctl00_m_....pnlTimer'. If it is being updated dynamically then it must be inside another Update Panel."



This error goes when i remove the updatepanel in my code.How can i get rid of this error?






PowerShell script to check if MMS is connected to Web Application



I want to check if Managed Metadata Service is connected to any Web Application by powershell script. What will be the possible script to check this?






SharePoint 2013 JavaScript CSOM: How to change the field 'PublishingPageLayout'



I am trying to update the page layout of a wiki page using the JavaScript object model and I can't seem to get it to work.


I know I need to do something like this:



pageItem.set_item('PublishingPageLayout': 'url of the .aspx layout file');


When I set the url, the url shows under the page's 'Page Layout' field, but the page itself does not reflect the change. Please help


EDIT:


When I think about this more, when I create the page using the JavaScript object model, the page that is created is not using the default layout. When I try to manually change the page layout of the page, the 'Page Layout' icon in the ribbon is greyed and inaccessible. Perhaps this is the root of the problem. The code I use to create the page is as follows:



function createWikiPage(webUrl,listTitle,fileName,success, failure)
{
getListUrl(webUrl,listTitle,
function(listUrl){

var fileUrl = listUrl + '/' + fileName
var url = webUrl + "/_api/web/GetFolderByServerRelativeUrl('" + listUrl + "')/Files" +
"/AddTemplateFile(urlOfFile='" + fileUrl + "',templateFileType=1)";
$.ajax({
url: url,
method: "POST",
headers: {
"accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"X-RequestDigest" : $("#__REQUESTDIGEST").val()
},
success: function (data) {
success(data.d);

},
error: function (data) {
failure(data);
}
});

},
failure
);


}

function getListUrl(webUrl,listTitle,success, failure)
{
var url = webUrl + "/_api/web/lists/GetByTitle('" + listTitle + "')/RootFolder";
$.ajax({
url: url,
method: "GET",
headers: {
"accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose"
},
success: function (data) {
success(data.d.ServerRelativeUrl);

},
error: function (data) {
failure(data);
}
});
}





Why can't I sort the Search Results Web Part by a Managed Property?



I have a Search Results web part which shows items from my custom list. The custom list contains a site column called Idea Date.


I've been trying for days to get this Search Results web part to sort by Idea Date (a managed property), but it just doesn't work.


Does anyone have any suggestions? Any insight into what could be going wrong?






After creating Managed Metadata Service using PowerShell



I have created Managed Metadata service application using PowerShell. The MMS was created and started successfully. My Question is, Will this new MMS be added as connected service to the central admin site web application by default or should i need to add it. If I need to add this MMS as connected service, then how i can add using powershell?






Combining two column conditions in calculated column



I have a task list which has color coding for Progress Bar and Task Status based on % Complete and Status column values. I have one more additional condition for: IF status=Blocked then whatever the % Complete value may be the Progress Bar background color should be Red.


I have following formula for Progress Bar:



="<DIV style='display:inline-block;position:relative; width:60px; height:17.5px;border:1px solid;'><DIV style='background-color:"&CHOOSE(INT([% Complete]*10)+1,"red","red","OrangeRed","OrangeRed","DarkOrange","Orange","Gold","yellow","GreenYellow","LawnGreen","Lime")&"; width:"&([% Complete]*100)&"%;'>&nbsp;</DIV><DIV style='position:absolute; top:0px;'>"&TEXT([% Complete],"0%")&"</DIV></DIV>"


Task Status:



="<span style=""font-weight:bold;color:"&IF(Status="Blocked","red",IF(Status="Completed","limegreen",IF(Status="In Progress","gold",IF(Status="Not Started","lightblue","lightslategray"))))&""">"&Status&"</span>"


Tried combining both unsuccessfully:



="<DIV style='display:inline-block;position:relative; width:60px; height:17.5px;border:1px solid;'><DIV style='background-color:"&IF(Status="Blocked","red","&CHOOSE(INT([% Complete]*10)+1,"red","red","OrangeRed","OrangeRed","DarkOrange","Orange","Gold","yellow","GreenYellow","LawnGreen","Lime")&"; width:"&([% Complete]*100)&"%;'>&nbsp;</DIV><DIV style='position:absolute; top:0px;'>"&TEXT([% Complete],"0%")&"</DIV></DIV>"


Any pointers to solve this issue? enter image description here






Approval workflow with nintex in sharepoint server 2010?



How to create approval workflow for sharepoint list using nintex workflow 2010 in sharepoint server 2010.


workflow process...create deal - send for approval - approve / reject if approve it will close if reject it will goes to user form and recycle again to close..


how to create this workflow......






How can I speed up web part loading times?



I have a SharePoint site with a performance point dashboard which contains a number of webparts. The initial page load time is around 1s according to F12 Dev tools. After this I see spinning green wheels while the webpart content renders. This takes around 5 seconds for each web part and in dev tools I can see a number of calls to /_layouts/15/ReportServer/RSViewerPage.aspx These calls correspond to the number of webparts on the page and run in parallel.


Is there any way to speed up the rendering time of the pages? There is minimal time spent in SQL returning the results so this seems purely a rendering issue. Can we cache the html output or cache the dashboards somehow so that we can have a 1s wait rather than 6-10?


I don't need the dashboards to refresh often so a static view of them should be fine.






how to implement this jquery for preview



I have a jQuery to display pictures as thumbnail for a document library. It works great but as soon as I add grouping to the view then the pictures do not show up as thumbnail. They show up with traditional file type icons (icjpg.gif, icpng.gif, etc.). Any idea how to fix this?



<SCRIPT type=text/javascript>
$(document).ready(function(){
$("img[src$='icjpg.gif'], img[src$='icpng.gif']").each(SetImage)
});
function SetImage()
{
$(this).attr('height','100');
$(this).attr('src','/it/Site/DocLib/'+$(this).attr('title'));
}
</SCRIPT>





SharePoint Workflows QA Environment



We have a 2013 SharePoint environment for a mid-sized company. I was discussing the need to develop OOTB SharePoint workflows in QA vs directly on production and we disagreed on what was best practice or practical.


My take on the situation was that workflows






SPO Content Type Inheritance and Copying Content between Lists and Sites



Let's imagine I got 2 sites on SPO as follows:



  • /sites/sales

  • /sites/projects


Let's also imagine I would have 3 content types (in content type hub) with the following inheritance



  • Case

    • Offer

      • Project






Workflow 1:


In /sites/sales we would have 2 lists based on custom content types. One for Cases Content Type, another for Offers Content Type. When a Case reaches a certain status, the workflow would copy the item to the Offers list while the original Case Item would remain in the Cases list.


Question 1:


Since the Cases is based on Case content type whereas Offers list is based on Offer content type (which inherits from Case content type), is it possible to copy such base content type to a list based on a derived content type?


Workflow 2:


When the item in the Offer list is marked approved by client, the content would be again copied to another list. This time residing on another site /sites/projects. The list on that site of course would host items based on Project content type which inherits Offer content type.


Question 2:


Is it possible to copy content between lists located on different sites?


Question 3:


Or am I completely thinking this the wrong way?






vendredi 27 février 2015

How to add custom group in list setting page?



I want to add one custom action in my custom group. I have done following for that



<Elements xmlns="http://ift.tt/sQmbje">
<CustomActionGroup
Id="LibrarySettings.MyGroup"
Title ="My Group"
Sequence="1000"
Location="Microsoft.SharePoint.ListEdit">
</CustomActionGroup>
<CustomAction Id="Custom.Configuration.ListCustomSettings"
GroupId="LibrarySettings.MyGroup"
Location="Microsoft.SharePoint.ListEdit"
RequireSiteAdministrator="FALSE"
Sequence="100"
Title="Library Admins">
<UrlAction Url="_layouts/15/LibrarySettings.aspx?List={ListId}" />
</CustomAction>
</Elements>


But custom group is not created in list settings


Any idea what I am missing here?






How to prevent sharepoint login dialog when developing webparts?



While developing sharepoint webparts, I have realized that sometimes, accessing SPContext variables prevents the webpart from being accessed anonymously and wrapping them in a SPSecurity.RunWithElevatedPrivileges() will prevent this.


At other times, even this doesn't help.


How do I prevent this behaviour, I don't want the login to be prompted. Just pure anonymous access ?


Exactly what piece of code causes this and can it be forced to be on no login ?


Is there an easy way to find out which webpart is causing the login prompt when there are 10 or more webparts on a page ?






Promoted Links Dialog Pop Up Size



I am using Promoted Links with launch behavior = "Dialog" I manage to change the Dialog size by adding a Content Editor into my Main page with the following code .ms-dlgContent { width:1500px !important; height:1000px !important } .ms-dlgBorder { width:1500px !important; height:1000px !important }


The Dialog width and height did increase, however the Content itself seems to be in a fix width with scroll bars. How can I also have my Dialog contents width and height to increase? Many Thanks in advance.


enter image description here






Complete InfoPath form without InfoPath external customer



I need to create a form that our customers will complete but not all of our customers will have InfoPath installed.


I tried to use the email form but did not show the form in Outlook, instead it just displayed the xml code


My question is what is the best type of from to create and how to allow external customers to view and complete the form


Thanks






Sharepoint Online search not showing the correct title



I have a content search webpart that shows the title of the file and other properties.


However in some file its not using the property Title, it looks like its using the title on the first big letters from the documen itself


Example:


All the documents below which have the name INTRANET are wrong: http://ift.tt/1FHMHXY


The first page of one of those files look like this: http://ift.tt/1N0HBM1


If I edit properties of one of these files its correct: http://ift.tt/1FHMHY0


I am assumming Sharepoint indexes the content of the document and assumes that first big letters on the first page is the title


Anyway to fix this?


My display template is like this



<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>Documentname - Listname - Sitename</title>

<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:ManagedPropertyMapping msdt:dt="string">'Link URL'{Link URL}:'ServerRedirectedURL','Line 1'{Line 1}:'Title','Line 2'{Line 2}:'ParentLink','Site Title'{Site Title}:'SiteTitle', 'Site Path'{Site Path}:'SPWebUrl', 'Author'{Author}:'Author','ServerRedirectedEmbedURL':'ServerRedirectedEmbedURL','FileExtension','SecondaryFileExtension','SPWebURL','ListID'</mso:ManagedPropertyMapping>
<mso:MasterPageDescription msdt:dt="string">This template shows the Document name, library name and site name.</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
<mso:TargetControlType msdt:dt="string">;#SearchResults;#Content Web Parts;#</mso:TargetControlType>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
<mso:HtmlDesignStatusAndPreview msdt:dt="string">http://ift.tt/1N0HDDE Templates/Content Web Parts/Item_documentName_libraryName_siteName.html, Conversion successful.</mso:HtmlDesignStatusAndPreview>
<mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile>
<mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>

<body>
<script>

Type.registerNamespace('search.listname');
search.listname = function () {
var itemInfo = {};
var listInfo = {};
var init = function (context, elmId) {
// Store item info
itemInfo[elmId] = {};
itemInfo[elmId]["webUrl"] = context.CurrentItem.SPWebUrl;
itemInfo[elmId]["listId"] = context.CurrentItem.ListID;
// Add an on post render callback, this will be excuted when all the results are rendered
AddPostRenderCallback(context, function() {
get(elmId);
});
},
get = function (elmId) {
// Retrieve the item information
var webUrl = itemInfo[elmId].webUrl;
var listId = itemInfo[elmId].listId;
if ($isEmptyString(webUrl) || $isEmptyString(listId)) {
return;
}
// Remove brackets from guid
listId = listId.substring(listId.indexOf('{') + 1, listId.indexOf('}'));
// Check if the list object exists, if it exists, an Ajax call is already initiated or performed
if (typeof listInfo[listId] !== "undefined") {
// Check if the list name is retrieved
if (typeof listInfo[listId]["Title"] !== "undefined") {
// Write the list name to the listname element on the page
quickRender(elmId, listId);
} else {
// List name was not yet retrieved, set the list ID as class on the element
setClass(elmId, listId);
}
return;
} else {
// Ajax call not yet initiated, create a new object for the list ID
listInfo[listId] = {};
setClass(elmId, listId);
}
// Do a Ajax call to retrieve the list / library title
(function (elmId, listId) {
var request = new XMLHttpRequest();
var restUrl = String.format("{0}/_api/Web/Lists(guid'{1}')?$select=Title'", webUrl, listId);
request.open('GET', restUrl, true);
request.setRequestHeader('Accept', 'application/json;odata=nometadata');
request.setRequestHeader('Content-Type', 'application/json;odata=nometadata');
request.onload = function (e) {
if (request.readyState === 4) {
// Check if the get call was successful
if (request.status === 200) {
// List retrieved
var data = JSON.parse(request.response);
if ($isEmptyString(data.Title)) {
return;
}
// Store the list name
listInfo[listId]["Title"] = data.Title;
// Render the list name
render(elmId, listId);
} else {
// No list found
}
}
};
request.onerror = function (e) {
// Catching errors
};
request.send(null);
})(elmId, listId);
},
// Set the list ID as class name to the SPAN element
setClass = function (elmId, listId) {
var elm = document.getElementById(elmId);
if (!$isNull(elm)) {
var listElm = elm.getElementsByClassName('listname')[0];
if (!$isNull(listElm)) {
// Write the list name to the page
listElm.className = String.format('{0} {1}',listElm.className, listId);
}
}
},
// Write the document title to all elements with the same list ID
render = function (elmId, listId) {
var elms = document.getElementsByClassName(listId);
if (!$isNull(elms)) {
for (var i = 0; i < elms.length; i++) {
elms[i].innerHTML = listInfo[listId].Title;
}
}
},
// Write the list name to the element
quickRender = function (elmId, listId) {
var elm = document.getElementById(elmId);
if (!$isNull(elm)) {
var listElm = elm.getElementsByClassName('listname')[0];
if (!$isNull(listElm)) {
// Write the list name to the page
listElm.innerHTML = listInfo[listId].Title;
}
}
};
return {
init: init
};
}();
Srch.U.registerRenderTemplateByName("listname_init", search.listname.init);
</script>


<div id="Item_Listname">
<!--#_
var id = ctx.ClientControl.get_nextUniqueId();
var itemId = id + Srch.U.Ids.item;
var hoverId = id + Srch.U.Ids.hover;
var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/Item_documentName_libraryName_siteName_HoverPanel.js";
$setResultItem(itemId, ctx.CurrentItem);
ctx.currentItem_ShowHoverPanelCallback = Srch.U.getShowHoverPanelCallback(itemId, hoverId, hoverUrl);
ctx.currentItem_HideHoverPanelCallback = Srch.U.getHideHoverPanelCallback();

var encodedId = $htmlEncode(ctx.ClientControl.get_nextUniqueId() + "_listname_");
var containerId = encodedId + "container";
// Listname init
Srch.U.getRenderTemplateCollection().listname_init(ctx, containerId);
var linkURL = $getItemValue(ctx, "Link URL");
linkURL.overrideValueRenderer($urlHtmlEncode);
var iconURL = Srch.ContentBySearch.getIconSourceFromItem(ctx.CurrentItem);
var line1 = $getItemValue(ctx, "Line 1");
var line2 = $getItemValue(ctx, "Line 2");
var SitePath = $getItemValue(ctx, "Site Path");
var SiteTitle = $getItemValue(ctx, "Site Title");
var Author = $getItemValue(ctx, "Author");
var ServerRedirectedEmbedURL = $getItemValue(ctx, "ServerRedirectedEmbedURL");
line1.overrideValueRenderer($contentLineText);
line2.overrideValueRenderer($contentLineText);
var pictureLinkId = encodedId + "pictureLink";
var pictureId = encodedId + "picture";
var dataContainerId = encodedId + "dataContainer";
var line1LinkId = encodedId + "line1Link";
var line1Id = encodedId + "line1";
var line2Id = encodedId + "line2";

function showPopUp (element) {
$(element).find('.ms-srch-hover-outerContainer').css({visibility:'inherit',opacity:'inherit',left: '690px'});
}
function hidePopUp (element) {
$(element).find('.ms-srch-hover-outerContainer').css({visibility:'hidden',opacity:'0'});
}
_#-->

<div name="Item" id="_#= $htmlEncode(itemId) =#_" data-displaytemplate="Listname" onmouseover="_#= ctx.currentItem_ShowHoverPanelCallback =#_showPopUp(this);" onmouseout="_#= ctx.currentItem_HideHoverPanelCallback =#_hidePopUp(this);">
<div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
<div class="cbs-Item" id="_#= containerId =#_">
<a class="cbs-ItemLink" title="_#= $htmlEncode(line1.defaultValueRenderer(line1)) =#_" id="_#= pictureLinkId =#_">
<img class="cbs-Thumbnail" src="_#= $urlHtmlEncode(iconURL) =#_" alt="_#= $htmlEncode(line1.defaultValueRenderer(line1)) =#_" id="_#= pictureId =#_" />
</a>
<div class="cbs-Detail list-group-item" id="_#= dataContainerId =#_">
<a class="cbs-Line1Link ms-noWrap ms-displayBlock" href="_#= linkURL =#_" title="_#= $htmlEncode(line1.defaultValueRenderer(line1)) =#_" id="_#= line1LinkId =#_"><h4 class="list-group-item-heading" target="_blank">_#= line1 =#_</h4></a>

<strong>Library: </strong> <a class="listUrl" href="_#= line2 =#_" target="_blank"><span class="listname"></span></a>
<strong>Site:</strong> <a href="_#= SitePath =#_" target="_blank"><span>_#= SiteTitle =#_</span></a>
<strong>Author:</strong> <span>_#= Author =#_</span>
<!-- <div>
<iframe src="_#= $urlHtmlEncodeString(ctx.CurrentItem.ServerRedirectedEmbedURL) =#_" scrolling="no" frameborder="0px" style="height: 267px;"></iframe>
</div>-->
</div>
</div>
</div>
</div>
</body>
</html>





How can I add the options of changing lists on one Sharepoint 2010 calendar?



I have a Sharepoint calendar that looks like this

and I need to add a sidebar with a possibly jquery dropdown to select between the the different calendar lists so they are interchangeable.






Accessing new features after upgrading a license



I've been tasked with getting a dashboard going using Excel Web Access Web Parts. These weren't listed as an option, however, under the Business Data category. I accessed this menu through the series of clicks Edit Page->Insert->Web Part->Business Data, if that's in any way relevant. I assumed this was due to being under a license that didn't support the feature, and so I was reassigned to use a trial Enterprise Plan E3.


Excel Web Access still isn't displayed under the Business Data category. I thought I may need to activate the new features somehow, but either I don't have access to do so or I'm on the wrong track with that thought. The entire team is new to SharePoint, and not even the admin I've spoken with is knowledgeable enough to be of help here. My intuition tells me the admin may need to activate the feature, but he's absurdly busy with other things and I'd rather not bug him unless I was sure I needed him. So my question really is: what steps do I need to take to begin working with Excel Web Access Web Parts?


Thanks in advance!






How can I populate a List Box from a rule?



I have subsets of data that I would like to use to populate the contents of a Drop-Down List Box. How do I do this? I've done it for a plain old Text Box but I do not see how to populate the List Box with multiple values.






propogate item added in announcement list in site collection to all sub sites' announcement list



In my site collection i have an announcement list. and in my site collection some 600+ sub sites exist. sharepoint admin uploads an announcement into this rootweb's announcement list. now is there any way i can add the same announcement -which has title, description, date time etc .- to all the 600+ sub sites' announcement list?


i know , if i write a list item event receiver i will be able to iterate through each and every subweb of my site collection and add this item into those sub web's announcement list. But, without writing an event receiver and creating and deploying another wsp and avoiding all those headache, is it possible to achieve this requirement






WCF endpoints in SharePoint web.config



I have a SharePoint site that makes calls to a public web API (Melissa Data) using a WCF client. I have the endpoints configured in the web.config like so:



<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="PropertyWSSOAPEndpoint">
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://ift.tt/1BJbAoP"
binding="basicHttpBinding" bindingConfiguration="PropertyWSSOAPEndpoint"
contract="MelissaDataPropertyService.IService" name="PropertyWSSOAPEndpoint" />
</client>
</system.serviceModel>


I instantiate my client like so:



MelissaDataPropertyService.ServiceClient PropertyServiceClient = new MelissaDataPropertyService.ServiceClient();


This all works fine and dandy, but I've heard it is bad practice to put site configuration values into the SharePoint IIS web.config. Can someone please explain to me a.) why this is a bad practice, and b.) how to configure and instantiate the WCF client object without using the web.config?






Copy the docs/(word/excel/zipped folders) from Sharepoint document library to local folder



I have to pull (copy) the documents and folders (Zipped) stored in document library of sharepoint 2010 site into local folder using Excel VBA. I am new to VBA and have no idea how to start with this. I have gone thrown few forums but could not get the exact solution. Please help me.






how to find content type in audit logs



I have auditing enabled and have generated the content type modification log in excel format...need to figure out how to find a specific content type that was modified...any pointers?






Enable item scheduling on a publishing library via SharePoint .NET client API



Does anybody know how to enable item scheduling on a publishing library via code (.NET Client API)?


This can be done via the Settings UI for the library in Manage Item Scheduling. However, I can't find a way to enable this using the .NET Client API. It must not be as simple as just setting a property on the List object like EnableModeration = true or EnableVersioning = true. I can't use the Server-Side API because I'm in Office 365 Sharepoint.






Using Counting in a Sharepoint List using SP Online 2013



How would I create a column that would count any results after I filtered a list?


So far I have tried =COUNT() but it did not work. I use a column name CostCenter






Lookup Column - Shows Some Additional Fields, But Missing Columns



I have created two related lists. The first list is keeps track of specific meetings, with the following:



  • Name of meeting (Single Line Text)

  • Date of meeting (Date and Time)

  • Chair of meeting (Person)


The second list keeps track of meeting actions. Among other columns, each item in the action list contains a reference to the meeting the action was assigned in. I am able to use the lookup column feature to do this; I am also able to pull in the date of the meeting. However, it does not give me the option to pull in the meeting chair person.


I see that there are columns for Created and Modified which are people columns, but my specific Chairperson column does not come through.


Is there something I need to do differently to get the chairperson referenced on the view for the meeting actions?






SignalR on SharePoint Farm Solution



I am trying to create a SharePoint webpart using SignalR. At first I tried solution on MVC web site. And I moved files on SharePoint to get solution but it didn't happen. After that I research on the web again and agreed to develop it on SharePoint Hosted app. It worked! When I try to use it in SharePoint page as an App Part it has been in an iframe and it was not the thing what I want.


Returned to the beginning.


Checked all steps at that blog


http://ift.tt/1BHD7X2


and still no solution and getting error on ULS :



System.IO.FileNotFoundException: Could not load file or assembly 'Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5' or one of its dependencies. The system cannot find the file specified.

at Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build()



In my web config there is no 1.0.0.0 version Owin


Can anyone help?






PowerShell script to check if MMS is connected to Web Application



I want to check if Managed Metadata Service is connected to any Web Application by powershell script. What will be the possible script to check this?






How do you work with the Photo Library in SharePoint 2010?



SharePoint 2010 Photo Libraries are one of the most broken features I have found yet.


It is bad enough that Microsoft Office Picture Manager 2010 MUST be installed, AND specific browser plugins from the DLL's MUST be enabled, AND the browser compatibility mode MUST be set to version 7 when 8 is the default in IE11!


Not only all that, but even afterward, once the "Download" options and "Open with Explorer" become available, they DON'T WORK!


I can't even download existing photos in the library using SharePoint Designer. How on earth am I supposed to get them back out, or expect an end user to make any sense of this?


I would have been happy enough to have a thumbnail column in a standard document library, but even that would require serious overhaul and the recreation of planet Earth.


Please help!


Already referenced and followed: http://ift.tt/1vFSi0P






Custom entity extraction



I need help with custom entity extraction setting. I created an UTF-8, comma separated .csv file, script with the right dictionary (Microsoft.UserDictionaries.EntityExtraction.Custom.Word.N) and UNC path, I'm trying to create it from the right server with the proper rights, search service working properly and still with any luck. The only interesting line in log is:


Error Category: ResourceUnavailable Target Object Microsoft.Office.Server.Search.Cmdlet.ImportCustomExtractionDictionary Details NULL RecommendedAction NULL


Environments:

1. SP2013E 15.0.4420.1017, single server inst., SQLS 11.0.5058, AD, Internet, domain

2. SP2013E 15.0.4571.1502, single server inst., SQLS 11.0.5058, AD, Internet, domain


The same file and the same script works on third environment

3. SP2013E 15.0.4569.1506, single server inst., SQLS 12.0.2000, AD, Internet, domain



I must overlook something pretty obvious I think...


enter image description here






JSLink Publishing HTML field is not in ctx.CurrentItem



I have the following JSLink template for rendering items in a custom list containing a number of columns of type 'Publishing HTML'. The template is used on both the default view (AllItems.aspx) and the display form (DispForm.aspx).


The ‘View’ method works as intended. The ‘DisplayForm’ method does not.


Debugging in IE developer tools shows that the ctx.CurrentItem object does not contain any of the 'Publishing HTML' fields.


Has anyone encountered the same or similar issue? Is this a restriction by design (presumably for security reasons)?


All ideas are very welcome!



var myNamespace = mynamespace || {};

myNamespace.CustomizeFieldRendering = function () {
var overrideCtx = {
Templates: {
Fields: {
'TestPublishingHTMLColumn': { 'DisplayForm' : myNamespace.displayMethod},
'TestPublishingHTMLColumn': { 'View' : myNamespace.viewMethod}
}
}
};
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
}

myNamespace.displayMethod = function (ctx) {
var output = [];
var field = ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
//Check field contains data
if (field && field.length > 0) {
//Process the content here...
}
return output;
}

myNamespace.viewMethod = function (ctx) {
var output = [];
var field = ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
//Check field contains data
if (field && field.length > 0) {
//Process the content here...
}
return output;
}

myNamespace.CustomizeFieldRendering();





Cannot find an overload for "Load" and the argument count: "1"



I am working on some utility functions to ease the administration of our O365 tenant. The thing I'm working on currently is being able to provision One Drive for Business sites for users. I have the following code that works properly so far outside of a function but once I try to make it a function, I get the error in the title. What am I doing wrong here?


Works:



$SecurePassword = Read-Host -Prompt "Please enter your password" -AsSecureString
$Context = New-Object Microsoft.SharePoint.Client.ClientContext("http://ift.tt/1AAihqO")
$Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($yourEmail,$SecurePassword)
$Context.Credentials = $Credentials

$Users = $Context.Web.SiteUsers
$Context.Load($Users)
$Context.ExecuteQuery()
write-host $Users.Count


Fails:



Function New-MySite{
#Not Yet Implemented
Param(
[Parameter(Mandatory=$true,HelpMessage="A comma delimited string of email addresses",Position=1)][ValidateNotNull()]
[string]$users,
[Parameter(Mandatory=$true,HelpMessage="Your email address",Position=0)][ValidateNotNull()]
[string]$yourEmail
)
$SecurePassword = Read-Host -Prompt "Please enter your password" -AsSecureString
$Context = New-Object Microsoft.SharePoint.Client.ClientContext("http://ift.tt/1AAihqO")
$Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($yourEmail,$SecurePassword)
$Context.Credentials = $Credentials

$Users = $Context.Web.SiteUsers
$Context.Load($Users)
$Context.ExecuteQuery()
write-host $Users.Count
}


On Powershell 3 using the Powershell ISE client. Desired usage:



New-Mysite -yourEmail "eric@domain.com" -users "user1@domain.com"





How to change text encoding when inserting values inside a sharepoint list using powershell?



I'm using french words with special characters like "é" "à" etc. When I trying to insert text in my list fields using powershell, it does insert the values but the characters aren't well encoded. For exemple I have a "è" instead of having "è".



$weburl = "http://mysite/"
$web = Get-SPWeb $webUrl
$list = $web.GetList("/Lists/myList/")
$newItem = $list.AddItem()
$newItem["Titre"] = "Problème" # <-- here is the issue
$newItem.update()


How can I fix this?






Create new SharePoint user using SharePoint Online Management Shell



I have a *.sharepoint.com tenant provisioned through singing up for Office 365. Is there a way to create a new user for the tenant using PowerShell (for SharePoint Online)?


This would normally be done manually by going to the admin panel and going through the options to create a new user (for O365 and Exchange, etc.).


Thanks in advance






Sharepoint Master page Css issue



I have a master page in Sharepoint 2013 when i preview that in browser I see this line added



<style type="text/css">
.ui-dialog-titlebar,.ms-dlgTitle,#s4-ribbonrow
{
background-color:rgb(0, 113, 198) ! important;
}
</style>


While as this is not added any where , because of this my title of all pop up are coming blue.






Filter Sharepoint 2013 Search user from results



I have a farm with a two way trust with between DomainA and DomainB. I have Search service and User profile configured.


In the people search results I have users from both the domains i.e. domainA\user1 DomainB\user1


How do I filter the results.


I checked result sources but did not find a way to filter the first domain.


Is there any way to filter the DomainA\user1 from the results






Get documents inside the folder from Shared Document using powershell



I need to get all the documents name inside the folder from shared document using power shell.


Thanks






How to set "ShowField" in peoplepicker using powershell



Does anyone know how to set "ShowField" in people picker using powershell ? For ex.x, to set the "Required" property, we can user $SiteColumn.required="true" , but for showfield, $siteColumn.showfield="Name" , throws error that the property does not exist






propogate item added in announcement list in site collection to all sub sites' announcement list



In my site collection i have an announcement list. and in my site collection some 600+ sub sites exist. sharepoint admin uploads an announcement into this rootweb's announcement list. now is there any way i can add the same announcement -which has title, description, date time etc .- to all the 600+ sub sites' announcement list?


i know , if i write a list item event receiver i will be able to iterate through each and every subweb of my site collection and add this item into those sub web's announcement list. But, without writing an event receiver and creating and deploying another wsp and avoiding all those headache, is it possible to achieve this requirement






Sys.InvalidOperationException when trying to edit page in sharepoint 2010



I added a webpart through VS2010. It is a Simple webpart containing ajax script manager,timer and update panel. what it does is it shows the current server time in a label. After i deploy it into my sharepoint site i get following error when clicking on edit page.



"Sys.Invalid Operation exception: Could not find updatePanel with ID 'ctl00_m_....pnlTimer'. If it is being updated dynamically then it must be inside another Update Panel."



This error goes when i remove the updatepanel in my code.How can i get rid of this error?






Combining two column conditions in calculated column



I have a task list which has color coding for Progress Bar and Task Status based on % Complete and Status column values. I have one more additional condition for: IF status=Blocked then whatever the % Complete value may be the Progress Bar background color should be Red.


I have following formula for Progress Bar:



="<DIV style='display:inline-block;position:relative; width:60px; height:17.5px;border:1px solid;'><DIV style='background-color:"&CHOOSE(INT([% Complete]*10)+1,"red","red","OrangeRed","OrangeRed","DarkOrange","Orange","Gold","yellow","GreenYellow","LawnGreen","Lime")&"; width:"&([% Complete]*100)&"%;'>&nbsp;</DIV><DIV style='position:absolute; top:0px;'>"&TEXT([% Complete],"0%")&"</DIV></DIV>"


Task Status:



="<span style=""font-weight:bold;color:"&IF(Status="Blocked","red",IF(Status="Completed","limegreen",IF(Status="In Progress","gold",IF(Status="Not Started","lightblue","lightslategray"))))&""">"&Status&"</span>"


Tried combining both unsuccessfully:



="<DIV style='display:inline-block;position:relative; width:60px; height:17.5px;border:1px solid;'><DIV style='background-color:"&IF(Status="Blocked","red","&CHOOSE(INT([% Complete]*10)+1,"red","red","OrangeRed","OrangeRed","DarkOrange","Orange","Gold","yellow","GreenYellow","LawnGreen","Lime")&"; width:"&([% Complete]*100)&"%;'>&nbsp;</DIV><DIV style='position:absolute; top:0px;'>"&TEXT([% Complete],"0%")&"</DIV></DIV>"


Any pointers to solve this issue? enter image description here






How to retrieve AD Informations from Custom Application Page (Using VB)



I've just created a new application page (aspx with VB). I can't find any solution to gather their AD informations (specific attributes) without asking them their password twice (first time when they login).


I'm not a dev, so I must miss something. When I create the context ('ctx') I must use their password as an argument. I would like to avoid asking them.






How to create new Farm in Share Point 2010 on single server?



I want to create new Farm on Share Point 2010 server. I have already one Farm on same SharePoint 2010 server and want to create new Farm with existing Farm on same server. That means I require multiple farm working on same SharePoint 2010 server. Is it possible to create new Farm? Please provide step to create new Farm if possible to create.






PublishingWeb.GetPublishingWeb is not working in SharePoint 2013, CSOM




var pWeb = PublishingWeb.GetPublishingWeb(context, context.Web);
context.Load(pWeb);
if (pWeb != null)
{
<This condition is true for Team and Publishing Site Both>
}


This code is not working, it's going in if condition, if we provide Team site context as well..



using (var clientContext = new ClientContext(webUrl))
{


var pWeb = PublishingWeb.GetPublishingWeb(clientContext, clientContext.Web);

clientContext.Load(pWeb);

if (pWeb != null)
{
Console.WriteLine("Web : " + webUrl + " is a publishing web");

}
else
{
Console.WriteLine("Web : " + webUrl + "is not a publishing web");
}
}


I have already included - Microsoft.SharePoint.Client.Publishing .. REFERENCE AND NAMESPACE in my project


I am using SharePoint 2013. Kindly suggest what is the issue here? why it's going in if condition for team site.






Automatically copy items



We have 6 different libraries. All of them are working with a checkbox column (management). Is it possible to run a script or something like that, which grabs all documents (management = yes) and copy those into another library? Or show them i one list to open it with the explorer view?






SharePoint and Workspace synchronization error



I have few document libraries in my SharePoint 2010 site and same holds in my sharepoint workspace.Recently I had made some changes from workspace and after modifying the document when I am trying to synchronize the workspace facing below error.Can any one help me how can i solve this issue.


enter image description here






Sharepoint Designer Workflow Error "Stage title is empty"



I've been developing a SharePoint Workflow for a Project Server site for almost a month, everything worked fine until yesterday.


Now when I try to edit the workflow through Sharepoint designer I get an error for each Stage in the workflow that says something like: "Title cannot be empty" (I've got it in Spanish but that would be the translation).


When I accept those messages I finally reach the workflow but the stages have no name.


I've checked the stages in the Project Server and everything seems to be fine. I've also been googling it and found not this error but similar ones that point out to permission issues but the user I am using to access the WF is an administrator level user.


And apparently no permission changes have been made. Any idea? Thank you.






Allow all users to search list items Sharepoint 2013



I have a list for which I've enabled a search box (from web part settings, miscellaneous).


The problem is that for me and the others admins the search works perfectly, but for the other users who have only Read privilege the search doesn't work and shows the loading icon forever.


How can I enable search box for the list for all users?






How to convert GlobalBreadCrumbNavPopout to Text based breadcrumb



Hi is there a way to convert GlobalBreadCrumbNavPopout text based bread crumb below in SharePoint 2013?


Site1 > Test > LastSite


You help is appreciated.


Thanks and Regards!






jeudi 26 février 2015

Ignore/Exclude file when using Export/Import-SPWeb



I'm using the Export-SPWeb and Import-SPWeb Cmdlets to migrate a few libraries between SharePoint servers. However, one of the files being migrated is a shared data source which is only valid on the source environment, not the target environment. I therefore need to exclude a single list item from the export/import process to avoid this environment conflict.


is there any way, using these cmdlets that I can do this, or do I need to try an alternate approach?


Thanks






Modify text displayed in thumnail of asset library- O365



I have a client with a large Asset Library of car images. The current thumbnail shows the name of the file as well as the image specifics (jpg, size, etc.). The client instead wants the thumbnail to display the name of the car (pulled from Car Name Field), Manufacturer (pulled from Manufacturer Field) and finally the image details (JPG, size, etc..).


Can someone point me to some code I can use to accomplish this? I am an architect not a developer but should be able to figure out some jQuery.


Thanks in advance!






Error: "Cannot index into null array"



I am getting this error while trying to get the list name



Cannot index into a null array.
+ $clientlist = $web.Lists["Shared Documents"];
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray


Thanks.






Open Word document in Browser



I have created some document templates for Word, Excel and PowerPoint in office 365 sharepoint online and I have saved them on my desktop, I have created 3 content types as well and each content type is using associated template. I Can see all 3 options when I click on "New" button in document library. When I click on new "word" document, my installed word application is launched.


Can I open new word document in office web app in browser? All templates are developed in office web app and I have downloaded them on my desktop. I have tried all 3 options in document library to open document in browser but still unable to open document in browser.






How can I change the breadcrumb elements from to ?



I want to markup breadcrumbs semantically in SharePoint 2010 using an ordered list and list items. I've been playing around but can't work out how to do this.



<ol class="breadcrumb">
<SharePointWebControls:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
<asp:SiteMapPath runat="server" CurrentNodeStyle-CssClass="active"></asp:SiteMapPath>
</ContentTemplate></SharePointWebControls:UIVersionedContent>
</ol>


I feel like NodeTemplate may be what I'm after but I don't know exactly what to specify to change this via the Page Layout.


Worth mentioning I only have access to the Master Page and Page Layouts.


Is there a way to change the server output?


Quick edit: This is how the page renders currently:



<ol class="breadcrumb">
<span>
<a href="#ctl00_PlaceHolderTitleBreadcrumb_ctl00_ctl00_SkipLink"><img alt="Skip Navigation Links" height="0" width="0" src="/WebResource.axd?d=ytI7Ur6J1nk-W3jVI98_jg9IhzHTXPaI1-2DVzNFmMa20quwGFiFqb51k5TUtCzrWWa_162Wev-cjvPFi5BOyUml4EQ1&amp;t=635295491132453548" style="border-width:0px;"></a>
<span><a title="Test Site" href="/Pages/Home.aspx">Test Site</a></span>
<span> &gt; </span>
<span><a title="Parent" href="/Ash/Pages/Parent.aspx">Parent</a></span><span> &gt; </span>
<span class="active">Monkey</span>
<a id="ctl00_PlaceHolderTitleBreadcrumb_ctl00_ctl00_SkipLink"></a>
</span>
</ol>





powershell - Request rejected - The requested url was rejected



Request rejected - The requested url was rejected while getting context of sharepoint online site - office 365 using powershell


enter image description here






Applying css to a sharepoint gridview



Within my web-part, I want to make the header row of a gridview match the css from the sharepoint css class called ms-ContentAccent1-bgColor(I want to match the theme of the site). However, when I apply the css to the Headerstyle with the Css-Class it does not apply it. Is there any way I can apply the css while using the sharepoint gridview?



<Sharepoint:SPGridView runat="server"
AutoGenerateColumns="False"
ID="grid"
EmptyDataText="There isn't any no Data"
HeaderStyle-CssClass="ms-ContentAccent1-bgColor"
AlternatingRowStyle-BackColor="ControlLightLight"
>





Created pages not displaying in Top Navigation component



The Top Navigation component should display the contents of the menu defined in the Navigation settings. However, I've created several pages (and folders) in my Publishing site which are not appearing in the Top Navigation. The Top Navigation component is empty, providing the ability to add links.


Here are my Navigation settings: enter image description here


I have one site collection with a top-level site; no sub-sites. I expected that when I created pages or folders in the page library that they would appear and display.


enter image description here


What am I missing? (And will the folders display in the navigation?)


SharePoint 2013 on-premise






What/Where is the SharePoint App server, where to point the DNS



I am trying to setup the SharePoint 2013 farm for apps.


We have 2 farms:


Test DB Server Test Central Admin Test Front End 1 Test Front End 2


Prod DB Server Prod Central Admin Prod Front End 1 Prod Front End 2


and a Content Server that will eventually publish to prod and or test.


I am working on the Content Server. I created the web applications, site collection and solution installed and ready. The App Management Service and Subscription service is running.


Now I need to install my app part so I need to setup my farm for apps...


So out of all these machines what should the app domain be?


I have created an app domin, for example, appsmycorp.com. Where machine on the farm should this "point" to?






Get Columns via REST



I'm trying to get a list of all columns/fields for a list via REST using the /_api/Web/Lists(guid'xxxx')/Fields endpoint. This works fine, except it's adding in all of the system and duplicate fields such as LinkTitle, LinkTitleNoMenu, ContentTypeId, etc.


Short of filtering it out after retrieval using $.grep, is there a way I could use the filter syntax or similar to have SharePoint just return the user columns from a list, i.e. the ones a user might see in an edit or display form?


Thanks!






How can I display contents of lists without allowing changes?



I'm building a rota system in SharePoint 2010 using a contacts list for each team and then pulling the contact detail into a separate custom list, via lookup, for each team to define the rota schedule.


At some point I'd like to consolidate the various lists to provide an all encompassing view of who's on call and when. What's the best method to achieve this please and how would I ensure that the displayed list contents cannot be changed from the consolidated view?


n.b. I can't use Infopath or Designer :(


Thanks in advance.


Regards, Sift.






How to link to a certain post in the SP Blog site, but displaying the full blog roll



I've deployed the SP 2013 Blog site template, and appreciate the ease of publishing from Word - that'll make my content guy very happy.


I have a 3rd party spotlight solution on my Intranet homepage to cycle through photos for the 3 or 4 latest blog articles. The problem is that if I link right to the article, then the user experience is not the full blog roll, just that one article.


Is it possible to link to the full blog roll site /default.aspx but jump right to the 2nd or 3rd article on the page? Kind of like using an HREF would do...


Thanks for any help!






SharePoint Multi Choice Option Font Change



I have a sharepoint form with a multi choice CHOICE field, the question is how do I make the font of the clickable options on the forms font size different. It is coming up large.






SharePoint Multi Choice Option Font Change



I have a sharepoint form with a multi choice CHOICE field, the question is how do I make the font of the clickable options on the forms font size different. It is coming up large.






SharePoint Multi Choice Option Font Change



I have a sharepoint form with a multi choice CHOICE field, the question is how do I make the font of the clickable options on the forms font size different. It is coming up large.






How to synchronize a regular list with a calendar list



I have a calendar overlay of 7 calendars in SharePoint 2013. I'd like to synchronize a standard list with the overlaid calendars or a query all the calendars to update my list. Any ideas on how to do this?






SP2013: JavaScript Object Model - Setting the value of a list field



How do I set the value of a field in a list using the JavaScript object model? I am trying to automatically create a new wikipage (which I have done) and populate it with content like "Hello!"


I know I need to set the field 'publishingPageContent', but I'm having trouble setting it. Thanks so much






Migrate wiki Sharepoint 2007 to SharePoint 2010



How can I migrate the Team Wiki from a SharePoint Foundation 2007 instance to a separate SharePoint Server 2010 Standard instance?


I would like to preserve the page names and the individual pages.






How can I check-in multiple files at once SharePoint 2013?



I've been doing a lot of reading and research today, but haven't been able to find a solution that works for me.


Up until yesterday, our sales team was able to mass-check out files for tracking, fill in the data on each file that they needed and then mass check the files back in while adding a check-in comment that would apply to all the files being checked-in. This is how we constructed our document workflow to advance.


It seems with the Windows Update last night, we no longer have the ability to do this and files have to be checked back in individually, as you can imagine this creates a lot more work on our sales team.


Our IT budget is limited so I am unable to purchase a web part for this, does anyone have any ideas or suggestions? It's frustrating because it was working fine yesterday.


Thanks,






Edit item popups not working with ms-listviewtable class in a CEWP



I'm using SharePoint 2010 and Internet Explorer 9. (I have no choice in browser or versions -- policy dictates I use these until told otherwise)


I actually solved my problem, but I still don't understand why there was a problem, and I really want to understand why. The solution makes no sense to me. To paraphrase Douglas Adams, I speculate that if I knew exactly why this happened, I would know a lot more about the nature of the (SharePoint) Universe than I do now.


The problem I was having:


I have a page with many web parts. In a couple of content-editor webparts, I have javascript/jquery using the load() function to load in some list views, like this:



$("#ListofSubscribersPlaceHolder").load(SubscriberView+" .ms-listviewtable",function(responseTxt,status,xhr) {
if ( status == "error" ) alert( "Error: " + xhr.status + " " + xhr.statusText );

if (responseTxt.contains("no items to show")) {
$("#ListofSubscribersPlaceHolder").html("<p>No subscribers yet.</p>");
}

else {
// Remove the header row
$("#ListofSubscribersPlaceHolder table").find("tr").first().remove();
}
});


The list view includes the Edit icon and associated A-tag for each list item, with an onclick calling EditItemWithCheckoutAlert, which pops up the edit item form, and an href loading the edit item as a page instead of a pop-up.


When you visit the list view as a separate page, the Edit item works as you would expect, with a pop-up. But when you click on it in the web part, it follows the href to a web page instead of doing the pop-up form.


Other pop-ups that used the NewItem2 function in their onclick= worked fine. I set up alerts to show the A-tag after the page was fully rendered, and the onclick was definitely defined.


The solution I found:


Through digging and trial and error, I finally discovered that the problem went away (i.e. the popups work) if I removed the ms-listviewtable class from the table containing the link. So I added this line after the line that removes the header row:



$("#ListofSubscribersPlaceHolder table").removeClass("ms-listviewtable");


and now it works perfectly.


My Question:


I'm completely baffled as to why a class would prevent the onclick from working but let the href work. Looking at the stylesheets being pulled in, ms-listviewtable just defines borders and colors -- nothing fancy as far as I can tell.


In my search for a solution, I searched for how one might deliberately do such a thing. Aside from remonstrances that using css to modify behavior is wrong, there were 2 basic answers:




  1. The pointer-events attribute. I checked that (with an alert of the A-tag's $(this).css("pointer-events")), and it is undefined. (Any other attributes I should check?)




  2. Other suggestions involved covering the edit icon with an invisible unclickable layer, but wouldn't that also disable the href link? At any rate, I found no evidence that this was being done.




Any ideas what could be going on here?






How do I get this field in the External List(ECT->BCS->SQL) to show up in SharePoint Designer Workflow?



I have created an External Content Type that has CRUD rights to SQL tables. Off that External Content type I have created an External List. I have a document library that has an InfoPath form on it that kicks off a workflow to Create items in the External List. Every one of the fields come over to SharePoint Designer Workflow 2010 just fine except for one field. That one field happens to be part of a composite key(primary key) in the table that my External List/External Content Type attaches to. It is not unique or auto-incremented and should probably be setup as a foreign key in my opinion but that's another story....supposedly it has something to do with indexing which I don't understand.


Anyway, my question is...is there something that I need to change in the External Content Type setup or External List or SharePoint Designer to get that field to show up so that I can create this new list item?


-By the way, the other fields in that table show up just fine in SharePoint Designer where I can create that field. It's only that single field that won't show up in the dropdown. Again, I can go to the External List and add all of them just fine by clicking new item and save.






How can I increase the allowed execution time for a CSOM Client Context?



I am running SharePoint 2013 and have a Windows app that creates SharePoint sites with CSOM.


I have used Powershell to adjust the ClientCallableSettings, lengthening the ExecutionTimeout to 3 minutes. That is successful.


I have set the ExecutionTimeout of my ClientContext to 3*60*1000, which is 3 minutes.


I have changed a web.config file that is located at C:\inetpub\wwwroot\wss\VirtualDirectories\80 of my SharePoint server to say


and have reset IIS, but I’m not sure about this being the appropriate web.config.


I am still getting timeouts at about 110 seconds (more or less) and I can’t stand it.


Can anyone help me?






Debugging remote event receiver - no context token



I am trying to use the MS supplied BasicDataOperations provider hosted app to play around with and learn about remote event receivers.


I was following the instructions from this blog post by Chris O'Brien to deploy the app to a SharePoint Online site, and deploy the remote event receiver web to an Azure website. I've also set up an Azure Service Bus to do the redirection to my computer so I can debug the code.


When I try to debug, everything starts up normally, the app gets deployed to the SharePoint site, and when I add a list item through the app, my breakpoint gets hit. However, I am also getting a GetContextTokenError. The error message is:



The endpoint address 'http://ift.tt/1AxjvmC' does not match the app's endpoint 'my-azure-site.azurewebsites.net'.



I'm not sure where to go to specify/change the app's endpoint. Is that happening because I registered the app on AppRegNew.aspx using the Azure site URL?


My app manifest looks like this:



<Properties>
<Title>BasicDataOperations</Title>
<StartPage>http://ift.tt/1AOW5bt;
<!--<StartPage>~appWebUrl/Lists/List1</StartPage>-->
<InstalledEventEndpoint>~remoteAppUrl/AppEventReceiver.svc</InstalledEventEndpoint>
</Properties>


and as far as I'm aware, using the ~remoteAppUrl token in the event endpoint is what's somehow connecting the events through the service bus back to my computer. That's also what I'm using in the event receiver declaration:



<Receivers ListTemplateId="100">
<Receiver>
<Name>RemoteEventReceiver1ItemAdding</Name>
<Type>ItemAdding</Type>
<SequenceNumber>10000</SequenceNumber>
<Url>~remoteAppUrl/RemoteEventReceiver1.svc</Url>
</Receiver>
</Receivers>


And I'm not even worried about the AppEventReceiever.svc right now, I just want to get everything working with the RemoteEventReceiver1.svc. Without the token, the BasicDataOperations code doesn't run (they check for a valid context token before doing anything), and even if I wrote some code that would run, I'm sure I probably need that context token for something, right?


So how do I set it up so that I get a valid context token while debugging?






"Search this Site" function not working in my sharepoint site



When I try search a record my on my site using "Search this Site" search bar it seems to not work. Do I have to set it up first or what does the search bar even search?


Thank you. enter image description here


enter image description here






Error when trying to open documents via WebDAV



When I try to click open on a word document or any document in webDAV via Sharepoint, it says that it couldn't find . Has it been moved, renamed or deleted?


Well the document is there I can see it, word opens it tries to download it, but then I get message as described above.


Is there a reason for this and how do I solve it?


Thanks






List item Approval Status by Workflow



I have made a 2013 workflow for a list but I cannot get it to work the way I want it too. At the moment it sends me a task to approve or reject the submitted item but it's only on the task itself not the actual item so although the tasks says approved and the workflow finishes the item is never published.


How can I make my workflow also change the Approval Status of my item to approved so it will publish it to the list?


Here is a snapshot of my workflow at the moment.


enter image description here


Thanks






Starnge Issue : Convert Single Line of Text To Multiple line of text



I am facing a very strange issue, there is a single line of text column in SharePoint List. I want to change it to Multiple Line of text, when i go to list settings and click on the column it does not give me options to change the Column, see the screenshot attached.


This is the screen of what i see when i go to List settings then to this column


I then tried to change it using the code, Below is my code.


`



SPField field = fields[columnName];

try
{
if (field != null)
Console.WriteLine("Field Type current :" + field.Type);
field.SchemaXml = field.SchemaXml.Replace("Text", "Note");
field.Update();
NewsLetter.Update();
Console.WriteLine("Completed");
Console.ReadLine();
oWeb.AllowUnsafeUpdates = false;
}
catch (Exception ex)
{
Console.WriteLine("Message:" + ex.Message);
}

}`


I tried to run the code for my dev env and it worked the same code does not works for my prod env, where i need to make this changes. Can anyone please help this is urgent.






wsp Template loaded, but site creation problem



I have a wsp file from a different farm sent to me and would like to use it on my organization's sharepoint environment.


I loaded the template and activated it and can see it as a template when I want to create a new site.


The issue is while the site is being created, it pops up the login credential telling me to login to the previous sharepoint farm. After canceling the popup several times, the site gets created with the template but for every link I follow, it pops up the login screen before leading me to it. Please how do I eliminate this several login pop-ups??


Thanks in advance






Xsl stylesheet embedded in View page is lost when moving External List between site collections



I've the External List "ExtList1" with following content:



  • Read List.aspx

  • DispForm.aspx


"Read List.aspx" have embedded Xsl stylesheet (tag "Xsl", parent tag "WebPartPages:XsltListViewWebPart"


I've moved ExtList1 between site collections from CollectionA to CollectionB with using Export-SpWeb/Import-SpWeb. Related External Content Type exist in both site collections.


After that "Read List.aspx" in CollectionB does not contain Xsl stylesheet. I also didn't find anything related to Xsl stylesheet in export.cmp archive.


Please provide a method that will prevent loss of embedded Xsl stylesheet when moving ExtList1 from CollectionA to Collection B.


Export command:



Export-SPWeb -force -identity $SourceSiteUrl -path $ListFilePath -itemurl ("Lists/{0}" -f $ListName)


Import command:



Import-SPWeb -force -identity $DestSiteUrl -path $ListFilePath


SP Version: SharePoint Server 2010 Enterprise 14.0.7113.5000






SharePoint 2013: Promoted results picture



I have a question regarding promoted results in SharePoint 2013 Standard, if a result contains an image, will it still appear if the result gets promoted? Thanks






List item Approval Status by Workflow



I have made a 2013 workflow for a list but I cannot get it to work the way I want it too. At the moment it sends me a task to approve or reject the submitted item but it's only on the task itself not the actual item so although the tasks says approved and the workflow finishes the item is never published.


How can I make my workflow also change the Approval Status of my item to approved so it will publish it to the list?


Here is a snapshot of my workflow at the moment.


enter image description here


Thanks






Documents(file) name from Shared Documents in SP 2013 using powershell script



How do i get each document or file name from Shared Documents using PowerShell script.


Thanks






Display message when user again trying to respond survey?



When User Try To Respond Survey Again ,Displaying Some Error message ,but i want to display A User Friendly Message...


I Read Some Article But Not Found Any Solution Yet,help me






"The server was unable to save the form at this time. Please try again"



When I add new item my custom list I got error. How can I solve this problem? I stopped then started IIS but the problem is continuing.


enter image description here






SharePoint Column Validation formula - to validate multiple email addresses



Is it possible to validate the contents of a SharePoint list column, which contains multiple email address separated by semi-colon - ";"


Thanks.






how to get the url of a list item in jslink?



I am using the jslink code below to display the title of the list in a List View web part as a hyperlink. But the problem is that I don't know how to point to the url of that item? so how can I get the url of that item so that when the user clicks on it it will redirect him to the display page as it normally done by default?



(function () {
var overrideContext = {};
overrideContext.Templates = {};
overrideContext.Templates.Header = "<ul id='local-news2'>"
overrideContext.Templates.Item = CBody;
overrideContext.Templates.Footer = "</ul>"
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideContext);
})();

function CBody(ctx) {

var ret = "<li>" +
"<a href='" + url here + "'>" + ctx.CurrentItem.Title + "</a>" +
"</li>";
return ret; }





Template updating for old documents



Good day! I ask you to give me support in resolving my issue.


I have a document library in SharePoint site. I created content type inherited from document content type. Created content type has additional fields. I set document template for created content type. This document template is Word with quick parts from additional fields. Anything work fine. Later, I had to add some fields to a content type and had to update document template. New documents are created on the new template. But in old documents, that were filled in past is used old template. How i can update template for old documents? Thanks!






how to change the created date of a folder in sharepoint



I have a document library, I have used a powershell command to change the created date of the files uploaded in that library. However, I also want to change the created date of a Folder which is uploaded in that library. Please suggest a powershell command.






Link to download multiple files



We create an app that allows to send (for example, by e-mail) link to user for downloading certain documents. At the moment, we use VirtoSoftware Bulk Download for downloading files via SharePoint UI. Is it possible to somehow create the link and transfer to it the id of the elements, and when clicked, an archive with selected elements will be returned?






when retrieving a Person field PropertyOrFieldNotInitializedException



I see an exception with quick watch:



'listitems.ListItemCollectionPosition' threw an exception of
type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'


Here is my code.



Microsoft.SharePoint.Client.ListItemCollection listitems = list.GetItems(query);

context.Load(listitems, items => items.Include(item => item , item => item["MyPerson"]));
context.ExecuteQuery();

User u = null;
foreach (ListItem item in listitems) // a quick watch on listitems shows the exception
{


FieldUserValue fuv = (FieldUserValue)item["MyPerson"];
u = context.Web.EnsureUser(fuv.LookupValue);
context.Load(u, user => user.Email);
context.ExecuteQuery();

res = u.Email;


}


MyPerson corresponds to the internamname of a field, which is person or group






More than one Pages library?



We have requirements where we need to add multiple pages libraries on a site, but this seems impossible to do via both the GUI and code.


Is it all possible / supported ?






email data from sharepoint list to specific people



I have a sp 2010 cutom list. Whenever the list gets updated, an email should be sent to some specific people and body of the email should be taken from "messageList" I searched net, most of the solutions suggests workflow. i dont want to use that since the solution has to deployed to many enviornments.


How to do it.


Below is my event for item added.



Public override void ItemAdded(SPItemEventProperties properties)
{
base.ItemAdded(properties);
try
{
if (string.Equals(properties.ListTitle, DocLibTitle, StringComparison.OrdinalIgnoreCase))
{

//string line = string.Empty;
SPWeb web = properties.Web;
if (properties.AfterUrl.EndsWith(".csv", StringComparison.OrdinalIgnoreCase))
{
SPFile file = web.GetFile(properties.AfterUrl);
if (file.Exists)
{
SPList calendarList = web.Lists.TryGetList(CalendarListTitle);
SPList messageList = web.Lists.TryGetList(MessageListTitle);

if (calendarList != null)
{
StreamReader content;
content = new StreamReader(file.OpenBinaryStream());
var data = Parse(content);

foreach (var fieldValues in data)
{
SPListItem item = calendarList.Items.Add();

item["ChangeOrderNumber"] = fieldValues[0];
item["Requestor"] = fieldValues[1];
item["ImplementationStartDate"] = fieldValues[2];
item["ImplementationEndDate"] = fieldValues[3];
item["COStatus"] = fieldValues[4];
item["Assignee"] = fieldValues[5];
item["OrderSummary"] = fieldValues[6];
item["OrderDescription"] = fieldValues[7];
item["Justification"] = fieldValues[8];
item["COURL"] = fieldValues[9];
item.Update();

SPListItem messageItem = messageList.Items.Add();

messageItem["SendEmailTo"] = item["Requestor"];
messageItem["SendEmailCC"] = item["Requestor"];
messageItem["EmailBody"] = item["OrderSummary"];
messageItem.Update();

}

}
}
}
}
}





Multiple Application Server







I am novice in SharePoint. Let me ask the reason why there is a need of multiple (specifically four) application server in a SharePoint farm. Actually we have a client and this is their requirements:


4 Web Server (WFE)

4 Application Server (I have no idea for the function or advantage of multiple App Server)

2 SMTP Server

2 Workflow Manager Server (What is the advantage of having 2 workflow manager server)

2 SQL Server (AlwaysOn cluster)

1 Integration Server (I have no idea what is Integration Server)


I hope that you can enlighten me Mam/Sir on this.






How to change the content type of a file with .stp (Autocad file) extension?



I need to upload a file with .stp extension to a document library and set a predefined content type to it using server side code. I am able to add the file using SPFileCollection.Add(string fileUrl,byte[] data). This creates the item with default content type. Then I try to set the desired content type using following:



item["ContentTypeId"]= "0x012345"; //this is only example. actual id is not shown here.
item.SystemUpdate();


However, the content type remains unchanged. This works if the file extension is something else (like .pdf or .doc).


How can I add the file with my desired content type?






Add Safecontrol assembly in web.config through powershell



Can any one guide me in powershell to add safecontrol assembly in sharepoint web app web.config?






Delete old items if it exceed List View Threshold



I'm having a workflow that creates alot of documents in a single library. I know I'm going to exceed the limit of 5000 pretty fast. Old documents can be deleted so the question is: Is there a simple way to delete old files automatically?


The best way would be if there where a option that sharepoint deletes the oldest items in the list if it exceed the list view threshold.


The only way I can think of is to run a timer job / scheduled task that runs every night and delete the oldest files if it exceed like 4000.






mercredi 25 février 2015

How to update metadata for Sharepoint 2013 rest service?



How to update metadata for Sharepoint 2013 rest service using Java






Can we trigger a SP2013 WorkFlow using REST API + Jquery?



Can anyone suggest whether there is any possibility how to trigger a SP2013 WorkFlow using REST API & Jquery ?






my sharepoint ribbon and save button get disabled why?



When pressing editbutton i am dispalying the height to 300px of my class .center but in editmode the buttons in top get disabled and also save button? enter image description here






Get SPUser by passing Email address



i have an Email address of particular user. Now i want the SP username of that particular email address programatically.


Thanks.






Get user profile for users that access a specific subsite in Sharepoint 2013



I want to keep trace of each unique user that accesses a specific subsite (just like Popularity Trends but more advanced). I want to generate a report that contains each unique user's profile: username, the department he belongs to, etc.


How can I achieve this?






client side IDs of share point elements



I need to hide some menu items that come OOTB on sharepoint pages. I can do this through javascript/jquery, but am not sure how consistent are the client side IDs of various elements on SP pages. I dont want my code to break if MS decides to name them differently in the future.


Thanks






Add Link to the Quick Launch Navigation while deploying a webpart page in the module



I like to add a navigation link under the quick launch left nav bar when a module deploys a webpart page as a file element in the feature. Is there a declarative way or do I go with feature event receiver?


The environment I m working on - Office 365 and deploying the webpart page under a feature using a Sandbox solution.






how to mak Infopath form textbox allow only alphabets



I am trying to create a textbox in info path form with following criteria:


1.) Length should be 1-50 characters .


2.) It should not contain any digit.


3.) It should contain only alphabets.


I try following pattern but it's not working



FieldName | does not math pattern | [a-zA-Z]{1,50} | or
FieldName | does not math pattern | .*[a-zA-Z].* |


following regex pattern work with allow special character but not work in Infopath form



^[^0-9]+$





Select custom site template by default



Creating a sub site requires a template selection, Can I show my custom template selected by default, I don't want user to go to custom tab of templates and manually select a template.






Web.config modification in multi server farm



i have a Sharepoint web app which has web.config modification.when i do it in single server farm, it works very fine but when i do the same thing in multi server farm which has 10 servers(2 WFE,2 APP and 6 search), it doesnt work as expected.



<modules>
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
</modules>


This is the modification i do. please guide me






Modify text displayed in thumnail of asset library- O365



I have a client with a large Asset Library of car images. The current thumbnail shows the name of the file as well as the image specifics (jpg, size, etc.). The client instead wants the thumbnail to display the name of the car (pulled from Car Name Field), Manufacturer (pulled from Manufacturer Field) and finally the image details (JPG, size, etc..).


Can someone point me to some code I can use to accomplish this? I am an architect not a developer but should be able to figure out some jQuery.


Thanks in advance!






Get Columns via REST



I'm trying to get a list of all columns/fields for a list via REST using the /_api/Web/Lists(guid'xxxx')/Fields endpoint. This works fine, except it's adding in all of the system and duplicate fields such as LinkTitle, LinkTitleNoMenu, ContentTypeId, etc.


Short of filtering it out after retrieval using $.grep, is there a way I could use the filter syntax or similar to have SharePoint just return the user columns from a list, i.e. the ones a user might see in an edit or display form?


Thanks!






Query rules and REST



Is it possible to create a query rule and have the condition match a keyword in a complex KQL query? For example the following query is being issued from a third party application using the REST endpoint. Could we create a query rule that would fire on the query below for the condition "query contains programmer"?


querytext="(programmer)(Location:California)"






What happens to a paused workflow when the item is changed?



Let's suppose we have a workflow that is triggered when a task item is created or modified (as chosen in the settings for the workflow). The workflow contains a step that pauses until the day before the due date for the task, then sends out an e-mail message reminder.


Under this scenario, what happens to the workflow when I change the due date?



  • Does it continue, using the updated date?

  • Does it continue, using the old date?

  • Assuming either of the previous is true, is a new workflow spawned upon change?

  • Does the existing workflow automatically stop, with a new workflow starting due to the change?






SharePoint Online 2013 - Mapping User Profile properties



Doing a proof-of-concept for management by doing a manual CSV import of a small subset of user accounts exported from AD using a Get-ADUser|Export-CSV method. They are imported using Import-CSV|New-MSOUser. Process completes without error and all the imported accounts are immediately available in SPO.


However I need map the property 'mail' to 'WorkEmail' and cannot find a way do it scriptomagically or even manually post-import. The domain of the source objects is used for extranet access and users have email addresses that differ from their domain userPrincipalName (e.g. user@mycompany.foo has a upn of user@private.domain.name). In short, their functional email addresses cannot be used for login because I cannot create accounts using domain names I don't own, so I need to map the currently defined 'mail' property (which I can export) and map it to the 'WorkEmail' SharePoint profile property.


My existing on-prem MOSS 2007 farm had the same issue when we deployed it years ago but it was an easy. From what I have read, SPO 2013 should work the same way -- yet I cannot figure it out.


I suspect this can only be done when using an active AD syncing process and is not an option when importing via CSV as I am. I am also a bit terrified that this is one of the ever-growing list of options unavailable for SharePoint Online accounts.






Popups in SharePoint Apps



I created a SharePoint App, but each time I am trying to access it I keep getting pop up authentication window. I am trying also with other apps from the SharePoint store, which makes me think the problem is with the configuration of my app services themselves.


I followed the article: http://ift.tt/NlrNCt . Is there any extra step to do? It's only on my development environment as I don't want to use O365. I am not connected to internet always.


Environment: SharePoint 2013. windows server 2012.






What to Import from WSP to build Web Template solution in Visual Studio?



I'm trying to create a custom web template for SharePoint 2010. The client has already configured a prototype web site in SharePoint, which is essentially a standard blog site, with some modifications. The changes include:



  • edits to several list form pages (for example, hiding some objects inside security trimmed controls and pointing some forms to a custom master page)

  • adding one or more new master pages just for these sites


When I save the site as a template, and then import the WSP file into Visual Studio 2012, I'm asked which components to import. I only want the bare minimum imported - which items would they be? I suspect the "Web Template" is required, but would anything else be needed based on the changes I've mentioned?


Thanks kindly.






When I use Calendars Overlay, how do I make Exchange click through to my calendar?



When I use the calendars overlay feature in SPS,


enter image description here


I was able to add an Exchange calendar if I add the URLs


OWA URL



Web service



... I assume the only reason the OWA URL exists is so that I can click on my Exchange calander for direct access to my personal calendar. If that's the case, I don't like being redirected to the full OWA experience, and think it would make more sense to be sent to the calendar as shown below


http://ift.tt/1FujQWQ


How can I make the redirect in SPS calendar overlay go to that URL?


enter image description here






Number of days timer job history is kept?



We've just noticed that our "User Profile Service Application - User Profile Incremental Synchronization" timer job has been failing in our SharePoint 2010 environment for quite some time. This job runs everyday at 1:00 am. When I go to Central Administration > Job History, I can see job history items back to 02/15/15, but nothing further back than that. I'd like to be able to see the last time this timer job ran successfully, which I'm assuming was before 02/15/15.


Does anyone know for how many days timer job history is kept? And, is there anyway to retrieve timer job histories older than this?






What are the best Sales Webparts to implement into a existing CRM?



Best web Parts for Sales? Does anyone know of any great web parts for CRM?


http://ift.tt/1C5O6qM






RequestUsageExecutionTimeThreshold: what doing this property?







Rest webservices in SharePoint ?



Any documentation to learn REST Webservice in SharePoint ?


I am trying to create rest webservice for sharepoint .






SharePoint Contacts Automated Email Drip Campaign



I'm looking for an automated email drip campaign for SharePoint. I want to automatically respond and follow up with leads sending automated responses to leads that are captured thorough web forms.


I know smart alert pro, does this. But it requires that you have them sign up as an external users. This will not work for me. Does anyone have an alerting/email follow up campaign that is automated?






Using AAM for external access to a subsite (http://ift.tt/1m2127C)




Platform: Server 2012 R2
Version: Sharepoint Foundation 2013


Hi,


We have the default IIS site setup with a default web application. There is a subsite under this. So to clarify:



http://server1


takes us to the default sharepoint page



http://server1/SubSite


takes us to an actual production site.


Now, when trying to provide external access to the website, we'll use the following URL:



http:://external-address/SubSite


which then redirects the URL with the following:



http://external-address/SubSite/_layouts/15/start.aspx#/SitePages/Home.aspx


Without the '_layouts/15/start.aspx#/' the site works fine. So I've gone into the AAM and added an internet URL of:



http://external-address


but after reading round because the site is stored in sharepoint we can't do any IIS bindings. I have already tried the MDS workaround as well (deactivating Minimal Download Services). Any ideas on a solution?