Clarity Service Management

api_select_count 

12-15-2015 06:30 AM

SPEL API methods

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;
 
}

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.