edmiRemoteGetHashedAttrInstance


 

EdmiError edmiRemoteGetHashedAttrInstance(SdaiServerContext serverContextId,
                                            SdaiModel         modelId,         
                                            SdaiAttr          attrId,     
                                            SdaiString        attrStringValue, 
                                            SdaiInteger       attrIntegerValue,  
                                            SdaiInstance      *instance,      
                                            SdaiInvocationId  *edmiInvocationId);

Search the specified model for the instance with an attribute value equal to the specified attribute. If the instance is found, the function returns completion code equal to 0 and the instance id of the instance via the argument <instance>. If the instance is not found, the function returns completion code equal to 0 and 0 via the argument <instance>. This function can only return one instance value. Therefore this function should not be used if the persistent attribute hash table is not unique.If no attribute hash table is defined for the specified attribute, no sequential search is performed and the function returns an error code.

Arguments


TypeNameComment
SdaiServerContext

serverContextId

Context identification, from edmiDefineServerContext

SdaiModel

modelId

The modelId that uniquely identifies the edmModel in the remote EDMdatabase

SdaiAttr

attrId

A numeric attributeId that uniquely identifies the attribute in the remote  EDMdatabase

SdaiString

attrStringValue

If the attribute is of <string type>, use this argument to specify the attribute value to search for.

SdaiInteger

attrIntegerValue

If the attribute is of <integer type>, use this argument to specify the attribute value to search for.

SdaiInstance

*instance

Address of the variable where the searched instance id is returned.

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


 

 

 

See also

Filter by label

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

Â