SharePoint 2013 -Compare values in list to see if all column values match- dashboard

I want to create a dashboard indicating when all items in a list are equal to “Yes”. For testing I am innerHtmling Done/Not Done. The logic seems to work , but I am afraid the code is testing the list as a whole and not the individual items. I am using choice columns.

Am I missing a loop?

$  (document).ready(function() {     arrayIn_OutItems();     

});

function arrayIn_OutItems(){ var siteUrl = “https:xxx/_api/web/lists/GetByTitle(‘listName’)/items?$ select=”Title,Office,HR,Accounting; var array = []

$  .ajax({     url: siteUrl,     type: "GET",     async: false,     headers: {         "accept": "application/json;odata=verbose"     },     success: function (data) {         array = data.d.results;         console.log(array);         var isYes =          for(var i = 0;array[i].length < 0;i++{             array.every(function (e) {       return e  == "Yes"       });         }         if(isYes == true){           document.getElementById('yes/no').innerHTML = "Done";         }else{           document.getElementById('yes/no').innerHTML = "Not Done";         }      },     error: function (err) {         console.log(err);     } }); 

}

“Could not save the list changes to the server” error in SharePoint designer 2013

I am trying to create custom new/edit forms in SharePoint online site which was working last week.

But now it shows this error:

enter image description here

Tried these solutions:

  1. Deleted website cache related to designer.
  2. Uninstalled designer and installed SharePoint Online components.
  3. There are no special characters in site name or list name.
  4. Checked to disable “e374875e-06b6-11e0-b0fa-57f5dfd72085” feature. But it doesn’t exists.
  5. Also checked permissions. I have full control permissions on the site.

Kindly help me in resolving this.

Will 2013 composed looks migrate to 2016?

If we are using the “database attach” method of migrating sites from 2013 to 2016, will the composed looks / branding migrate over easily? Or are there any incompatibilities we will need to look out for? Our “custom” masterpages are based on seattle.master, and don’t really have anything removed, just some extra stuff added (like links to custom CSS files, loading jQuery, etc.).

Re Upload a file to SharePoint Doc Library sp 2013

I am working in SP 2013 on-Premise. I am trying to re-upload documents from a folder in my local machine to my document Library. The code works fine. However on downloading the document I see no change in the document content even though the version gets updated (this may be because I am also updating a field)

I am using CSOM SaveBinaryDirect method. This is my code :

FileStream stream = new FileStream(filename, FileMode.Open); Microsoft.SharePoint.Client.File.SaveBinaryDirect(context, path, stream, true); var uploadedfile = context.Web.GetFileByServerRelativeUrl(path); context.Load(uploadedfile); context.ExecuteQuery(); if(uploadedfile.CheckOutType == CheckOutType.None) { uploadedfile.CheckOut(); } context.ExecuteQuery(); var listitem = uploadedfile.ListItemAllFields; listitem[“column”] = “Value”; listitem.Update(); context.ExecuteQuery(); listitem.File.CheckIn(“”, CheckinType.MajorCheckIn); context.ExecuteQuery();

Any help would be appreciated!

workflowservices.js Error (get_context) when attempting to start 2013 Workflow via JavaScript

I’m attempting to run the code provided in this thread: Launch SharePoint 2013 Workflow w/Javascript

It’s a function which starts a SP 2013 Workflow given input parameters of Item ID and Subscription ID.

I keep getting an error on this line:

var subscription = wfManager.getWorkflowSubscriptionService().getSubscription(subscriptionId); 

I keep getting a TypeError error:

this.get_context is not a function

Any ideas?

I’m attempting to run this from a web part. I see that sp.js, sp.core.js, and sp.runtime.js all appear to load by default.

The only one which I had to load with a script tag is sp.workflowservices.js.

My startWorkflow() function runs upon clicking a link, so I don’t think it’s a matter of code executing before scripts are properly loaded.

SharePoint 2013 – Render Page in iFrame without Navigation Elements?

I’m in a SP environment that is tightly controlled and for instance don’t have access to Designer.

I’m attempting to setup a page to have the user select contents from buttons, which will then load those ‘content’ pages into an iFrame. I have a test case setup and working. However, when I click a button and a page loads within the iFrame it brings with it the global navigation and left menu bar. I’ve tried:

1) Appending ?Dlg=1 to the URLs. No change.

2) Applying following code to the

<style type="text/css">      #s4-ribbonrow, .ms-cui-topBar2, .s4-notdlg, .s4-pr s4-ribbonrowhidetitle, .s4-notdlg noindex, #ms-cui-ribbonTopBars, #s4-titlerow, #s4-pr s4-notdlg s4-titlerowhidetitle, #s4-leftpanel-content {display:none !important;}      .s4-ca{margin-left:0px !important; margin-right:0px !important;}  </style> 

3) Applying following code through CWEP, but SP keeps overwriting it.

<style> .ms-core-navigation { DISPLAY: none } #contentBox { margin-left: 0px } </style> 

Any help would be appreciated!