Tag Info

Hot answers tagged

5

Terms are the basic unit or smallest item in Managed Metadata or Taxonomy. TermSet is just a collection of Terms.Like say if you want to create a taxonomy for countries and their cities. Country will become the TermSet (eg:England) and cities will be Terms inside respective termsets ie London will be term inside England. Tags are special terms , they are ...


4

The big difference between Keywords and Terms are that Terms are controlled by you (normally) and Keywords are controlled by the users. Sometimes Keywords are referred to as Folksonomy whereas Terms are referred to as Taxonomy. To use Terms to tag a document, create a custom Site Column and map that to a TermSet (which is a collection/hierarchy of Terms), ...


4

You can use SharePoint Event Receivers.. ItemAdding is the event receiver you are looking for.. Please have a look at: Creating SharePoint 2010 Event Receivers in Visual Studio 2010


3

SPList list = web.Lists["Notifications Group"]; foreach (SPListItem item in list.Items) { string fieldValue = item["Specific users"].ToString(); SPFieldUserValueCollection users = new SPFieldUserValueCollection(web, fieldValue); foreach (SPFieldUserValue userValue in users) { SPUser user = userValue.User; //Do something with ...


3

Instead of a network credential, you will need a SharePoint Online Credential: http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.client.sharepointonlinecredentials_members(v=office.15).aspx


3

You can remove "Completed" field from current view and it will take away the mark as completed check box. Edit view, you should be seeing "Completed" field selected, just uncheck that and save the view. Hope this helps, mark this as answer if it did...


2

Use AppCatalog class for this. Proof of concept below: class StackExchangeProof { static void Main(string[] args) { var login = "admin@yourdomain.onmicrosoft.com"; var password = "YourHardP@ssw0rd"; var url = "https://yourdomain.sharepoint.com"; var creds = new SharePointOnlineCredentials(login, ...


2

First, your load is wrong like MdMazzotti pointed out. But you don't update your field, you'll have to load it into your context again and executeQueryAsync again inside your success function. But you could just load everything up in initialize(): function initialize(){ var context = new SP.ClientContext.get_current(); var web = ...


2

It is not a bug.Site Templates does not retain the Security settings.Site templates do not include the following items: Customized permissions, running workflow instances, list item version history, workflow tasks associated with running workflows, people or group field values, taxonomy field values, publishing pages and publishing sites, My Sites, and ...


2

Inside the custom page that you're opening in a popup, add a checkbox or button (Don't show this again), then bind click handler that creates a cookie (username, showPopup) Inside your function, function initialize() { var context = new SP.ClientContext.get_current(); var web = context.get_current(); // 1. get current username // 2. check if the ...


2

When a template is specified, the data is returned from all lists of that type and as mentioned by @Robert, you will then need to filter the returned object. However, there is other way in which you can specify the IDs of the lists instead of template. Example: <Lists> <List ID="7A9FDBE6-0841-430a-8D9A-53355801B5D5" /> <List ...


2

Yes that is possibile. You have to modify a file under Master pages and page layouts of your site. When you click there you will have a list of directory. So go trough: Display Templates -> Search -> Item_Default_HoverPanel.js My suggestion is have a copy of that file and the *Item_Default.js* on your system. Rename those like My_Item_Default* and do your ...


2

I just did a simple test, and this code works just fine: var context = SP.ClientContext.get_current(); var item = context.get_web().get_lists() .getByTitle('Test') .addItem(new SP.ListItemCreationInformation()); item.set_item('MyField', ['Hello', 'World']); item.update(); context.executeQueryAsync(); And this is quite identical to your code, so that ...


2

@ericb: Excellent suggestion! ArrayOfGroups = new Array("Owner", "Member", "Visitors", "Trainers"); //could be dynamic array of group names var ctx = new SP.ClientContext.get_current(); var web = ctx.get_web(); var userGroups = web.get_currentUser().get_groups(); //as suggested by ericb ctx.load(userGroups); ctx.executeQueryAsync( function () { ...


2

You don't need to loop through all groups, instead you can get the groups for the current user like this: var groups = currentContext.get_web().get_currentUser().get_groups(); It does seem spoonfeeding is the preferred approach, so I'll just leave this here: function filterNewsArrayByCurrentUser(newsArray, callback) { $.ajax({ url: ...


2

I used this when I first created my app. First, you need both the app web url and the host web url: var hostweburl = decodeURIComponent( getQueryStringParameter("SPHostUrl") ); var appweburl = decodeURIComponent( getQueryStringParameter("SPAppWebUrl") ); Then you need to load the SP.RequestExecutor.JS file, which I did differently than what was in the ...


1

I have not yet had time to explore the full functionality but my understanding is PowerBI add: Larger workbook sizes for online viewing Ability to connect to data sources on-premise A new "PowerBI" site template is available. The biggest take away is probably the ability to utilize on premise data sources. I'd be curious to to see if anyone that is ...


1

This is possible also in SharePoint OnLine. These are the steps that you have to do: (Go to) Sharepoint Admin -> User Profiles -> Manage User Properties -> New Property Here you have to choiche from some option. For sure you will need to make the property indexed Then go to Search -> Manage Search Schema -> New Managed Properties Here you have to ...


1

Yes and no. First off, in order to develop a SharePoint solution without SharePoint installed, you would have to get a copy of the ISAPI folder from the 15 hive, and you might have to make a registry change. You will not be able to debug, however. You cannot deploy it directly, but you can publish the wsp to your SharePoint Online site, and then activate ...


1

According to SharePoint 2013 User's Guide: Learning Microsoft’s Business Collaboration Multiple instances of the same workflow cannot run on a single item at the same time GoogleBook


1

They are almost uneditable. But there are tho tvingas you can do editing a managed property: Advanced Searchable Settings: Enables viewing and changing the full-text index and weight of the managed property. Add Mappings to crawled properties and the list shows all the crawled properties that are mapped to this managed property. A managed property can get ...


1

In addition to Azure SQL DB and SharePoint Lists, the following option could be considered: SharePoint PropertyBag Many of the important SharePoint client objects support a Properties property: Web Folder ListItem File This property returns a property bag object, which is a collection of key/value pairs. Each key must be uniquely named, each value is a ...


1

You can use the automatically created crawled properties but there are some rules you need to follow unless you want to write your own code. The details are outlined here: http://technet.microsoft.com/en-us/library/jj679902(v=office.15).aspx Two point that I think are important: "When you search for a crawled property, you may find two crawled ...


1

Try adding the following code for folder creation. //Enable Folder creation for the list list.EnableFolderCreation = true; list.Update(); context.ExecuteQuery(); //To create the folder ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation(); itemCreateInfo.UnderlyingObjectType = FileSystemObjectType.Folder; ...


1

You could specify in Query which items to exclude from results. For example, the following query: <Neq><FieldRef Name='FileDirRef' /><Value Type='Lookup'>/project/Lists/Tasks</Value></Neq> will exclude all task items from Tasks list located on Project site.


1

Permissions are not included in site templates in SharePoint Server or SharePoint Online. More to read in Reference 1 and Reference 2


1

Sandbox code has resource usage limitations. There is a hard limit to how long a sandboxed solution can take to be completed. By default, this is 30 seconds. if it takes more than 30 secs then it will be terminated.May be your code is taking more than 30 secs since i can see Create sub site code is there which normally takes time. Please see this Resource ...


1

Switching between SharePoint Online (Plan 1) with Yammer and Office 365 Enterprise E3 made no difference. Copied formatted text from Word 2013 was pasted in a new Enterprise Wiki page. Every formatting pasts correct with formatting information. Header 1 in Word is Header 1 in the Enterprise Wiki page, bold is bold, italic is italic and so on. Everything ...


1

You can simply parse the date using Javascript Date object. If different cultures are being used, you have to get the culture being used and format it accordingly. var date = oListItem.get_item('StartDate'); if(date) { date = new Date(date).format('MM/dd/yyyy'); window.console && console.log(date); } //Update var today = new Date(); ...


1

Try getting the Field Schema and updating the field name in it. Example: var ctx = SP.ClientContext.get_current(), //SP.ClientContext field = ctx.get_web() //SP.Web .get_lists() //SP.ListCollection .getByTitle('MyList') //SP.List ...



Only top voted, non community-wiki answers of a minimum length are eligible