Retrieving objects by UID or OBID - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

Simple query by UID or UID collection.

Dim lobjVaults As IObjectDictionary = SPFRequestContext.Instance.QueryRequest.RunByUID("ISPFVault")

'

' You can pass in a collection of UID's

'

Dim larrList As New ArrayList

larrList.Add("myUID")

larrList.Add("myOtherUID")

Dim lobjItems As IObjectDictionary = SPFRequestContext.Instance.QueryRequest.RunByUIDCollection(larrList)

The methods below will always go to the database. The query is narrowed down by passing in the domainUID. The function will find the domain group for the domain and restrict the query just to that set of tables.

Public Function GetObjectByOBIDAndDomain(ByVal pstrOBID As String, ByVal pstrDomainUID As String) As IObject

Public Function GetObjectByUIDAndDomain(ByVal pstruid As String, ByVal pstrDomain As String) As IObject

Public Function GetObjectsByUIDsAndDomain(ByVal pcolUIDs As SortedList, ByVal pcolDomainUIDs As SortedList) As IObjectDictionary