Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Rows of items containing columns of information.
0
votes
How to get the name of a selected web-part in javascript?
You can get list name as below. … (); //selected list Id
var formattedString = listId.substr(1,listId.length - 2);
var splist = ctx.get_web().get_lists().getById(formattedString);
ctx.load(splist);
ctx.executeQueryAsync …
3
votes
Accepted
REST api to change visibility of list?
itemPayload = {
"__metadata": { "type": "SP.List" },
"Hidden": true,
};
jQuery.ajax({
url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('Custom List … jQuery("#__REQUESTDIGEST").val()
},
success:function(data){
console.log(data);
},
error:function(data){
console.log(data);
}
});
Reference - Working with lists and list …
1
vote
REST request for creating list, 404
You can use the below code to create list using REST(just make sure you have a jquery reference):
var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists";
$.ajax({
url: requestUri, … data:JSON.stringify(
{'__metadata':
{ 'type': 'SP.List'
},
'AllowContentTypes': true,
'BaseTemplate': 100,
'ContentTypesEnabled': true,
'Description': 'My list …
1
vote
Merging the results of 2 REST calls in a dataTable
To merge data of two lists in a datatable, i have modified the above code so that it will work:
//'use strict';
var appweburl;
var hostweburl;
var results;
var allResults = [];
$(document).ready(f …
1
vote
Get item count in a list with filter
Since you are using SharePoint online, try this REST endpoint.
Try below code:
$.ajax({
url: siteUrl + "/_api/web/lists/getbytitle('Users')/items?$filter=FirstName eq 'James'",
…
1
vote
Accepted
Create list property like 'description' field
To set property bag using CSOM, try below code:
List customList = context.Web.Lists.GetByTitle("CustomList");
PropertyValues listAllProperties = customList.RootFolder.Properties;
listAllProperties["SecretDescription … );
context.ExecuteQuery();
var keyValue = customList.RootFolder.Properties["SecretDescription"];
Reference - Add meta properties to list …
1
vote
How to GetListItems as JSON using Powershell with SharePoint Online?
<script src="path-to/downloadJSONdata.js"></script>
In the downloadJSONdata.js file, write the below code:
$.ajax({
url: "https://sitecollectionurl/_api/web/lists/getbytitle('Contacts list …
4
votes
Accepted
The property 'Description' does not exist on type
You need to use the internal name of column. In Tasks lists, the internal name is Body
Try it as below:
var updatedTaskInformations = {
"__metadata": {
"type": "SP.Data.T …
1
vote
Using Moment to format a date from a Sharepoint list
As you mentioned in comments that you want to format date to DD-MM-YYYY, you dont require moment js to be loaded. SharePoint itself provides the necessary functions to format date as per your requirem …
0
votes
Accepted
Displaying an image from a SharePoint list using Javascript on a HTML page
You need to append $expand=Attachments in your query.
So, your final query would be like:
var query = "http://collaboration-dev.norgine.com/sites/it/SystemInventory/_vti_bin/listdata.svc/Devices?$ex …
1
vote
Accepted
C# - How to retrieve lists by their description?
ClientContext(siteUrl))
{
var specialLists = clientContext.LoadQuery(clientContext.Web.Lists.Where(l => l.Description == "Special Description"));
clientContext.ExecuteQuery();
foreach(var list … collList = oWebsite.Lists;
clientContext.Load(collList);
clientContext.ExecuteQuery();
var mySpecialLists = collList.Where(l => l.Description == "Special description");
foreach(var list …
3
votes
Accepted
How to create list with default items in SharePoint Hosted App?
structure add your data as below:
<ListInstance Title="List1"
OnQuickLaunch="TRUE"
TemplateType="100"
Url="Lists/List1"
Description="My List …
1
vote
Accepted
SharePoint 2016 modified no. of days
Yes, simply go to your library/list settings.
Open the modified column.
Change it to standard as below and save it.
It will show the date in date format. …
2
votes
Accepted
How to remove the left search panel on a list item edit form
Allow Javascript customization and CSS branding/theming in the new Document Library & List Experience …
0
votes
Get SharePoint List's Personal Views using PowerShell
using Run with elevated priviledges as below:
[Microsoft.SharePoint.SPSecurity]::RunWithElevatedPrivileges({
$url = "https://sitecollectionurl"
$web = Get-SPWeb -identity $url
$list …