code: def findItemsByState( self, state ):
          
          out = []
          if ( self.hasRecordState(state) ):
              out.append(self)
          
          for c in range(self.childCount()):
              out += self.child(c).findItemsByState(state)
          
          return out
docs: Looks up all the items within this record based on the state.
          
          :param      state | <XOrbRecordItem.State>
          
          :return     [<XOrbRecordItem>, ..]