Common Cases, Publication C
Notifications with predefined attributes
Notifications with discretionary attributes
Common Cases, publication code C
 |
 |
Notifications with discretionary attributes
assigning values to discretionary attributes
Sometimes you may want to allow subscribers to develop content or relationships to groups beyond the limits of the predefined attributes. In such cases, create discretionary attributes.
To create a discretionary attribute, call the Notification class's PC_evn_add_discretionary_attr method when you construct your notification:
PC_evn_add_discretionary_attr(n2, "Interest","Country Music", PC_STRING_TYPE,strlen("Country Music"));
The data type of our discretionary attribute, Interest, is PC_STRING.
Note: PC_evn_add_discretionary_attr always references the attribute's name. However, the data type of the attribute may be any standard data type.
|