private SerializableTreeNode <ReportVisualFolder> GetRelatedReports(IReportVisual baseReport) { baseReport.Tags.Remove(DefaultTags); var searchCriteria = new ReportSearchCriteria { VisualContext = VisualContext.Tenant, TagFilter = baseReport.Tags, BaseReportVisual = baseReport }; var relatedReports = ReportVisualService.GetReportFolder(searchCriteria, RelatedReports); return(relatedReports); }
public TableauReportViewModel(IReportVisual reportVisual, SerializableTreeNode <ReportVisualFolder> relatedReports = null) { Id = reportVisual.Id; WorkbookName = reportVisual.Parameters.SingleOrDefault(p => p.Key == nameof(WorkbookName)).Value; ViewName = reportVisual.Parameters.SingleOrDefault(p => p.Key == nameof(ViewName)).Value; WorksheetName = reportVisual.Parameters.SingleOrDefault(p => p.Key == nameof(WorksheetName)).Value; FolderName = reportVisual.FolderName; Description = reportVisual.Description; Title = reportVisual.Title; if (reportVisual.RenderingAttributes != null) { RenderingAttributes = reportVisual.RenderingAttributes.Value; } RelatedReports = relatedReports; }