new_data/3—create a new data object
The syntax for new_data/3 is as follows:
new_data($OBJECT,$CLASS,$SLOTS)
new_data/3 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$CLASS | Input | STRING | Specifies the data class for the new object |
$SLOTS | Input | LIST_OF ANY | Specifies the list of slot settings for the new object |
$OBJECT | Output | OBJECT | New data object |
Use the new_data/3 to generate a new data object $OBJECT of class $CLASS with slot settings as specified in $SLOTS.
The value of the $SLOTS argument must be a list of elements of the form SlotName=Value.
A handle for the new data object is returned in $OBJECT.
new_data/3 example
new_data($DATA,CUSTOM_DATA,[mc_udid=$ID,myslot=$VAL]);
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*