AnsweredAssumed Answered

What's the best approach to find elements by attribute value? Can the indexer help?

Question asked by Andrew Pong on May 27, 2015
Latest reply on May 28, 2015 by Eugene Lee

Given the structure below, is there an efficient manner to find one or more elements based on the value of one of its attributes?

 

For example, return the WebID of one or more elements with a CustomerID_Attribute value equal to foo, or elements that have an InstallDate_Attribute later than a certain date?

 

Elements

     Asset00001_Element

          CustomerID_Attribute (value: foo)

          InstallDate_Attribute (value: 12/30/2014)

     Asset00001_Element

          CustomerID_Attribute (value: bar)

          InstallDate_Attribute (value: 01/15/2015)

     Asset00001_Element

          CustomerID_Attribute (value: foobar)

          InstallDate_Attribute (value: 04/20/2015)

     Asset00001_Element

          CustomerID_Attribute (value: barfoo)

          InstallDate_Attribute (value: 05/25/2015)

Outcomes