api_select_count
This method gets count of the objects by the where clause
Definition:
api_select_count (string, string) ;
string - factory
string - where clause
working example:
uuid who;
object obList, item;
int count;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
who=msg[0];
send_wait(0, top_object(), "call_attr", "api", "api_select_count", "chg", "active = 1");
if (!msg_error()) {
printf("change count %d",msg[0]);
return;
}