About Reference Objects in EKL

Some EKL functions do not work with ARM/Data set-up paths, they require a PLM Reference object. For example the New function can be used to instantiate a VPMReference which you must access in the database.

let myQuery(PLMQuery)
let myQueryResult(PLMQueryResult)
let myQueryResults(List)
let i(Integer)
let myProduct(VPMReference)

myQuery = CreatePLMQuery("VPMReference")
if myQuery <> NULL
{
      myQuery->AddCriterion("PLM_ExternalID","UserQuery*")
      myQueryResults = myQuery->RunQuery()

      i = 1
      for i while i <= 1
      {
            set myQueryResult = myQueryResults.GetItem(i)
            set myProduct = myQueryResult->LoadResult()
            Message(myProduct.PLM_ExternalID)
      }
}