Tag Info

Hot answers tagged

3

As part of using AddFieldAsXml you need to provide the field's internal and staticname announcementy.Fields.AddFieldAsXml("<Field Type='User' DisplayName='Created By' StaticName='CreatedBy' Name='CreatedBy'/>", true, AddFieldOptions.AddToAllContentTypes); announcementy.Fields.AddFieldAsXml("<Field Type='DateTime' DisplayName='Date Created' ...


2

For User field types you could specify $expand query option to return projected fields. In case of User fields the additional properties will be retrieved from User Information List. Assume Approver is a single-valued User field. Then the following REST request will return Approver field properties such as Id,Name,Title: ...


2

Yes. You can always delete the existing permission groups and create new ones. But I suggest you first create the custom permissions and then delete the existing ones.


2

Try this query, I've fixed FieldRef tag <View Scope="RecursiveAll"> <Query> <Where> <Eq> <FieldRef Name="UniqueId" /> <Value Type="Guid">37cf076c-32f9-4ea4-9ed7-04fea659d0f2</Value> </Eq> </Where> </Query> </View> Also I would recommend to use tools ...


2

They are present both in the Enterprise E3 subscription plan, and the Enterprise E1 subscription plan. Maybe they where not available when you posted the question seven months ago? Or it may be that you use a different subscription plan that don't have the BI-center site template?


2

The following script demonstrates how to render an additional caption for List View: SPClientTemplates.TemplateManager.RegisterTemplateOverrides({ OnPostRender: function() { $('table.ms-listviewtable').before('<h1>List of Microsoft Offices</h1>'); } }); Result


2

