edmiRemoteGetHashedAttrInstanceBN
Â
EdmiError edmiRemoteGetHashedAttrInstanceBN(SdaiServerContext serverContextId, SdaiModel modelId, SdaiString entityName, SdaiString attributeName, 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
1 | Type | Name | Comment |
2 | SdaiServerContext | serverContextId | Context identification, from edmiDefineServerContext |
3 | SdaiModel | modelId | The modelId that uniquely identifies the edmModel in the remote EDMdatabase |
4 | SdaiString | entityName | The name of the entity that defines the attribute of interest. Entity names are case insensitive. |
5 | SdaiString | attributeName | The name of the attribute of interest. Attribute names are case insensitive |
6 | SdaiString | attrStringValue | If the attribute is of <string type>, use this argument to specify the attribute value to search for |
7 | SdaiInteger | attrIntegerValue | If the attribute is of <integer type>, use this argument to specify the attribute value to search for. |
8 | SdaiInstance | *instance | Address of the variable where the searched instance id is returned. |
9 | SdaiInvocationId | *edmiInvocationId | Currently not used. |
Return Value
Â
Options
 Â
Â
Example
Â
Â
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â