api_select_count

Document created by Gutis Champion on Dec 15, 2015Last modified by Gutis Champion on Dec 15, 2015
Version 2Show Document
  • View in full screen mode

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

2 people found this helpful

Attachments

    Outcomes