Tag Info

Hot answers tagged

2

SP.Taxonomy.TaxonomyFieldValue type exposes the following properties via SharePoint REST API: Label TermGuid WssId How to retrieve Taxonomy field values using SharePoint REST in JavaScript Assume Pages library contains: Category single valued taxonomy field Categories mutli-valued taxonomy field Then the following example demonstrates how to perform ...


2

Since you are using SharePoint 2013 I would recommend you to utilize Client Side Rendering (CSR) technique for that purpose. How to customize a List View to render a Title as a link to page item The following JavaScript template demonstrates how to render a Title column as a link to the page item: (function () { function linkTitleRenderer(renderCtx) ...


2

Most probably it occurs since list view still uses XSLT rendering mode when web part is added via SharePoint SSOM. Use ViewId and XmlDefinition properties to specify explicitly which list view is used for rendering. Below is provided the complete example for adding XsltListViewWebPart web part in SharePoint 2013: private static void ...


1

I had this problem too. You changed/added a new Address/URL? The Address of your Content Source has to be in "Default" Zone in your Alternate Access Mapping, because the Default URL in AAM is used in the Search Configuration. Otherwise, "Search This Site" shows no results. Check this out for more Details: ...


1

The list of corrections/fixes for your script: 1) Replace the line return ""returnHtml""; with return returnHtml; 2) Make sure the proper ListTemplateType and BaseViewID are specified, in fact those properties are not mandatory and they could be omitted at all. For example, for Pages Library you could specify: myOverrides.ListTemplateType = 850; //ootb ...


1

You're running into cross-site scripting errors. This has nothing to do with SPServices, but is a security thing in browsers and servers. The basic idea is that a page coming from some random place shouldn't be able to run script that writes to a different domain. If you think about it, that's a good thing, as it keeps all our interfaces secure. Yet at the ...


1

In Sharepoint Online 2013, I think it is Possible. When using the Managed Navigation and modeling the site navigation with Terms, as long as the particular Navigation Term is linked to a page using the Term-Drive Page with Friendly URL option, the term will be displayed to users only if they have the necessary permissions to access the associated page. ...


1

Try this var context = SP.ClientContext.get_current(); var theUser = context.get_web().ensureUser("DEV\testowner"); context.load(theUser); context.executeQueryAsync(function(){ //Create list item here }, function(sender, args){ alert(args.get_message()); });


1

You can try to stop inheriting permission in the NewsFeed list and provide contribute access for all visitors to that list. This might give you an idea for the same.


1

Try setting the property to 1 $column.FriendlyDisplayFormat = 1. This is enumeration type as we can see here: SPDateTimeFieldFriendlyFormatType enumeration


1

It does not seem possible to specify $filter query option for /_api/web/lists/getbytitle(listtitle)/getItems(query) endpoint. But the specified REST query parameters could be defined using plain CAML query: $top=5 -> <RowLimit>5</RowLimit> $filter=substringof('Orders',Title) -> <Where><Contains><FieldRef ...


1

You should explicitly load the URL using the load method this.context.load(this.collList, "Include(Title, DefaultViewUrl)"); so your onSucceed will be like function onSucceed () { var listEnumerator = this.collList.getEnumerator(); while (listEnumerator.moveNext()){ var oList = listEnumerator.get_current(); var ...


1

SingleTask activity returns TaskItemId which you can store in a variable and use it in UpdateListItem activity afterwards.


1

Hi i already solve my problem below is my code: List docs = web.Lists.GetByTitle("CustomList"); ListItem item = docs.GetItemById(ID); var attInfo = new AttachmentCreationInformation(); attInfo.FileName = mFile.Name; ...


1

Create a Content Type then create a set of columns for the Content Type that describes your Project content type. Then create your list using the content type and populate it. In search only search for ContentType:MyProject and you will get your result. I do this for Site Directory info all the time.



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