Looks up all the items within this record based on the state.
        
        :param      state | <XOrbRecordItem.State>
        
        :return     [<XOrbRecordItem>, ..]

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