Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

It is possible to disable the storing instance references option for each individual data model at model creation time. When the storing instance references option is disabled, then the edmiGetInstanceReferences operation will return an error code

 

Arguments

...

TypeNameComment
SdaiInstance

currInst

A numeric instanceID that uniquely identifies the instance of interest in the EDMdatabase.  The instanceID is defined by a sdaiCreateInstance or a sdaiCreateInstanceBN operation.

SdaiInteger

index

The reference index to start on.  The legal index range is: 0<= index < number of referencing instances.

SdaiInteger

numberOfRefs

  • In-value: The maximum referencing instances to return. This value should be less or equal to the number of instanceID that can be placed in the buffer specified by the <resultBuffer> argument to prevent writing past this buffer.
  • Out-value: The actual number of referencing instances returned. This value is always less or equal to the in-value.
SdaiInstance

resultBuffer

The address of a buffer in the calling application that will receive an instanceID for all returned instances that have one or more relations to the specified instance. The argument <numberOfRefs> should be set according to the size of this buffer to prevent this function from writing past buffer.

...