Try adding a postRender event, then modifying the Pagetitle element. Add the first line at your comment (//I am assuming .....) context.OnPostRender = postRenderHandler; function postRenderHandler(ctx) { $(document).ready(function(){ var parent = $("#pageTitle"); $("<span id='spanId'>TESTING</span>").appendTo(parent); ...


1

If you are OK with a code based solution, use the Client side object model to connect to your tenant's user profile service and export the data. Here is a good post to do it. You will have to loop through all the user profiles and export the data. You can also make use of the people search data. Query the people search using the rest API to get all the ...


1

Try below $("input[name=GEN20][value=" + item.get_fieldValues().GEN_20_EL == false ? 0 : 1 + "]").attr('checked', 'checked'); //OR $("input[name=GEN20][value=" + item.get_fieldValues().GEN_20_EL == false ? 0 : 1 + "]").prop('checked', 'checked'); Another option if(item.get_fieldValues().GEN_20_EL == true) { $('#GEN_20_1').attr('checked','checked'); ...


1

Answer: var item = list.getItemById(92); $(document).ready(function () { appContext.load(item); appContext.executeQueryAsync(function () { $('#GEN_1').val(item.get_fieldValues().GEN_1_Sum_Scope_Assigment); $('#GEN_1_D').val(item.get_fieldValues().GEN_1_Sum_Scope_Assigment_D); $('#GEN_2').val(item.get_fieldValues().GEN_2_CRMname); ...


1

Go to List Settings -> Advanced Settings -> Launch forms in a dialog?. Check Yes here. Update The corresponding property which needs to be set in code is NavigateForFormsPages. Here is a sample schema.xaml file of a List Definition containing this attribute: <List xmlns:ows="Microsoft SharePoint" Title="ClientAnnouncementsListDef" ...


1

According to Website feature comparison table Content Query Web Part is not supported in SharePoint Online Web Site. But, you could consider the following approach: import CQWP web part into SharePoint Online Web Site (export it first, for example, from private site collection) Add exported web part on the page (see the figure below) Result The ...


1

A more efficient option may be to use the SharePoint Search API. You could query across all sites with a single query. Here's an example: using (ClientContext clientContext = new ClientContext(url)) { KeywordQuery keywordQuery = new KeywordQuery(clientContext); keywordQuery.QueryText = "ContentClass:STS_ListItem_Event (path:\"http://site1\" OR ...


1

You can open the site in SharePoint designer , go to your SharePoint List and create a new Display form. In that display form you can re use the same html and JavaScript code of your Survey page. See this blog to know about custom list form.


1

I would use SPWeb.GetFile('GUID').Item instead. If you know the ID I see no reason to do the CAML query. Edit For SP Online (Client object model) you can use: Web.GetFileById as described here


1

You can absolutely add a reference to jQuery in the master page and have it work on sites with publishing enabled. I do it all the time. I think a lot of your investigation is red herrings. Probably the most important thing to check is where in the you're adding the references to your scripts. I always add mine at the bottom of the head so I know that ...


1

You can limit to the SharePoint online services IP address ranges: https://support.office.com/en-US/Article/SharePoint-Online-URLs-and-IP-Addresses-99b11563-c42d-4c20-87d2-502e66d62164?ui=en-US&rs=en-US&ad=US All Office 365 services address ranges are documented here: http://technet.microsoft.com/en-us/library/hh373144.aspx


1

This sounds similar to an issue posted here: https://social.msdn.microsoft.com/Forums/azure/en-US/e0579c4f-6bb6-4961-85bb-b82b4c26e496/workflow-does-not-run-properly-httpinternalservererror?forum=sharepointcustomization I'm using SharePoint Designer workflows within Office 365, and the workflows suddenly stopped working Monday afternoon, with exactly the ...


1

Date formats are derived based on the regional settings. If you want date to be like Thursday, June 21, 2013 then change the regional settings to English(United States) You can make this change through site settings page.


1

There are multiple ways to do that, but all those require editing master page or the specific page in question. The easiest way is using CSS. For that edit the page and add new web part. Select "Script Editor" web part. You can find this under group named "Media and Content". Then click on "EDIT SNIPPET" and paste following <style> #SearchBox { ...


1

The simplest way would be to add content editor web part or snippet web part and add the following code to hide it: <style> #titleAreaBox #SearchBox {display: none !important;} </style> Hope this helps!


1

Yes use SharePoint Rest Services and then calling: https://<weburl>/_api/Web/GetFolderByServerRelativeUrl('</sites/site/subsite/library>')/Folders Just loop through all the results and when ItemCount = 0 and Name of the folder is not equal to Forms(default in every library) send out an email. It does not list out the subfolders. Still ...


1

It could be done by leveraging SharePoint REST services. In SharePoint 2013 workflows was introduced a new action named Call HTTP Web Service. This action is flexible enough to make requests to a variety web services including SharePoint REST service. The following REST request demonstrates how to determine whether Folder contains items: ...


1

We ran into this a while back. We did not spend too much time to track it down and I can't find a reference that explicitly states it's not supported. What we ended up doing was the old school JavaScript in a script webpart to create our modifications on page load.


1

Seems like my problem is fixed. I added .Load() for a list item in the Rename method: try { item["Title"] = newName; item["FileLeafRef"] = newName; item.Update(); _clientContext.Load( item, i => i, i => i.FileSystemObjectType, i ...


1

You can go to that List Settings--> Advanced Settings --> Set "Allow items from this list to appear in search results?" to No.Now these items will not appear in search results. Another option is to break inheritance and set Item level permission in that List. See this blog to know how to set item level permission using designer workflows. This will take ...


1

Change your Members group to use Contribute instead of Edit (Contribute is similar to Edit, but without the Manage Lists permission). Unfortunately, the Edit Items permission will allow users to edit pages (pages are considered a list item in SharePoint). To prevent users from editing site pages: Go to your Pages/Site Pages library Break inheritance on ...


1

Ok, I was able to do this by removing the TimelineDueDate column from the View definition in my list schema: <View BaseViewID="2" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,Late_Tasks;" MobileView="True" MobileDefaultView="False" Url="late.aspx" ReqAuth="TRUE" SetupPath="pages\viewpage.aspx" ...


1

Out of the box, it's not possible to get notifications unless you are mentioned or replied to. All Newsfeed settings can be found at About Me > Edit > ... > Newsfeed settings Reference: Change your newsfeed settings


1

SharePoint Online doesn't support this functionality OOB, but using 3rd party solutions you can do it. Please check out link "How to Create HelpDesk on SharePoint Online" it describes very similar use case.



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