get_list_length

Document created by Gutis Champion on Dec 11, 2015
Version 1Show Document
  • View in full screen mode

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

1 person found this helpful

Attachments

    Outcomes