Hot answers tagged

10

No need to create a three column to achieve your goal, Also the Calculated Column and SharePoint Designer does not help in this context! The simple OOTB workaround is Create one view with the following settings To filter with Created By User To Group By with the Status (Available/Consumed) To get the count for each status and the total count [OutPut]


2

The Excel COUNTIF does not work in SharePoint as it requires a range. As an alternate, do a test on each column that returns 1 or 0, and add the results. =IF(col1="Yes",1,0) + IF(col2="Yes",1,0) + IF(col3="Yes",1,0) ... or count of non-blank columns: =IF(ISBLANK(col1),0,1) + IF(ISBLANK(col2),0,1) + IF(ISBLANK(col3),0,1) ...


2

Yes, it is possible. Reference: MSDN Article In order to get the count of unread items, set a counter just after the unreadIDs+=";"+oListItem.get_item("ID")+";"; line of code in the above link and then append the counter to the HTML div using jQuery as: $("#<div id>").append("<b>" + count + "</b>");


2

SharePoint Views do not support Total/Sum/Avg type operations on a Calculated Column. (In SharePoint 2007 and 2010 we could use SharePoint Designer to "hack" this.) Three workarounds... Create a workflow that does the test and then saves a 0 or 1 to a Number column. You can then sum that column in the View. Create a View that groups on the Calculated ...


2

You can append the count to any existing html element on page. Using JavaScript: var paragraph = document.createElement("P"); paragraph.innerHTML = "Count: " + count; document.getElementById("elementIdWhereToAppend").appendChild(paragraph); Using jQuery: var paragraph = "<p>Count: " + count + "</p>"; $("#elementIdWhereToAppend").append(...


1

To get the List Item Count using REST API you need to use: http://sitename/_api/web/lists/getbytitle('List Name')?$select=ItemCount Where List Name is display name of your list (Not the list name in URL). For more clarification check my answer given in below link: SharePoint rest api not bringing items from List Update: From Image attached to your ...


1

Below how you can achieve in REST API. First you need to make call to your targeted view, /sites/mysc/_api/Web/Lists(@v0)/Views(@v1)?&@v0=guid'4fc236a-4364-4523e-a523a-abd90e0e0583'&@v1=guid'f0e92334-6c47-4223-9d1a-6b7ea5d239ada' Here above v0 should your list GUID and v1 should be your view guid. Once you make call to above service, you will get ...


1

Yes, just move all the chart code (everything after your //End Data Pull comment) to be inside your onListItemsLoadSuccess function, after the three lines you already have there. Then you will be able to do data: [count, countCa, countCo], Or, for better readability, put all your chart code into another function named, for instance, "drawChart" that takes ...


1

As far as I know you cannot do that out of the box. What you could do is to create a javascript solution to handle it. The way I would do it is to create a list - lets call it viewcount - to keep the data about views with two fields: IdOfViewedItem and ViewCount Write a script and place it on the display form of the item you want to track views on. The ...


1

You can examine the returned XML to find related querries for your request... There is no nice way to just pull the folder count, but you can use the /folders to retrieve all folders below the current node. See this line from the returned XML for your query: <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Folders" type="...


1

There is no OOB method to display the column count in quick edit mode in list view in SharePoint online. When we are in the quick edit mode, it will not count the items according to the column. Because the count of the items is dynamical. After we exit the quick edit mode, it will count the items and display the count of the items. Why do you want to ...


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