How to get the count of Title in sharepoint using Dataform web part or Javascript

Hi,

I have a SharePoint List which is used to store the information of course enrollment.

What i am looking for is to get the count and name of Course for which maximum people have enrolled?


  • Edited by NirajZ Monday, August 17, 2015 1:30 PM
August 17th, 2015 1:17pm

Hi Prasath,

I know creating a view will give me count, what i am looking for is:

to get the count and name of Course for which maximum people have enrolled? and i will use this information on front end for further process.

Please elaborate your approach
  • Edited by NirajZ Monday, August 17, 2015 6:04 PM
Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 6:04pm

This is a final working solution:

camlQuery.set_viewXml('<View><Query><Where><And><Eq><FieldRef Name=\'Learner_x0020_Name\'/>' +
                 '<Value Type=\'Text\'>' + currentUser + '</Value></Eq><Neq><FieldRef Name=\'Status\' /><Value Type=\'Choice\'>Reject</Value>'+
                 '</Neq></And></Where></Query></View>');

  • Marked as answer by NirajZ 2 hours 11 minutes ago
August 26th, 2015 1:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics