0
votes

I use this function to get total items in a view:

$total_new_properties=PodioItem::get_count( $app_id,$view_id ); but it returns the total number of items in the app,not the total number of items from the view. The sand box has an input for the view_id, but the function get_count receives only the app_id . Can get_count return total numbers of the view, or is there another way to get total number of the items in a view ?(but only the total, nothing else)

1

1 Answers

0
votes

Please use get-view method, and then use [:groupings]['total']

Ruby sample

view_id = <my view id>
bugs_view = Podio::View.find(view_id)
total_bugs_count = bugs_view[:groupings]['total']