edmiRemoteUnsetAttrsBN

EdmiError edmiRemoteUnsetAttrsBN(SdaiServerContext serverContextId,
                                   SdaiInstance      instanceId,
                                   SdaiInteger       attributes,
                                   SdaiString        attributeNames[],
                                   SdaiInvocationId  *edmiInvocationId);
 


Unsets one ore more attributes, identified by their names, of a specified instance, identified by its instanceId. The attribute names are specified in the input buffer argument <attributeNames>. This operation is only applicable on the explicit attributes of application instances.

Arguments


TypeNameComment
SdaiServerContext

serverContextId

Context identification, from edmiDefineServerContext

SdaiInstance

instanceId

A numeric instanceID that uniquely identifies the instance of interest in the remote  EDMdatabase

SdaiInteger

attributes

The number of attribute names in the <attributeIds> argument.

SdaiString

attributeNames[]

A buffer containing the names of all the attributes to be unset.

SdaiInvocationId

edmiInvocationId

Currently not used.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

 

Options


  

 

Example


 

EdmiError rstat;
 SdaiServerContext myContext;
 SdaiInteger index, nHits;
 SdaiQueryResult qexRes;
 char condition[1024], *pCond;
 SdaiOptions options;
  
 /* Create Server Context */
 rstat = edmiDefineServerContext("MyContext",
 "Johnny", "Supervisor", "cf37ftr", 
 "TCP", "9090", "MyServerHost", 
 NULL, NULL, NULL, NULL, NULL, &myContext); 
  
 /* Get Johnnys instance Id */
 nHits = 2;
 index = 0;
 options = ONLY_INSTANCE_IDS | SUBTYPES;
 pCond = &condition[0];
 pCond += sprintf(pCond, "(LAST_NAME = 'Jackson')");
 pCond += sprintf(pCond, " AND (FIRST_NAME = 'Johnny')");
 pCond += sprintf(pCond, " AND (BIRTH_DATE = '19631216)')");
 rstat = edmiRemoteSelectInstances(myContext, "DataRepository",
 "SocialRelations", "Person", condition, options, 
 NULL, NULL, NULL, &index, &nHits, &qexRes, 
 NULL, NULL, NULL, NULL); 
 if (nHits != 1) {
 printf("\n%s", nHits ? "Ambigious" : "Not found"); 
 } else {
 SdaiString _attrNames[2] = {"WIFE", "CAR"}; 
 SdaiInstance _johnnysId = qexRes->instanceIds[0]; 
  
 /* Johnny was recently divorced.  
 His wife left him in his car. */ 
  
 rstat = edmiRemoteUnsetAttrsBN(myContext, _johnnysId, 2, 
 _attrNames, NULL); 
 }
 edmiFreeQueryResult(qexRes);
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.