update_object_super

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

SPEL API methods

update_object_super

 

This method allows to update multiple attributes for the object

 

Definition:

update_object_super( uuid, string, int, ... ) ;

uuid - user id

string - persistent_id of the object to update

int - defines wich parameter from this parameter is first that defines attribute name, usualy 0 (zero means that next parameter contains first atribute name to update)

... - name-value pairs for the attributes to update "atribute1", "value1","atribute2", "value2"

 

working example:

  uuid who;
  send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
  who=msg[0];
  send_wait(0, top_object(), "call_attr", "api", "update_object_super", who, persistent_id, 0, "description", description, "time_spent", time_spent);
                   
1 person found this helpful

Attachments

    Outcomes