Database – Grass Valley K2 TX/MAM Database Protocol Manual v.2.2 User Manual
Page 27

TX/MAM Database Protocol Manual - document version: 2.2
– Page 27
8.7 Creating the assetjobs, asset_index and group_access records for
an asset in the database
int cob_create_asset_references( const long long assetId, const long long userGroupId, const long
long logUserGroupId );
Parameters
Name
Description
assetId
The asset ID.
userGroupId
ID
of the user group the asset belongs to.
logUserGroupId
ID of the log user group the application belongs to
Result
The result of the function is an integer that can have following values:
Value
Description
0
Success, the
asset references have been created.
-1
Failure, the
asset references have not been created.
Example
This example sets the name field to "adjusted" for main_event record with id == 1035:
cob_fieldlist_clear();
cob_criteria_clear();
if ( cob_create_asset_references( assetId, userGroupId, logUserGroupId ) != 0 ) {
/* Log error */
}