function recordRows = getRecordsForSelectedRunAndTree(this, treeID, selectedRuns)
    % GETRECORDSFORSELECTEDRUNANDTREE get scoped records for a given run and
    % tree selection

    % Copyright 2021 The MathWorks, Inc.
    scopedIDs = this.SpreadsheetScopingManager.getScopingIds(treeID);
    recordRows = this.DataManager.getScopedTable(selectedRuns, scopedIDs);
end
