CA Service Management

 View Only

get_list_length 

Dec 11, 2015 04:36 PM

SPEL API methods

get_list_length

 

This method gets object list length, the same length that is usualy returned in msg[1] by methods like get_list and etc.

 

Definition:

get_list_length (uuid, object) ;

uuid - user id

object - object list

 

working example:

uuid who; 
object obList, item;  
int count;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");   
who=msg[0];  
 //get_list_length ( uuid, object ) ;

send_wait(0, top_object(), "call_attr", "api", "get_list", "wf", who, "chg.chg_ref_num IN '33'", -1);   
 if (!msg_error()) {   
 count = msg[1];  
 obList = msg[0];  
 send_wait(0, top_object(), "call_attr", "api", "get_list_length", who, obList);   
  if (!msg_error()) 
  {
  printf("length %s", msg[0]);
  return;
  }

Statistics
0 Favorited
9 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.