{"id":40,"date":"2015-08-13T16:06:46","date_gmt":"2015-08-13T16:06:46","guid":{"rendered":"https:\/\/maximoconcepts.wordpress.com\/?p=40"},"modified":"2015-08-13T16:06:46","modified_gmt":"2015-08-13T16:06:46","slug":"all-about-count-method","status":"publish","type":"post","link":"https:\/\/maximoconcepts.com\/2015\/08\/13\/all-about-count-method\/","title":{"rendered":"All about Count Method"},"content":{"rendered":"

Although it is discouraged to use the count method of mboSet as it hits the database to get the count but at times it can be\u00a0very useful. There is an overloaded method\u00a0count(int countConstant)\u00a0<\/em><\/strong>that can be used to get the count of mbos that are in different state in the mboset.<\/p>\n

Here is the explanation of the parameter –<\/p>\n

countConstant<\/code> – one of the constants from psdi.mbo.MboConstants<\/code>. The list below shows each constant and describes the count returned for each.<\/p>\n